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

How to implement and use Extension Methods in C#

Do you wish to extend the built-in types with new methods?Want to extend custom types with new metho...

Read More >

How to run NAV 2015 and NAV 2016 Administration tool side by side

Everyone would have installed NAV 2016 RTM and would have faced the same problem, i.e, you couldn...

Read More >

Microsoft Azure : Mobile Services - Xamarian.Android with .Net

NOTE: Microsoft Azure recommends Azure App Service Mobile Apps for all new mobile backend deployment...

Read More >

Windows 8 Shortcut Keys -Useful

HotkeysPressing the Windows key and some specific keys can make you life easier. Here are some usefu...

Read More >

Starting with CSS Preprocessor

In this article we learn about, 1.What is CSS Preprocessor? 2.Installations 3.How to ...

Read More >

Microsoft Office 2013 Features and Looks

Now Office 2013 launched recently, now its not available for users may be its available for User aft...

Read More >

What's New In C# 6.0?

Microsoft has released the preview version of Visual Studio 2015 and .NET 4.6 for developers to try ...

Read More >

What is Defect? Defect Life Cycle in Software Testing.

Defect is an unexpected behavior of the software application flow against the requirement specificat...

Read More >

Object Identification and Object Repositories in QTP

Object IdentificationQTP performs the operation only after identifying the object uniquely. In order...

Read More >

Share

Post a Comment

  • Recent
  • Popular
  • Tag
Monthly Archive
Subscribe
Name

Contact Us
  • *
  • *