D365 business events return JSON

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

d365 business events return json
d365 business events return JSON

You will see a screen like below

Business events catalog
Business events catalog

Now select your business event catalog and click on ‘Download schema’ as shown below

Business events catalog (Download schema)
Business events catalog (Download schema)

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

Azure when a business event occur D365
Azure Logic app – when a business event occurs D365

Need help? Connect Atul

Atul Yadav
Latest posts by Atul Yadav (see all)

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *