---
id: change/bcapps/10755
type: change
title: "#10755 Migrate Http Web Request Mgt. callers to native HttpClient"
summary: 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.
tier: official
language: en
tags:
  - refactor
  - main
  - bc30
  - codeunit update currency exchange rates
  - codeunit invite external accountant
  - codeunit get json structure
  - codeunit odata initializer
  - codeunit odatautility
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:02:43.571Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 054085fe9121fc20624deaeacb6544f040f5c753
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10755
    title: "microsoft/BCApps#10755: Migrate Http Web Request Mgt. callers to native HttpClient"
    date: "2026-10-02"
    commit: 054085fe9121fc20624deaeacb6544f040f5c753
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/1281
    - object/codeunit/9033
    - object/codeunit/1237
    - object/codeunit/1738
    - object/codeunit/6710
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10755
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10755
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-02T09:45:43Z"
author: darjoo
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: refactor
behavior_change: false
breaking: false
files:
  count: 6
  additions: 259
  deletions: 148
  al: 5
apps:
  - Base Application
objects_touched:
  - key: codeunit/1281
    page: codeunit/1281
    type: codeunit
    id: 1281
    name: Update Currency Exchange Rates
    app: Base Application
    status: modified
  - key: codeunit/9033
    page: codeunit/9033
    type: codeunit
    id: 9033
    name: Invite External Accountant
    app: Base Application
    status: modified
  - key: codeunit/1237
    page: codeunit/1237
    type: codeunit
    id: 1237
    name: Get Json Structure
    app: Base Application
    status: modified
  - key: codeunit/1738
    page: codeunit/1738
    type: codeunit
    id: 1738
    name: OData Initializer
    app: Base Application
    status: modified
  - key: codeunit/6710
    page: codeunit/6710
    type: codeunit
    id: 6710
    name: ODataUtility
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 647963
systems:
  - development
  - integration
  - finance
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

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

[Pull request](https://github.com/microsoft/BCApps/pull/10755) · 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"](../../objects/codeunit/1281.md), Base Application: modified
- [Codeunit 9033 "Invite External Accountant"](../../objects/codeunit/9033.md), Base Application: modified
- [Codeunit 1237 "Get Json Structure"](../../objects/codeunit/1237.md), Base Application: modified
- [Codeunit 1738 "OData Initializer"](../../objects/codeunit/1738.md), Base Application: modified
- [Codeunit 6710 "ODataUtility"](../../objects/codeunit/6710.md), 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).
