According to Microsoft documentation, Logic Apps is a service to simplify and implement scalable integration and workflows in the cloud. As a CRM professional I was aware of Microsoft Flow but not of Logic Apps. Microsoft Flow is actually built on Logic App Most of the features and API connections are the same.
The major difference is that Microsoft Flow is targeted for business users whereas Logic Apps is targeted towards IT professionals and developers. Logic Apps can have some additional connections like BizTalk APIs. The other major difference is that Microsoft Flow workflows are created in production but Logic Apps provides the DevOps and security assurance.
The following link details the comparisons between Microsoft Flow and Logic Apps
For this Blog I am building a Logic App that will act as endpoints to create records in Dynamics 365. The good thing is that we don’t need to write code to create the endpoints.
Create a Logic App
- Logon to the Microsoft Azure Portal.
- Create a new Logic App by Navigating to New>>Web +Mobile>>Logic App as shown in the screen shot below.
- Enter the app name and other information as required and click Create. (I generally checked “Pin to Dashboard” to open the app straight from the dashboard)
- Open the newly created app.
- Click on Edit to open the designer.
- Select Request from the list of the managed APIs as shown in the screen shot.
- Enter the JSON schema for the request. I have created a customer object with first name, last name, street address and city.
- Click Save. It will populate the URL field of the request. This URL will be used as endpoints to call the Logic App.
- Click New step and choose Add an action.
- Select Dynamics 365 – Create a new record from the managed APIs list.
- Choose the Organisation Name, choose the Contacts as the entity name and map the first name, last name, street address and city with the JSON schema added in step 7.
- Click New step and choose Add an action as shown in the screen shot below.
- Select Response from the list.
- Enter the following information as shown in the screen shot below
- Save the app and test it.
Testing the Logic App
For testing we need to call Logic App using URL created for Request step 8 of Create a Logic App.
- Enter the URL copied from the Request.
- Open the CRM and check the contact is created.
That is it . You got your Logic App as callable endpoints.