#14598 [Expense Agent] Corporate card transactions as expense report lines
Corporate card transactions can now be added to expense reports before receipt information is known, and receipts can be matched, attached, and their extracted data applied to expenses and report lines through new APIs.
- 45files
- 34AL files
- 34objects
Pull request · merged into main (BC30) on 2026-11-29 by claudiuciumedean · 45 files (+7423 -190), 34 AL · feature · tier official · reviewed (checked by Opus)
What changed
- The Card Expense Matches API finds a card expense waiting for a receipt, or checks a given one. It matches on user, currency, exact amount, a date window, card last 4 digits or merchant similarity, and writes nothing.
- The new addCardExpenseToReport action releases a card expense and adds it to an open report without needing a category. The standard add and release still require one.
- The Card Receipt Data API stages the receipt file and its extracted values, with participants, items and VAT. Apply then attaches the receipt and fills only empty fields, keeping the expense status.
- Amount, currency, date, card and payment method are locked on card expenses and their report lines. A blank merchant can be filled once.
- Corporate cards are now only available nested under expenseUsers; top-level corporateCards requests return 400. A new cardExpenseAwaitingReport FlowField is exposed on expenses.
- Behaviour changes for users or extensions.
AL objects touched
- Table 7420 “EA Card Expense Match Buffer”, ExpenseAgent: added
- Page 7425 “EA Card Expense Matches API”, ExpenseAgent: added
- Table 7427 “EA Card Receipt Data”, ExpenseAgent: added
- Page 7421 “EA Card Receipt Data API”, ExpenseAgent: added
- Table 7433 “EA Card Receipt Item”, ExpenseAgent: added
- Page 7423 “EA Card Receipt Items API”, ExpenseAgent: added
- Page 7422 “EA Card Receipt Particip. API”, ExpenseAgent: added
- Table 7432 “EA Card Receipt Participant”, ExpenseAgent: added
- Table 7434 “EA Card Receipt VAT Spec.”, ExpenseAgent: added
- Page 7424 “EA Card Receipt VAT Spec. API”, ExpenseAgent: added
- Page 7451 “Expense Corporate Cards API”, ExpenseAgent: modified
- Page 6928 “Expense Reports API”, ExpenseAgent: modified
- Page 6918 “Expense Users API”, ExpenseAgent: modified
- Page 6927 “Expenses API”, ExpenseAgent: modified
- Codeunit 7450 “EA Card Receipt Data Apply”, ExpenseAgent: added
- Codeunit 7426 “EA Corp Card Enh. Match Mgt”, ExpenseAgent: modified
- Codeunit 7438 “EA Receipt Expense Match”, ExpenseAgent: added
- Codeunit 6989 “Expense Attachment Mgt.”, ExpenseAgent: modified
- Codeunit 6980 “Release Expense Document”, ExpenseAgent: modified
- Page 6988 “Expense”, ExpenseAgent: modified
- Table 6900 “Expense”, ExpenseAgent: modified
- Table 6918 “Expense VAT Specification”, ExpenseAgent: modified
- Codeunit 6983 “Create Expense Report”, ExpenseAgent: modified
- Page 6961 “Expense Billing Information”, ExpenseAgent: modified
- Page 6999 “Expense Report SubPage”, ExpenseAgent: modified
- Table 6907 “Expense Report Line”, ExpenseAgent: modified
- Table 6922 “Expense Report Line VAT Spec.”, ExpenseAgent: modified
- Permission set 6953 “Expense Agent - Data”, ExpenseAgent: modified
- Permission set 6952 “Expense Agent - Objects”, ExpenseAgent: modified
- Permission set 6904 “Expense Management - Objects”, ExpenseAgent: modified
- Permission set 6906 “Expense Mgmt. Edit”, ExpenseAgent: modified
- Permission set 6907 “Expense Mgmt. Read”, ExpenseAgent: modified
- Codeunit 6950 “Expense Agent Privacy Subs.”, ExpenseAgent: modified
- Codeunit 6902 “Expense Rule Validation”, ExpenseAgent: modified
Also merged into
- #14704 into
releases/29.xon 2026-12-02
Context
- Work items: AB#630366
- Labels: AL: Apps (W1), ExpenseManagement, Team: Finance
- Systems: copilot
- From the description: “Importing a card statement already creates a card-sourced expense for each transaction that has no existing expense.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Create and Manage Expenses in Business Central — possibly related: touches Page 6988 “Expense”
- Set Up Mileage Rates for Expense Management — possibly related: touches Page 6988 “Expense”
- Review and Edit Expenses in Expense Agent — possibly related: Change implements corporate card transactions as expense report lines; page documents reviewing and managing expense details. (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).