code change · featureAL Developmentofficial - Microsoftreviewed - checked by Opus

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

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

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