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

#14329 Optimizing check for PA eligibility

The Payables Agent eligibility check now uses a more efficient query strategy to avoid unnecessary slowdowns when opening the Purchase Invoice page by leveraging an existing database index on Posting Date instead of relying on systemCreatedAt.

Pull request · merged into main (BC30) on 2026-11-21 by mynjj · 2 files (+39 -5), 2 AL · performance · tier official · reviewed (checked by Opus)

What changed

  • A new query checks Payables Agent eligibility using Posting Date instead of systemCreatedAt
  • Uses the existing BaseApp key on Posting Date, then iterates the results to match the user ID
  • Limits how many records are loaded from SQL so the check stays time-bounded
  • Speeds up opening the Purchase Invoice page and the agent runtime eligibility check
  • The heuristic is less accurate, so the set of eligible users may differ slightly
  • Behaviour changes for users or extensions.

AL objects touched

Also merged into

  • #14355 into releases/29.x on 2026-11-25

Context

  • Work items: AB#652918
  • Labels: AL: Apps (W1), Team: Finance
  • Systems: copilot

No source states these links: they share an object, a model read them, or a person found the same subject.

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