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

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

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

Also merged into

  • #11195 into releases/29.x on 2026-09-10

Context

  • Work items: AB#647379
  • Labels: AL: Apps (W1), AL: System Application, Ownership: Needs Review, Team: Other
  • Systems: copilot, 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).