#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.
- 2files
- 2AL files
- 2objects
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
- Codeunit 3350 “PA Agent Access”, PayablesAgent: modified
- Query 3304 “PA Recent Purch. Inv. Creators”, PayablesAgent: added
Also merged into
- #14355 into
releases/29.xon 2026-11-25
Context
- Work items: AB#652918
- Labels: AL: Apps (W1), Team: Finance
- Systems: copilot
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Query Objects and Performance — possibly related: Explains query objects and performance optimization with indexes and SIFT (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).