#12539 Add Expense Agent consumption V2 and trial support
Expense Agent adds a V2 consumption API and a 50-expense feature trial, with trial status in the billing overview and remaining free expenses in setup. Quota checks go through an internal interface so tests can inject a mock, and telemetry now logs a static message with selected metadata dimensions instead of the raw request.
- 13files
- 9AL files
- 9objects
Pull request · merged into main (BC30) on 2026-10-26 by encimita · 13 files (+1045 -42), 9 AL · feature · tier official · reviewed (checked by Opus)
What changed
- V2 consumption API validates nested v1 fields and required identifiers and rejects null usage values
- 50-expense trial; policy-evaluation operations do not count toward trial usage
- Trial status shown in billing overview and remaining free expenses in setup wizard
- Saved trial classification is preserved on retries, and consumption is allowed when trial quota is available
- Internal quota interface with a default production implementation and test injection
- Behaviour changes for users or extensions.
AL objects touched
- Page 6968 “Expense User Cons. API”, ExpenseAgent: modified
- Page 7079 “EA Billing Overview”, ExpenseAgent: modified
- Table 6969 “Expense Agent Env. Consumption”, ExpenseAgent: modified
- Interface “Expense Agent Quota”, ExpenseAgent: added
- Codeunit 6913 “Expense Agent Quota Impl.”, ExpenseAgent: added
- Codeunit 6969 “Expense Consumption Handler”, ExpenseAgent: modified
- Permission set 6952 “Expense Agent - Objects”, ExpenseAgent: modified
- Permission set 6904 “Expense Management - Objects”, ExpenseAgent: modified
- Page 6991 “Expense Agent Setup Wizard”, ExpenseAgent: modified
Also merged into
- #13311 into
releases/29.xon 2026-11-02
Context
- Work items: AB#653453
- Labels: AL: Apps (W1), Team: Finance
- Systems: copilot
- From the description: “Add the Expense Agent V2 consumption API and a 50-expense feature trial.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Manage consumption-based billing — possibly related: Documents consumption-based billing model for Expense Agent capabilities that this change implements. (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).