code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#10253 Avoid starting a write transaction under `ShowCanCreateAgent`

Payables Agent Setup no longer starts a write transaction when computing ShowCanCreateAgent. This avoids problems when third-party code commits, asks for confirmation and then opens a page, while a separate platform bug remains open.

Pull request · merged into main (BC30) on 2026-08-19 by mynjj · 2 files (+32 -7), 2 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Computing ShowCanCreateAgent no longer starts a write transaction
  • Covers cases where third-party code modifies records, commits, then shows a Confirm dialog and opens a page
  • Interim fix while platform bug 646707 is handled separately
  • Changes made in both the Payables Agent Setup codeunit and table
  • Behaviour changes for users or extensions.

AL objects touched

Context

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

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