Skip to main content

Integrate Business Events with Applications using MS Power Automate Flow in D365 FO

Integrate OOTB or Customized Business Events with Applications using MS Power Automate Flow

Dear Consultants,

Based on requirements, we choose integration techniques. Today, we'll discuss the methods we use to trigger a call based on process in D365 FO.

Blog for Pre Process before consuming Customized Business Event : Customized Business Event in D365 FO

Requirements:

  • New employee is getting on board.
  • The outside system should know the on-boarding process has initiated.
  • Dependent processed will trigger based on ERP event
  • CRUD operation should be available using Data entity framework.

Pre- requisites:

  • Data Entity should be available
  • Business Event should be available
  • Permission to create and manage flow should be available on Power Portal.

 

 

Steps:

1) Navigate to Business Events Catalog

Article content

2) Search your OOTB / Customized Business Event & Download the schema

Article content

3) Login to https://make.powerautomate.com/

4) Create a flow

Article content

5) Add a Trigger Event Action for Fin & Ops [Dynamics 365]

Details: Insert a new step in the flow, then search for Fin Ops. In the trigger section, select the business event trigger.

 

Article content

 

Article content

Category must match D365 FO.

Article content

6) Add New step of Data Operation and then select Parse Json. Now Paste the Downloaded json [step 2] and click Generate from sample button.

Article content

You will later see a file generated like this.

Article content

7) Run the Executor from D365 FO or Flow. If the connection works, you’ll see results based on the business event linked to your source. For example, connecting to a data entity will display sample results from that entity in Flow.

Article content

The flow can be used further to automate the processing by adding more steps.

 

Hope you find this blog helpful!

Shayan Arshi

Comments

Popular posts from this blog

Update record set using update_recordset in d365 F&O | AX 2012 using X++

Hello Devs! One the most common condition that we being a developer faces is to update existing records set that is mostly done on report level when we need to add new fields in the Temporary table and we don't wants to make extensions on class level. Here is a small piece of code that will assist you in updating existing record sets.  update_recordset custAgingReportTmp                 setting                 CMTCustInternalCollector = hcmWorker.PersonnelNumber,                 PaymDayId                         = custTable.PaymDayId,                 PaymTermId                       = custTable.PaymTermId,                 CashDisc      ...

Import DB backup from .BacPac file in D365 F&O using CMD

Hello Devs! This is one of the most quickest way to import DB from .Bacpac file. Bacpac files are those which are generated from Tier 2 or higher environments as a DB backup.   Alternate Approach ----> Using wizard Prerequisites: 1) Access to LCS folder Asset library --> Database Backup Incase you don't see the folder ask your project owner to give you the access. Step 1:  Download the file and save it in local non-user directory.  Step 2: - Services to be stopped World Wide Web Publishing Service Management Reporter 2012 Process Service Microsoft Dynamics 365 Unified Operations: Batch Management Service Microsoft Dynamics 365 Unified Operations: Data Import Export Framework Service - Download SqlPackage.Exe.  Download link :  https://learn.microsoft.com/en-us/sql/tools/sqlpackage/sqlpackage-download?view=sql-server-ver15 Extract it and Open CMD as admin.  Step 3 :  Navigate to directory where you have extracted the SqlPackage.Exe folder us...

Adding D365 F&O Extension in Visual Studio 2022 | Dynamics

  Hello Devs! This is a very common scenario when it comes to enabling D365 extension within VS 2022, so for that below are list of steps needs to be done to enable extension for development. Please note for Older VS versions please refer to my blog below : https://www.linkedin.com/feed/update/urn:li:ugcPost:7033677029451440128/ Prerequisites: Visual Studio 2022 should be installed before performing below steps. Step # 1: Login to LCS (Microsoft Dynamics lifecycle services). In the main page after login there is a option of Shared asset library (without entering into project folder). Step # 2: In the list of sub menus , Select Software deployment package and search for latest Service update. For my case I am downloading 10.0.41 Step # 3 : Once you have downloaded it. Unzip the folder and search for FinanceAndOperations_10.0.2015.54_Application\DevToolsService\Scripts Before installation you will not be able to see Dynamics 365 option within VS 2022. Now please clos...