Please wait, loading...

 

Introduction

As seen in our previous blog, we can create a custom API that can be triggered in Dynamics 365 CRM Workflows. But since Microsoft is moving away from Dynamics 365 CRM Workflows to Power Automate Flows, we should too. So, in this blog, we will see how to use the same Custom API in a Power Automate Flow.

After creating a custom API, follow the steps given below:

  1. Navigate to your environment from powerapps.com and to your solution -> Click on New -> Select Cloud Flow.

Custom API in Power Automate Flow

  1. Search for “when a row is added” in the trigger and select “When a row is added, modified or deleted” trigger.

Custom API in Power Automate Flow

  1. Rename the flow step. (Note – It is recommended to uniquely name every step to prevent confusion in case the power automate flow gets a bit complex).
    1. Select ‘Added’ in change type and ‘Accounts’ in Table Name since we want this flow to run when a new account is created.
    2. Choose scope from Organization/Business Unit/Parent: Child Business Unit/User as per your requirement.

Custom API in Power Automate Flow

  1. Click on New Step -> Search for “Perform a bound action” and Select “Perform a bound action” from Actions.

Custom API in Power Automate Flow

  1. Rename this flow step.
    1. Select ‘Accounts’ in Table name since our custom API is bound to the Accounts entity.
    2. Select the action by its unique name in Action Name.
    3. Select unique identifier of the Account (added in the previous step) in Row ID as shown below:

Custom API in Power Automate Flow

After this, the step would look like below.

Custom API in Power Automate Flow

  1. This is pretty much it. Next, give a proper name to your flow and save it.

Custom API in Power Automate Flow

  1. Now, whenever an account record gets created, a phone call activity associated to the account will also get created with the due date set as the next day and thus can be seen in the Timeline as well.

Conclusion: In this way, we can easily use the custom API in Power Automate Flow.

Please Follow the Source

https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/Microsoftdynamics365.png?fit=640%2C651
Microsoft Dynamics Community Profile

Learn more