---
id: change/bcapps/14442
type: change
title: "#14442 Offer the Payables Agent again in a company recreated with the same name"
summary: The Payables Agent is now offered again in the plus menu when a company is recreated with the same name, by checking only the agent linked in the company setup instead of searching by user name.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit pa setup
  - codeunit pa agent access
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-11-26T01:03:54.974Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 4c5a5a984de72214c1e1dbb58db4fdaf4cea132f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14442
    title: "microsoft/BCApps#14442: Offer the Payables Agent again in a company recreated with the same name"
    date: "2026-11-25"
    commit: 4c5a5a984de72214c1e1dbb58db4fdaf4cea132f
    t: null
    quote: Setup still finds the existing agent by user name and reuses it, so no second agent user is created.
links:
  learn: []
  objects:
    - object/codeunit/3343
    - object/codeunit/3350
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/payables-agent-setup
      title: Set Up Payables Agent in Business Central
      label: possibly related
      why: Documents Payables Agent setup and configuration for vendor invoice processing
      by: model
number: 14442
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14442
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-25T15:28:48Z"
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: 2
  additions: 14
  deletions: 11
  al: 2
apps:
  - PayablesAgent
objects_touched:
  - key: codeunit/3343
    page: codeunit/3343
    type: codeunit
    id: 3343
    name: PA Setup
    app: PayablesAgent
    status: modified
  - key: codeunit/3350
    page: codeunit/3350
    type: codeunit
    id: 3350
    name: PA Agent Access
    app: PayablesAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 14599
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/14599
fixes_issues: []
work_items:
  - 655887
systems:
  - copilot
quote: Setup still finds the existing agent by user name and reuses it, so no second agent user is created.
joined_against:
  major: "30"
  commit: 4d60d10920084a35a6231e5a0ffbd0577b0c399e
---

# #14442 Offer the Payables Agent again in a company recreated with the same name

> The Payables Agent is now offered again in the plus menu when a company is recreated with the same name, by checking only the agent linked in the company setup instead of searching by user name.

[Pull request](https://github.com/microsoft/BCApps/pull/14442) · merged into `main` (BC30) on 2026-11-25 by Explorer986 · 2 files (+14 -11), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Only the agent linked in the company's setup counts as set up for the plus menu and Purchase Invoices actions
- Deleted companies keep their agent user, which previously made a recreated company with the same name look already set up
- Setup still locates the existing agent by user name and reuses it, so no duplicate agent user is created
- Setup, intake and upgrade find the agent as before
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 3343 "PA Setup"](../../objects/codeunit/3343.md), PayablesAgent: modified
- [Codeunit 3350 "PA Agent Access"](../../objects/codeunit/3350.md), PayablesAgent: modified

## Also merged into

- [#14599](https://github.com/microsoft/BCApps/pull/14599) into `releases/29.x` on 2026-11-27

## Context

- Work items: AB#655887
- Labels: AL: Apps (W1), Team: Finance
- Systems: copilot
- From the description: "Setup still finds the existing agent by user name and reuses it, so no second agent user is created."

## Possibly related

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

- [Set Up Payables Agent in Business Central](https://learn.microsoft.com/dynamics365/business-central/payables-agent-setup) — possibly related: Documents Payables Agent setup and configuration for vendor invoice processing (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).
