Business Event in D365F&O
Business Events
Business events provide a mechanism that lets external systems receive notifications from finance and operations apps. By using this mechanism, you can perform business actions in response to the business events.
Business events occur when a business process runs. During a business process, users who participate in it perform business actions to complete the tasks that make up the business process.
A business action that a user performs can be either a workflow action or a nonworkflow action. Approval of a purchase requisition is an example of a workflow action, whereas confirmation of a purchase order is an example of a nonworkflow action. Both types of actions can generate business events that external systems can use in integration and notification scenarios.
Prerequisites
- Azure service bus que
- Azure service bus topic
- Event grid
- Event hub
- HTTPS
- Blob storage
Contract class for initialise the values and base class to send data to Azure services.
BusinessEventContract:
private CustAccount custAccount;
private SalesId salesId;
}
}
BusinessEventBase:
"SalesOrderStatusChange",
"SalesOrderStatusChangeDescription",
ModuleAxapta::SalesOrder)]
public final class SalesBusinessEvent extends BusinessEventsBase
{
private SalesTable salesTable;
public static SalesBusinessEvent newFromSalesTable(SalesTable _salesTable)
{
SalesBusinessEvent businessEvent = new SalesBusinessEvent();
businessEvent.parmSalesTable(_salesTable);
return businessEvent;
}
private void new()
{
}
private SalesTable parmSalesTable(SalesTable _salesTable = salesTable)
{
salesTable = _salesTable;
return salesTable;
}
public BusinessEventsContract buildContract()
{
return SalesBusinessEventContract::newFromSalesTable(salesTable);
}
Comments
Post a Comment