How to identify subscriber events in Dynamics 365 Business Central?

Hi ALL,

Eventing is major part while upgrading to business central, we face alot of customisation done in Customer database which needs to be evented and converted into extension.

You subscribe to events to extend application and interact with the base application and other extensions. This topic describes how to discover events that you can subscribe to without writing the code manually

I suggest you to see the topic mentioned below before moving further on this

Why Event & Extensions for Microsoft Dynamics 365 Business Central (MSDYN365BC)? 

I have got some query about how to identify the EventSubscriber for AL code. So lets take a dive into this.

Record Events

To record the current session, Search for Event recorder in Business Central click the Start button located on the actions ribbon.

After starting the Event Recorder do not close the Window, open the session in different window.

Perform all the actions that you want to record while the Event Recorder session is on. For example, we want to make External Document No. Mandatory in Sales Order (which is default feature)

I will try to post the Sales Order and check go to Event Recorder window and stop

You will get the list of Event occured while doing this activity as shown below

You can directly copy the event subsciber code from GET AL Snippet

Copy the EventSubscriber and add a new Codeunit as mentioned in Why Event & Extensions for Microsoft Dynamics 365 Business Central (MSDYN365BC)? 

You can ref for some more example on Events mentioned below.

Part 1 of this topic:How can we flow a custom field from Journal to Ledger for AL project in VS Code for MSDYN365BC.

Part 2 of this topic:How can we flow a custom field from Journal to Ledger for AL project in VS Code for MSDYN365BC continued..

To get new updates and learn about Microsoft Dynamics 365 Business Central Microsoft Learn and Self Learning

Download Link for different version of NAV and Business Central

Happy Reading.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s