Skip to content

[Payables Agent] Write transaction in Payable Agent code triggered by Confirm dialog#9647

Open
Explorer986 wants to merge 1 commit into
mainfrom
private/kumarjatin/641849
Open

[Payables Agent] Write transaction in Payable Agent code triggered by Confirm dialog#9647
Explorer986 wants to merge 1 commit into
mainfrom
private/kumarjatin/641849

Conversation

@Explorer986

@Explorer986 Explorer986 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

What & why

GetAgent unconditionally called PayablesAgentSetup.Modify(), opening a write transaction even when nothing changed. When invoked from agent action visibility checks (ShowCanCreateAgent) around a Confirm dialog, this left an open write transaction that blocked subsequent Page.RunModal calls. Now only persist when the setup record actually changed.

Fixes AB#641849

How I validated this

  • I read the full diff and it contains only changes I intended.
  • I built the affected app(s) locally with no new analyzer warnings.
  • I ran the change in Business Central and confirmed it behaves as expected.
  • I added or updated tests for the new behavior, or explained below why none are needed.

…ring display checks

GetAgent unconditionally called PayablesAgentSetup.Modify(), opening a write
transaction even when nothing changed. When invoked from agent action
visibility checks (ShowCanCreateAgent) around a Confirm dialog, this left an
open write transaction that blocked subsequent Page.RunModal calls. Now only
persist when the setup record actually changed.
@Explorer986
Explorer986 requested a review from a team July 22, 2026 06:31
@github-actions github-actions Bot added AL: Apps (W1) Add-on apps for W1 Finance GitHub request for Finance area labels Jul 22, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 Finance GitHub request for Finance area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant