#7546 [Payables Agent] Agent-driven line matching
Adds agent-driven line matching to the Payables Agent, allowing agents to resolve purchase lines by navigating BC pages instead of using the AL PrepareDraft pipeline when the PAAgentDrivenLineMatching feature flag is enabled.
- 17files
- 15AL files
- 15objects
Pull request · merged into main (BC30) on 2026-08-18 by dayland · 17 files (+1249 -6), 15 AL · feature · tier official · reviewed (checked by Opus)
What changed
- Feature flag PAAgentDrivenLineMatching gates all new behavior, leaving default behavior unchanged
- New historical line data loader retrieves up to 5000 posted purchase invoice lines from the last year, prioritized by vendor and relevance
- Five new flag-gated lookup actions on draft purchase lines: Text-to-Account Mappings, Historical Purchase Lines, Chart of Accounts, Items, and Deferral Templates
- New agent-driven instructions prompt implements a collect-then-synthesize matching strategy across six data sources
- Six new read-only page customizations registered in the Payables Agent profile for agent navigation
- Behaviour changes for users or extensions.
AL objects touched
- Permission set 6100 “E-Doc. Core - Objects”, EDocument: modified
- Codeunit 6125 “Prepare Purchase E-Doc. Draft”, EDocument: modified
- Page 6183 “E-Doc. Purchase Draft Subform”, EDocument: modified
- Codeunit 6244 “E-Doc. Hist. Line Data Loader”, EDocument: added
- Page 6186 “E-Doc. Historical Lines List”, EDocument: added
- pagecustomization “PA Chart of Accounts”, PayablesAgent: added
- pagecustomization “PA Deferral Template List”, PayablesAgent: added
- pagecustomization “PA EDoc Purchase Draft Subform”, PayablesAgent: modified
- pagecustomization “PA Hist. Purchase Lines”, PayablesAgent: added
- pagecustomization “PA Item Reference Entries”, PayablesAgent: added
- pagecustomization “PA Items”, PayablesAgent: added
- pagecustomization “PA Text-to-Account Mapping”, PayablesAgent: added
- Profile “Payables Agent”, PayablesAgent: modified
- Codeunit 3307 “Payables Agent Setup”, PayablesAgent: modified
- Table 3303 “Payables Agent Setup”, PayablesAgent: modified
Context
- Work items: AB#607916
- Labels: AL: Apps (W1), Ownership: Manual, Team: Finance
- Systems: development, integration
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).