Posts

Showing posts from March, 2023

Custom Business Event

Hello everyone, today I am going to talk about one of the interesting features of D365 F&O called "Business event".  Business event you can use to integrate with LogicApps and other Azure applications based on actions like: record created, deleted, posted etc. In below demonstration we are going to develop custom business events for customer group which will triggered when we create new customer group.   First, we have to create following classes: 1. Contract class- this class should extend BusinessEventsContract class and use for defining payload/fields which we want to expose while consuming the Business event. 2. Business Event class- this class should extend  BusinessEventsBase class and use for constructing the business event, building payload and sending the business event request. Contract class /// <summary> /// The data contract for the <c>CustomerGroupBusinessEvent</c>,business events. /// </summary> [DataContract] class BECustomerContra