---
id: object/codeunit/1541
type: object
title: Codeunit 1541 "Workflow Webhook Events"
summary: Codeunit 1541 "Workflow Webhook Events" in Base Application (System.Automation). 2 public procedures, 16 event subscribers. Present since at least BC23, still in BC30, changed in BC28-29.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "29"
  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: 879d28eeb272063905266ea4640061e6f3302328c594400a7204c56a7b668b19
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/Workflow/WorkflowWebhookEvents.Codeunit.al
    title: src/Layers/W1/BaseApp/System/Workflow/WorkflowWebhookEvents.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: 1541
name: Workflow Webhook Events
namespace: System.Automation
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "28"
  - "29"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 19
  events: 0
  subscribers: 16
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 6
  called_by: 4
  implements: 0
---

# Codeunit 1541 "Workflow Webhook Events"

> Codeunit 1541 "Workflow Webhook Events" in Base Application (System.Automation). 2 public procedures, 16 event subscribers. Present since at least BC23, still in BC30, changed in BC28-29.

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

## Event subscriptions

- AddWorkflowWebhookEventHierarchiesToLibrary subscribes to Codeunit "Workflow Event Handling" OnAddWorkflowEventPredecessorsToLibrary
- AddWorkflowWebhookEventsToLibrary subscribes to Codeunit "Workflow Event Handling" OnAddWorkflowEventsToLibrary
- AddWorkflowWebhookTableRelationsToLibrary subscribes to Codeunit "Workflow Event Handling" OnAddWorkflowTableRelationsToLibrary
- HandleOnCancelWorkflow subscribes to Codeunit "Workflow Webhook Management" OnCancelWorkflow
- HandleOnContinueWorkflow subscribes to Codeunit "Workflow Webhook Management" OnContinueWorkflow
- HandleOnRejectWorkflow subscribes to Codeunit "Workflow Webhook Management" OnRejectWorkflow
- HandleOnCancelCustomerApprovalRequest subscribes to Codeunit "Approvals Mgmt." OnCancelCustomerApprovalRequest
- HandleOnCancelItemApprovalRequest subscribes to Codeunit "Approvals Mgmt." OnCancelItemApprovalRequest
- HandleOnCancelGeneralJournalBatchApprovalRequest subscribes to Codeunit "Approvals Mgmt." OnCancelGeneralJournalBatchApprovalRequest
- HandleOnCancelGeneralJournalLineApprovalRequest subscribes to Codeunit "Approvals Mgmt." OnCancelGeneralJournalLineApprovalRequest
- HandleOnCancelItemJournalBatchApprovalRequest subscribes to Codeunit "Approvals Mgmt." OnCancelItemJournalBatchApprovalRequest
- HandleOnCancelRequisitionWkshBatchApprovalRequest subscribes to Codeunit "Approvals Mgmt." OnCancelRequisitionWkshBatchApprovalRequest
- HandleOnCancelVendorApprovalRequest subscribes to Codeunit "Approvals Mgmt." OnCancelVendorApprovalRequest
- HandleOnCancelVendorBankAccountApprovalRequest subscribes to Codeunit "Approvals Mgmt." OnCancelVendorBankAccountApprovalRequest
- HandleOnDeleteRecordInApprovalRequest subscribes to Codeunit "Approvals Mgmt." OnDeleteRecordInApprovalRequest
- HandleOnRenameRecordInApprovalRequest subscribes to Codeunit "Approvals Mgmt." OnRenameRecordInApprovalRequest

## Procedures

- `WorkflowWebhookResponseReceivedEventCode(): Code[128]`
- `CleanupOldIntegrationIdsTableRelation()`

Plus 1 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 1520 "Workflow Event Handling"](../codeunit/1520.md) (11 calls: `AddWorkflowWebhookEventHierarchiesToLibrary → AddEventPredecessor`, `AddWorkflowWebhookEventHierarchiesToLibrary → RunWorkflowOnSendCustomerForApprovalCode`, `AddWorkflowWebhookEventHierarchiesToLibrary → RunWorkflowOnSendGeneralJournalBatchForApprovalCode`, …)
- [Codeunit 1543 "Workflow Webhook Management"](../codeunit/1543.md) (10 calls: `HandleOnCancelCustomerApprovalRequest → FindAndCancel`, `HandleOnCancelGeneralJournalBatchApprovalRequest → FindAndCancel`, `HandleOnCancelGeneralJournalLineApprovalRequest → FindAndCancel`, …)
- [Codeunit 1501 "Workflow Management"](../codeunit/1501.md) (3 calls: `HandleOnCancelWorkflow → HandleEvent`, `HandleOnContinueWorkflow → HandleEvent`, `HandleOnRejectWorkflow → HandleEvent`)
- [Codeunit 9999 "Upgrade Tag"](../codeunit/9999.md) (2 calls: `CleanupOldIntegrationIdsTableRelation → HasUpgradeTag`, `CleanupOldIntegrationIdsTableRelation → SetUpgradeTag`)
- [Codeunit 1502 "Workflow Setup"](../codeunit/1502.md) (1 call: `AddWorkflowWebhookTableRelationsToLibrary → InsertTableRelation`)
- [Codeunit 9998 "Upgrade Tag Definitions"](../codeunit/9998.md) (1 call: `CleanupOldIntegrationIdsTableRelation → GetRemoveOldWorkflowTableRelationshipRecordsTag`)

## Called by

- [Codeunit 1540 "Workflow Webhook Setup"](../codeunit/1540.md) (6 calls: `CreateApprovalWorkflow → WorkflowWebhookResponseReceivedEventCode`, `CreateCustomerItemApprovalWorkflow → WorkflowWebhookResponseReceivedEventCode`, `CreateGeneralJournalWorkflowNotificationSteps → WorkflowWebhookResponseReceivedEventCode`, …)
- [Codeunit 104000 "Upgrade - BaseApp"](../codeunit/104000.md) (1 call: `UpdateWorkflowTableRelations → CleanupOldIntegrationIdsTableRelation`)
- [Codeunit 1543 "Workflow Webhook Management"](../codeunit/1543.md) (1 call: `GetInitialResponseValue → WorkflowWebhookResponseReceivedEventCode`)
- [Page 1520 "Workflow Events"](../page/1520.md) (1 call: `OnOpenPage → WorkflowWebhookResponseReceivedEventCode`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC28-29

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: "Workflow Webhook Events")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
