A business event is a way of detecting and responding to important situations/events in the business process.
How to set up D365 business event
So when we set up a business event we get JSON response from D365 to the 3rd party(Azure logic app, power automate, etc). To get the exact JSON we need to follow the below steps:
Go to System Administration > Setup > Business events as shown below
You will see a screen like below
Now select your business event catalog and click on ‘Download schema’ as shown below
This will download a Txt file that contain the JSON structure of the business event.
In my case, I had below JSON
{
"AvalaraReferenceNumber": "",
"BusinessEventId": "",
"BusinessEventLegalEntity": "",
"ContextRecordSubject": "",
"ControlNumber": 0,
"EventId": "",
"EventTime": "/Date(-2208988800000)/",
"EventTimeIso8601": "1900-01-01T00:00:00Z",
"InitiatingUserAADObjectId": "{00000000-0000-0000-0000-000000000000}",
"Invoice": "",
"LegalEntity": "",
"MajorVersion": 0,
"MinorVersion": 0,
"ParentContextRecordSubjects": null,
"SalesOrderId": ""
}
Adding a screenshot below of the Azure Logic app, When a business event occurs
Need help? Connect Atul
- D365 Data entitiy Insert method COC - October 30, 2024
- D365 Joins - October 16, 2024
- D365 Find method and Exist method - October 9, 2024