#10807 [29.x][Expense Agent] Confirm before closing Expense User Card without Employee No.
The Expense User card now prompts for confirmation before closing when the mandatory Employee No. field is left blank, preventing unintentional creation of unlinked expense users.
- 2files
- 1AL files
- 1objects
Pull request · merged into releases/29.x (BC29) on 2026-09-02 by v-rohangarg20 · 2 files (+13 -0), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Added OnQueryClosePage trigger to page 6949 to intercept close actions
- User receives confirmation dialog when Employee No. is blank before the card closes
- Prevents silent saving of expense users without being linked to an employee
- Test cases updated to handle the new confirmation dialog with appropriate handlers
- Behaviour changes for users or extensions.
AL objects touched
- Page 6949 “Expense User”, ExpenseAgent: modified
Context
- Work items: AB#648361
- Labels: AL: Apps (W1), Team: Finance
- Systems: development
- From the description: “Employee No. is blank. The expense user will not be linked to an employee. Are you sure you want to exit?”
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).