---
id: object/codeunit/6154
type: object
title: Codeunit 6154 "API Webhook Notification Send"
summary: Codeunit 6154 "API Webhook Notification Send" in Base Application (Microsoft.API.Webhooks). 3 public procedures, 10 events, 1 event subscribers. Present since at least BC23, still in BC30, changed in BC25.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "25"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 55b46ddf76d614d15c26d82b51f29708dadfa1f8f98d7c4835883cdb3de64694
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/API/Webhooks/APIWebhookNotificationSend.Codeunit.al
    title: src/Layers/W1/BaseApp/System/API/Webhooks/APIWebhookNotificationSend.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 6154
name: API Webhook Notification Send
namespace: Microsoft.API.Webhooks
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 92
  events: 10
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 7
  called_by: 0
  implements: 0
---

# Codeunit 6154 "API Webhook Notification Send"

> Codeunit 6154 "API Webhook Notification Send" in Base Application (Microsoft.API.Webhooks). 3 public procedures, 10 events, 1 event subscribers. Present since at least BC23, still in BC30, changed in BC25.

Base Application · Microsoft.API.Webhooks · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/API/Webhooks/APIWebhookNotificationSend.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "API Webhook Subscription" = rimd, TableData "API Webhook Notification" = rimd, TableData "API Webhook Notification Aggr" = rimd |

## Events published

- `OnBeforeProcessNotifications()` (integration)
- `OnAfterProcessNotifications()` (integration)
- `OnBeforeDeleteInactiveJobs()` (integration)
- `OnBeforeSendNotification(NotificationUrl: Text; Payload: Text)` (integration)
- `OnAfterSendNotification(var ErrorMessage: Text; var ErrorDetails: Text; var HttpStatusCode: DotNet HttpStatusCode)` (integration)
- `OnAfterSendNotificationWithStatusNumber(var ErrorMessage: Text; var ErrorDetails: Text; HttpStatusCode: Integer)` (integration)
- `OnGetMaxNumberOfNotifications(var Handled: Boolean; var Value: Integer)` (integration)
- `OnGetMaxNumberOfAttempts(var Handled: Boolean; var Value: Integer)` (integration)
- `OnGetSendingNotificationTimeout(var Handled: Boolean; var Value: Integer)` (integration)
- `OnSendRequestOnBeforeSendRequestAndReadTextResponse(var HttpWebRequestMgt: Codeunit "Http Web Request Mgt.")` (integration)

## Event subscriptions

- HandleOnBeforeInsertJobQueueLogEntry subscribes to Table "Job Queue Entry" OnBeforeInsertLogEntry

## Procedures

- `GetMaxNumberOfLoggedNotifications(): Integer`
- `GetMaxNumberOfNotifications(): Integer`
- `DateTimeToUtcString(DateTimeValue: DateTime): Text`

Plus 78 local procedures.

## Triggers

OnRun

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 6153 "API Webhook Notification Mgt."](../codeunit/6153.md) (24 calls: `CollectKeyFieldTypeBySubscriptionId → GetEntity`, `CollectKeyFieldTypeBySubscriptionId → IsDetailedLoggingEnabled`, `CollectKeyFieldTypeBySubscriptionId → TryGetEntityKeyField`, …)
- [Codeunit 5459 "JSON Management"](../codeunit/5459.md) (16 calls: `AddPayloadPerSubscription → AddJObjectToJArray`, `DateTimeToUtcString → AddJPropertyToJObject`, `DateTimeToUtcString → GetJSONObject`, …)
- [Codeunit 1297 "Http Web Request Mgt."](../codeunit/1297.md) (10 calls: `AddTokenToRequestHeader → AddHeader`, `SendRequest → AddBodyAsTextWithEncoding`, `SendRequest → AddHeader`, …)
- [Codeunit 5465 "Graph Mgt - General Tools"](../codeunit/5465.md) (2 calls: `GetAadUserId → StripBrackets`, `IsApiSubscriptionEnabled → IsApiSubscriptionEnabled`)
- [Codeunit 6723 "Server Setting"](../codeunit/6723.md) (2 calls: `GetMaxNumberOfNotifications → GetApiSubscriptionMaxNumberOfNotifications`, `GetSendingNotificationTimeout → GetApiSubscriptionSendingNotificationTimeout`)
- [Codeunit 10 "Type Helper"](../codeunit/10.md) (1 call: `GetUriEscapeFieldValue → UriEscapeDataString`)
- [Codeunit 7201 "CDS Integration Impl."](../codeunit/7201.md) (1 call: `AddTokenToRequestHeader → GetBusinessEventAccessToken`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "API Webhook Notification Send")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
