---
id: change/bcapps/12324
type: change
title: "#12324 Obsolete Http Web Request Mgt. usage in public API (webhooks, OData)"
summary: Http Web Request Mgt usage is removed from webhook and OData public APIs by replacing DotNet-based code with native HttpClient and HttpRequestMessage, while obsoleting old event signatures.
tier: official
language: en
tags:
  - obsoletion
  - main
  - bc30
  - codeunit api webhook notification send
  - codeunit odatautility
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-18T00:55:14.136Z"
  flags: []
generated:
  at: "2026-11-25T00:13:20.045Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 0054504176db45ee8f0ba0aa84fd1184f07ce29d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12324
    title: "microsoft/BCApps#12324: Obsolete Http Web Request Mgt. usage in public API (webhooks, OData)"
    date: "2026-10-09"
    commit: 0054504176db45ee8f0ba0aa84fd1184f07ce29d
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/6154
    - object/codeunit/6710
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/dynamics-subscriptions
      title: Working with webhooks
      label: possibly related
      why: touches Codeunit 6154 "API Webhook Notification Send"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/administration/telemetry-webservices-trace
      title: Analyze Incoming Web Service Telemetry
      label: possibly related
      why: Modernizing OData web service calls, relevant to incoming web service telemetry.
      by: model
number: 12324
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12324
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-09T11:49:24Z"
author: darjoo
author_type: User
community_contribution: false
labels:
  - "Team: Integrations"
change_class: code
change_kind: obsoletion
behavior_change: false
breaking: false
files:
  count: 4
  additions: 253
  deletions: 61
  al: 2
apps:
  - Base Application
objects_touched:
  - key: codeunit/6154
    page: codeunit/6154
    type: codeunit
    id: 6154
    name: API Webhook Notification Send
    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:
  - object: API Webhook Notification Send
    member: OnSendRequestOnBeforeSendRequestAndReadTextResponse
    replacement: OnSendRequestOnBeforeSendHttpRequest
  - object: API Webhook Notification Send
    member: OnAfterSendNotification (with DotNet HttpStatusCode parameter)
    replacement: OnAfterSendNotificationWithStatusNumber
  - object: ODataUtility
    member: CreateMetadataWebRequest
    replacement: null
backports: []
fixes_issues: []
work_items:
  - 647963
systems:
  - integration
quote: null
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #12324 Obsolete Http Web Request Mgt. usage in public API (webhooks, OData)

> Http Web Request Mgt usage is removed from webhook and OData public APIs by replacing DotNet-based code with native HttpClient and HttpRequestMessage, while obsoleting old event signatures.

[Pull request](https://github.com/microsoft/BCApps/pull/12324) · merged into `main` (BC30) on 2026-10-09 by darjoo · 4 files (+253 -61), 2 AL · obsoletion · tier official · reviewed (checked by Opus)

## What changed

- SendRequest in API Webhook Notification Send now uses native HttpClient instead of Http Web Request Mgt.
- New event OnSendRequestOnBeforeSendHttpRequest replaces the pending-obsolete OnSendRequestOnBeforeSendRequestAndReadTextResponse
- OnAfterSendNotification with a DotNet HttpStatusCode is pending obsolete; use OnAfterSendNotificationWithStatusNumber
- ODataUtility CreateMetadataWebRequest is pending obsolete; build requests with native HttpClient
- Headers, UTF-8 body, timeout, telemetry and retry rules are kept the same

## AL objects touched

- [Codeunit 6154 "API Webhook Notification Send"](../../objects/codeunit/6154.md), Base Application: modified
- [Codeunit 6710 "ODataUtility"](../../objects/codeunit/6710.md), Base Application: modified

## Obsoletions

- API Webhook Notification Send: OnSendRequestOnBeforeSendRequestAndReadTextResponse, replaced by OnSendRequestOnBeforeSendHttpRequest
- API Webhook Notification Send: OnAfterSendNotification (with DotNet HttpStatusCode parameter), replaced by OnAfterSendNotificationWithStatusNumber
- ODataUtility: CreateMetadataWebRequest

## Context

- Work items: AB#647963
- Labels: Team: Integrations
- Systems: integration

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Working with webhooks](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/dynamics-subscriptions) — possibly related: touches Codeunit 6154 "API Webhook Notification Send"
- [Analyze Incoming Web Service Telemetry](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/administration/telemetry-webservices-trace) — possibly related: Modernizing OData web service calls, relevant to incoming web service telemetry. (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).
