09Apr
Dynamics 365 Business Central: How to Record Events in Business Central
When you are developing an extension for Dynamics 365 Business Central and you need to interact with the standard Microsoft’s code, one of the hardest problems is detecting which event you can subscribe to (As you already know, you cannot modify standard code in the D365BC platform, but you can only attach to events raised by the platform).
In Business Central there is feature available to see which events are executed during process you ran, and one can record this event using event recorder.
Refer the below steps for detail explanations:
Step 1: Search for Event recorder.

Step 2: Click on Event recorder which will show as below, here you have a Record Events menu with a Start and Stop button. Press Start to start the recording process:

A confirmation dialog appears. Press Yes to start recording events:

Step 3: Go to Another Browser and start executing the required process. In this example I am creating an order
Step 4: When you have finished the process, press the Stop button in the Event Recorder page.
Now go back first browser and click on record Events –> Stop

Once you click ‘Yes’ then it will display all the raised events are logged in the exact order they were called, and you can see the event (name and type) and the object where the event is published:


Go to the last columns i.e. Get AL Snippets where you will get AL code for the events.


Step 5: You can refer the event and use it in your AL extension project in Visual Studio Code.

Note: event is shown in VS code editor just for example purpose not related to above triggered event.
Related
User controls are containers into which you can put markup and Web server controls. You can then tre...
Read More >
Microsoft Dynamics CRM, is one of the prominent offerings from the Microsoft Dynamics family of ERP ...
Read More >
Since we all know In Microsoft Dynamics NAV 2013 R2, the support for t...
Read More >
CfMD services help ISVs minimize the time and effort needed to get their software solution through t...
Read More >
DevOpSmartBoard -The Ultimate End-To-End and One Stop Dashboard solution for all the reporting needs...
Read More >
Recently when revisiting an internal SCCM deployment I found that the WSUS integration had stopped w...
Read More >
Scenario:Usage of Manual Test case(MTM) to perform the Load Test using Visual Studio 2010.We call it...
Read More >
Ansible is an open source, IT automation tool. It can configure systems, deploy software, and orches...
Read More >
Date : 28th Jan 2016 | Day : Thursday | Time : 03:30 PM IST | Duration : 1 HourREGISTER yourse...
Read More >
Share