Event definitions

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 ...

Get Mastering Microsoft Dynamics 365 Business Central now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.