MS Dynamics 365 FO Business Events (Po confirm without workflow ) notification

 Business events provide a way to alert external systems when a business process is performed in D365 FO (Finance & Operations).

There are two types of business action:

  • Workflow action
  • Non-workflow action

Business events can be viewed in System administration > Setup > Business events > Business events catalog

Business events with Category name starting with “Workflow” belong to the workflow category. For non-workflow, the Category name is normally the same as the name of their module.

Endpoints let you define the destination for sending the business events. There are five types of endpoint:

  • Azure Service Bus Queue
  • Azure Service Bus Topic
  • Azure Event Grid
  • Azure Event Hub
  • HTTPS
  • Microsoft Power Automate

In the example below, we are going to use the Microsoft Power Automate endpoint.

Example:

For this example, we are going to use the non-workflow action business event “Purchase order confirmed”.

Login to https://us.flow.microsoft.com/.

Go to MyFlow > New Flow > Automated Cloud Flow

Search for trigger “When a Business Event Occurs” in D365 FO and give it a name, then click on create.

Enter the details as done above. The instance is the URL of the environment. Then click on “New Step” and search for “Parse JSON”:

When clicking on the Content textbox, it will show the option of Dynamic Content. Select “body” from it

Go to your D365 FO environments System administration > Setup > Business events > Business events catalog. Search for Category “Purchase orders” and select Purchase order confirmed. Click on download schema. And copy the JSON from the file downloaded

Login to JSONSchema.net and paste the JSON and submit it. Copy the Schema generated on the right.

Go back to PowerAutomate flow and in “Parse JSON” click on “Generate from a sample”. And paste the schema and click on “Done”:

Click on “New step” and search for “send an email”. I have selected “Send an email (V2):

Next step is to intilize the variable as we re posting the teams messages on multiple user 

    


Now make the action and assigned the buffer comes from uper and then a action post a teams message 

as shown below


 body('Parse_JSON')['PurchaseOrderNumber']---. correct make the expression to get hhe po number 

next step is to trigger a email so below will helps on this 













Comments

Popular posts from this blog

Customization on Sales invoice Report in D365 F&O

75) COC - Create a coc of the table modified method

46) D365 FO: SHAREPOINT FILE UPLOAD USING X++