Connecting D365 CRM using Web API and Power Automate Flow.

Hello Guys,

In our previous blog we have seen how to create Custom Function using Custom API. In this blog we will see how to use OOB Web API using Power Automate Flow and in our upcoming blow will we see how to use Custom Function using Power Automate Flow.













But before do follow us to know more about Dynamics and Power Platform. Also if you like our blog then please comment and share this blog with your friends.

Connecting D365 CRM using Web API and Power Automate Flow is similar to connecting D365 using Web API and C# which we have already explained our one of the blog. To do so first of all we need to acquire token from the Azure Active Directory and then that token will be used for authentication. So let's see how to do that.

First of all we will be creating client secret which will be used for authenticating d365 user. Visit https://portal.azure.com.




Click on Azure Active Directory and select App registration.




Click on your application which you have registered in AAD.




Click on certificates and secrets.




Add a client secret key and click on Add button.




Copy Secret ID and value and keep it stored somewhere.




Now visit https://make.powerapps.com and select your current working environment and solution.




Click on New and select Cloud Flow.




Select Manually trigger a flow and configure the steps as shown below:





Now click on Add new step and search for HTTP. Configure the step as shown below:




Now we will be adding a new step where we will compose the token. Click on New Step and select Compose and configure it as shown below:




Add a new step and search for HTTP and configure it as shown below:




In above image output is coming from previous step. So our flow is ready to run. Click on Test to run.




Specify the details as shown in above image and click on Run Flow button.




As you can see our flow ran successfully and its now connected with D365.





Hope it helps...











Comments

Popular posts from this blog

Read Only Sub Grid & Editable Sub grid in Dynamics 365

Using Pipelines in Power platform for deploying solutions to environments.

Understanding Sales Process in D365.