#10890 [Master] Bug 645040: Expense Agent: BC Approval Workflow - Improve error message when Approval User Setup is missing
Expense approval workflow now shows a clear, actionable error message when the current user lacks a User Setup record, with a link to open the configuration page.
- 8files
- 7AL files
- 7objects
Pull request · merged into main (BC30) on 2026-09-09 by v-rohangarg20 · 8 files (+108 -6), 7 AL · fix · tier official · reviewed (checked by Opus)
What changed
- New internal helper GetCurrentUserSetupForApproval replaces the generic missing-record platform error
- Error message asks the user to configure their User Setup because the expense approval workflow is enabled
- Error includes an action to open the Approval User Setup page, shown only with read permission on User Setup
- Used on the Expense Report, Expense Report List, Expense Reports, Manager Expense Report and Manager Expense Reports pages and the Expense Report Header table
- Tests added for the missing User Setup scenario
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 6901 “Expense Report Approval Mgmt”, ExpenseAgent: modified
- Page 6980 “Manager Expense Report”, ExpenseAgent: modified
- Page 6981 “Manager Expense Reports”, ExpenseAgent: modified
- Page 6910 “Expense Report”, ExpenseAgent: modified
- Page 6979 “Expense Report List”, ExpenseAgent: modified
- Page 6997 “Expense Reports”, ExpenseAgent: modified
- Table 6906 “Expense Report Header”, ExpenseAgent: modified
Also merged into
- #11295 into
releases/29.xon 2026-09-10
Context
- Work items: AB#645040
- Labels: AL: Apps (W1), Team: Finance
- Systems: development
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Create and Submit Expense Reports — possibly related: touches Page 6979 “Expense Report List”
- Expense Management Overview in Business Central — possibly related: touches Page 6997 “Expense Reports”
- Extending Error Messages with Recommendations — possibly related: Documents extending error messages with recommendations for better user experience. (model-linked)
- Review and Approve Expense Reports — possibly related: Documents expense report approval workflows and manager approval processes. (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).