#11040 [Agent Archiving] Payables and Expense agent implementation for IAgentArchiving
Payables and Expense agents now implement the IAgentArchiving interface to opt out of archiving, with the System Application enforcing archiving restrictions on the Agent List and Agent Card pages.
- 12files
- 8AL files
- 8objects
Pull request · merged into main (BC30) on 2026-09-07 by thloke · 12 files (+137 -6), 8 AL · feature · tier official · reviewed (checked by Opus)
What changed
- Payables Agent and Expense Agent opt out of archiving through dedicated codeunits
- Archive action is disabled on Agent List and Agent Card for agents that do not support archiving
- Agent.Archive method blocks archiving programmatically to prevent bypassing UI restrictions
- Each agent registers its archiving preference similar to how they register IAgentTaskExecution
- No behavior change for agents that do not opt out
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 7104 “EA Agent Archiving”, ExpenseAgent: added
- Enum extension 6998 “EA Agent Metadata”, ExpenseAgent: modified
- Codeunit 3319 “PA Agent Archiving”, PayablesAgent: added
- Enum extension 3304 “PA Agent Metadata”, PayablesAgent: modified
- Codeunit 4321 “Agent”, System Application: modified
- Page 4315 “Agent Card”, System Application: modified
- Codeunit 4301 “Agent Impl.”, System Application: modified
- Page 4316 “Agent List”, System Application: modified
Also merged into
- #11195 into
releases/29.xon 2026-09-10
Context
- Work items: AB#647379
- Labels: AL: Apps (W1), AL: System Application, Ownership: Needs Review, Team: Other
- Systems: copilot, development
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Configure agents programmatically (preview) — possibly related: touches Codeunit 4321 “Agent”
- Convert an agent to AL code (preview) — possibly related: touches Codeunit 4321 “Agent”
- Define and register an agent programmatically (preview) — possibly related: Documents agent implementation and registration interfaces, the archiving capability this change adds. (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).