code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#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.

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

Also merged into

  • #11295 into releases/29.x on 2026-09-10

Context

  • Work items: AB#645040
  • Labels: AL: Apps (W1), Team: Finance
  • Systems: development

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).