community postIntegration & APIscommunity - not Microsoftreviewed - checked by Opus

Dynamics 365 Business Central: How to deprecate external business events (ExternalBusinessEvent)

External business events enable Business Central to notify and trigger actions in external systems like Dataverse and Power Automate. This post explains how to deprecate these events predictably so that external integrations can transition to replacement events, using the Obsolete attribute and an [OBSOLETE] marker prefix in version 26 and later.

post Dynamics 365 Lab

Yun Zhu · 2025-07-23 · 969 words · about 4 min

"The approach for deprecating an external business event is similar to the standard deprecation process for procedures."

Key points

  • Business events allow Business Central to notify external systems and trigger reactions in Power Automate, Dynamics 365 Sales, Customer Service, and third-party services
  • The catalog includes predefined events like purchase invoice posted, sales invoice posted, customer blocked, and sales order released across purchasing, accounts payable, accounts receivable, and sales categories
  • Deprecating an event involves marking it as obsolete pending using the [Obsolete] attribute and prefixing the DisplayName with [OBSOLETE] to inform external subscribers
  • External business events are available in version 22.2 and later, with deprecation capability added in Business Central 2025 release wave 1 (v26)
  • Events are defined in AL code using ExternalBusinessEvent attribute, subscribed to via EventSubscriber, and triggered within event handler procedures

Quotes

  • “The approach for deprecating an external business event is similar to the standard deprecation process for procedures.” (Clarifies that deprecation follows established AL patterns, making it easier for developers familiar with standard deprecation)

AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

  • codeunit “MyCodeunit”

Not found in BC28-30: codeunit “MyCodeunit”.

Context

  • Features: External business events, Business event deprecation, Event subscription, Power Automate integration, Dataverse integration, Obsolete attribute marking, Event catalog
  • Versions: 22.0, 22.1, 22.2, 24.0, 26, Business Central 2025 release wave 1

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.