#10755 Migrate Http Web Request Mgt. callers to native HttpClient
Six callers, including currency exchange rate updates, external accountant invitations, JSON structure retrieval, OData metadata download and the Microsoft 365 E-Document GraphClient, now use native AL HTTP types instead of the legacy Http Web Request Mgt. codeunit. A new CreateMetadataRequest procedure is added while the old CreateMetadataWebRequest stays for compatibility.
- 6files
- 5AL files
- 5objects
Pull request · merged into main (BC30) on 2026-10-02 by darjoo · 6 files (+259 -148), 5 AL · refactor · tier official · reviewed (checked by Opus)
What changed
- Migrated currency exchange rates, external accountant invitations, JSON structure retrieval, and OData metadata calls from legacy to native HTTP types
- Preserved public API compatibility in ODataUtility by keeping the old CreateMetadataWebRequest procedure while adding new CreateMetadataRequest with native types
- Simplified error handling in UpdateCurrencyExchangeRates by using direct error text instead of XML/WebException parsing
- Consolidated duplicate telemetry logging in InviteExternalAccountant into a single helper
- Changed internal InitializeWebRequest in GraphClient to take HttpRequestMessage instead of Http Web Request Mgt.
AL objects touched
- Codeunit 1281 “Update Currency Exchange Rates”, Base Application: modified
- Codeunit 9033 “Invite External Accountant”, Base Application: modified
- Codeunit 1237 “Get Json Structure”, Base Application: modified
- Codeunit 1738 “OData Initializer”, Base Application: modified
- Codeunit 6710 “ODataUtility”, Base Application: modified
Context
- Work items: AB#647963
- Labels: AL: Apps (W1), Team: Integrations
- Systems: development, integration, finance
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).