Exposing Dynamics 365 Business Central events to Dataverse
Business events are a way of notifying and triggering an external system (mainly Dataverse but not only) when an action occurs in Dynamics 365 Business Central business logic.
The following diagram shows how Business events relates to Dataverse integration:
Figure 16.72: Business events diagram
They are published by Dynamics 365 Business Central using webhook techniques and they are exposed to Dataverse via the virtual table plugin. In Dataverse processes, you can react to those events.
To use Business events from Dynamics 365 Business Central, you need to execute the Dataverse Connection Setup (as previously explained) and from here select the Enable virtual tables and events flag.
A business event can be defined via AL code in Dynamics 365 Business Central by using the ExternalBusinessEvent
attribute:
[ExternalBusinessEvent(Name: Text, DisplayName: Text, Description: Text, Category: enum)]
...