As we mentioned previously, events are fundamental building blocks when it comes to developing extensions for Dynamics 365 Business Central. When working with events, we have two main entities: the event publisher and the event subscriber.
An event publisher (an event that's raised by the application) can be defined in AL by using the teventbus (for a business event) or teventint (for an integration event) snippets:
A business event has the following schema:
[BusinessEvent(IncludeSender)] local procedure MyProcedure() begin end;
Here, IncludeSender is a Boolean value that specifies whether the global methods defined in ...