---
id: change/bcapps/14526
type: change
title: "#14526 Warn when the Payables Agent setup is opened for another company's agent"
summary: The Payables Agent setup page now displays a warning when opened for another company's agent, explaining that changes won't be saved and directing users to open the setup in the agent's own company.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page payables agent setup
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-12-03T01:07:13.010Z"
  flags: []
generated:
  at: "2026-12-05T00:13:03.967Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ee296663d685b5b302caa29110e16ebe3c4e29d5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14526
    title: "microsoft/BCApps#14526: Warn when the Payables Agent setup is opened for another company's agent"
    date: "2026-12-02"
    commit: ee296663d685b5b302caa29110e16ebe3c4e29d5
    t: null
    quote: If it isn't the current company's Payables Agent, the page still opens, but it shows a message that names the agent and the company.
links:
  learn: []
  objects:
    - object/page/3304
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/payables-agent-known-senders
      title: Manage known senders for Payables Agent
      label: possibly related
      why: touches Page 3304 "Payables Agent Setup"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/payables-agent-setup
      title: Set Up Payables Agent in Business Central
      label: possibly related
      why: touches Page 3304 "Payables Agent Setup"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/payables-agent
      title: Payables Agent Overview in Business Central
      label: possibly related
      why: Documents Payables Agent overview and processing capabilities
      by: model
number: 14526
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14526
kind: pr
base_branch: main
major: "30"
merged_at: "2026-12-02T12:04:42Z"
author: Explorer986
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 28
  deletions: 0
  al: 1
apps:
  - PayablesAgent
objects_touched:
  - key: page/3304
    page: page/3304
    type: page
    id: 3304
    name: Payables Agent Setup
    app: PayablesAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 654743
systems:
  - copilot
quote: If it isn't the current company's Payables Agent, the page still opens, but it shows a message that names the agent and the company.
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #14526 Warn when the Payables Agent setup is opened for another company's agent

> The Payables Agent setup page now displays a warning when opened for another company's agent, explaining that changes won't be saved and directing users to open the setup in the agent's own company.

[Pull request](https://github.com/microsoft/BCApps/pull/14526) · merged into `main` (BC30) on 2026-12-02 by Explorer986 · 1 file (+28 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Detects when the setup page is opened for a Payables Agent belonging to a different company
- Displays a user-friendly message naming the agent and company involved
- Prevents changes from being saved when accessed for another company's agent
- Discards updates and trial uploads when the page closes in this scenario
- Maintains existing behavior when opening the setup for the current company's own agent
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 3304 "Payables Agent Setup"](../../objects/page/3304.md), PayablesAgent: modified

## Context

- Work items: AB#654743
- Labels: AL: Apps (W1), Team: Finance
- Systems: copilot
- From the description: "If it isn't the current company's Payables Agent, the page still opens, but it shows a message that names the agent and the company."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Manage known senders for Payables Agent](https://learn.microsoft.com/dynamics365/business-central/payables-agent-known-senders) — possibly related: touches Page 3304 "Payables Agent Setup"
- [Set Up Payables Agent in Business Central](https://learn.microsoft.com/dynamics365/business-central/payables-agent-setup) — possibly related: touches Page 3304 "Payables Agent Setup"
- [Payables Agent Overview in Business Central](https://learn.microsoft.com/dynamics365/business-central/payables-agent) — possibly related: Documents Payables Agent overview and processing capabilities (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
