code change · fixCopilot & Agentsofficial - Microsoftreviewed - checked by Opus

#13927 [29.x]-Bug 658800: [Expense Agent] Expense User Card rejects manual approval setup with duplicate error

Fixes a bug in the Expense Agent where manually adding an approval setup from the Expense User Card failed with a duplicate error. The change is in the Expense Approval Setups Part page and is a backport to 29.x.

Pull request · merged into releases/29.x (BC29) on 2026-11-24 by v-rohangarg20 · 2 files (+151 -9), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Adding an approval setup manually from the Expense User Card no longer fails with a duplicate error
  • The change is in page 6947 Expense Approval Setups Part
  • Tests were added to the Expense Agent test codeunit
  • Backport to the releases/29.x branch
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#658800
  • Labels: AL: Apps (W1), Team: Finance
  • Systems: copilot

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).