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.

Step1

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:

Step2

 

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

recordingevents

Step 3: Go to Another Browser and start executing the required process. In this example I am creating an order

step3Step 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

Step4

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:

eventispublished

eventispublished2

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

ALcodefortheevents

ALcodefortheevents1

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

Step5

Note: event is shown in VS code editor just for example purpose not related to above triggered event.

 

Related

Entity Framework CodeFirst Approach

Entity Framework Code First Approach Entity Framework is an enhancement to an existing ADO.Net ...

Read More >

VSTS Rollup Service - How to use

          Hi All, Here i'm going to explain How VST...

Read More >

Autofill RecVariable Name in DynamicsNAV 2015

I discovered something quite interesting couple of week back and I thought it was worth sharing.When...

Read More >

Service Broker

Service Broker SQL Server Service broker provides asynchronous queuing functionality to SQL Ser...

Read More >

India’s First - Microsoft Gold Competency in Application Lifecycle Management

By earning the Microsoft Gold Competency in Application Lifecycle Management, Canarys became the Fir...

Read More >

Azure Blob Storage: The PowerShell Way!

Hi folks!Great to see you again.This blog post is purely based on Azure Blob Storage: The PowerShell...

Read More >

Application Maintenance

Our dedicated and skilled resources ensure that routine maintenance and enhancements to your existin...

Read More >

What is Selenium Webdriver

Automated software testing is a process in which software tools execute pre-scripted tests on a soft...

Read More >

Microsoft Dynamics NAV 2013 R2 Chart Generator

In general chart means visual display of information, this is one such feature that is introduced in...

Read More >

Migrating TFS 2013 Version Control to TFS Git with changeset history

There are several articles on the web describing the migration technique with minimal details. This ...

Read More >

Share

Comments

Many people struggle with saving the i for a down payment. Rather they should not do so. Property should be sold correctly. href="https://www.ludharestates.ca/" >initial money.10/9/2019 3:18:41 PM | Reply
HI Sandeep,Great post. Good to see this feature in Microsoft Dynamics 365 BC.Best Regards,Manish
9/8/2019 12:10:51 AM | Reply

Post a Comment

  • Recent
  • Popular
  • Tag
Tags
Monthly Archive
Subscribe
Name

Contact Us
  • *
  • *