#14541 [Expense Agent] Send company scope header on company-bound requests
Expense Agent now sends an X-ERP-Scope header on company-bound requests to route them to the correct company registration, computed from tenant ID, environment name, and company ID using UUIDv5.
- 2files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-11-27 by icipriand (community contribution) · 2 files (+403 -0), 1 AL · feature · tier official · reviewed (checked by Opus)
What changed
- Scope header added only to company-bound requests (expense submission, open report reminders, reimbursement notifications, welcome emails)
- Scope ID calculated on-the-fly from AAD tenant ID, environment name, and company ID without persistence
- Scope value computed as UUIDv5 hash of normalized name with fixed namespace
- Company ID canonicalized to accept prefixes and various GUID formats, producing lowercase hyphenated GUID
- Requests fail with error if tenant, environment, or company is missing instead of being sent without scope
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 6941 “EA Http Client”, ExpenseAgent: modified
Also merged into
- #14615 into
releases/29.xon 2026-12-02
Context
- Work items: AB#660735
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Finance
- Systems: copilot
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Call external services with the HttpClient data type — possibly related: Change sends HTTP headers on company-bound requests; page documents calling external services using HttpClient data type. (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).