Instead of an Azure App service, you can use other applications to run an inbound web service in the cloud. An often-used alternative is an Azure Logic App.

This topic explains globally how to set up the web service using Azure Logic App. For more information on Azure Logic Apps, refer to Azure Logic Apps documentation.


Application Consultant Application Consultant Start Start Import Logic App tutorial Import Logic App tutorial If you want to run an inbound web service or outbound web service in the cloud using Azure logic Apps, first download and extract the Project Tutorial - Logic App.zip file. This file contains a project with an inbound web service action and an outbound web service action. Procedure 1. Go to Connectivity studio > Periodic > Import configuration from file. 2. Click OK. Create an Azure Logic App as inbound web service Create an Azure Logic App as inbound web service Create an Azure Logic App that serves as inbound web service for D365 FO. For more information, refer to Azure Logic Apps documentation.You can, for example, create a logic app that picks up files when created in OneDrive and trigger the applicable web service action in D365 FO. Procedure 1. In Microsoft Azure, Logic Apps, create a logic app and call it "PostToD365". 2. As a template, select 'Blank Logic App'. 3. Choose the trigger and fill in the trigger fields. For example, you can use the OneDrive for Business trigger: "When a file is created". 4. Add a new step to the workflow to post a file to D365 FO. To do so, select the HTTP action. 5. Fill in the HTTP action parameters (see Notes). Notes The HTTP action of step 3, must have these settings: Method: POST URI: You can use one of these URLs: https://Instancename.cloudax.dynamics.com/api/services/BisWsWebserviceOperation/BisWsWebserviceCall/executeOperation. This is the basic URL. https://Instancename.cloudax.dynamics.com/api/services/BisWsWebserviceOperation/BisWsWebserviceCall/executeOperationV2. Use this URL if you want to run the web service for a specific company. The 'companyId' parameter in the body parameters is only applicable if you use this URL. Make sure the D365 FO user has permission to access the specified company. Headers: Key = content-type and Value = application/json Body parameters: { "_HttpMethod": 0, "_ProjectId": "Tutorial - Logic App", "_Url": "https://{instance}.cloudax.dynamics.com/biswebservice/SOAP/Post/Tutorial - Logic App/custgroupinbound, "_UserName": "domain/username", "_WebServiceId": "custgroupinbound", "_content": "@{json(triggerBody())}", "_companyId": "company ID", } Authentication: Add the Authentication parameter and fill in the related fields: Authentication type: Microsoft Entra ID OAuth Authority: https://login.windows.net/ Tenant: To-Increase.com Audience: https://{instance}.cloudax.dynamics.com Client ID: Enter the Application ID from the Microsoft Entra ID App registration (see Register Azure Logic App in Microsoft Entra ID) Credential Type: Secret Secret: From the Microsoft Entra ID App registration (see Register Azure Logic App in Microsoft Entra ID) Register Azure Logic App in Microsoft Entra ID Register Azure Logic App in Microsoft Entra ID To be able to fill in the Client ID and the Secret in the HTTP action settings of the Azure Logic App, register the Azure Logic App in Microsoft Entra ID. For more information, refer to: Register an app. Procedure 1. In Microsoft Entra ID, register the app with the same name as the created logic app. 2. When created, open the registered app. 3. Copy the Application (client) ID to the Client ID in the HTTP action authentication of the Azure Logic App. 4. Add a secret and copy this secret to Secret in the HTTP action authentication of the Azure Logic App. 5. Give the app permission to the Dynamics ERP API. Register Microsoft Entra ID application in D365 FO Register Microsoft Entra ID application in D365 FO To connect to D365 FO, you must register the Microsoft Entra ID application in D365 FO. Procedure 1. Go to System administration > Setup > Microsoft Entra ID applications. 2. Click New. 3. In the Client Id field, enter the 'Application (client) ID' of the Microsoft Entra ID app. 4. In the Name field, enter the 'Display name' of the Microsoft Entra ID app. 5. In the User ID field, enter or select a value. Note: Make sure, this user has sufficient rights. You can, for example, use a user with admin rights. 6. Close the page. Test inbound Azure Logic App Test inbound Azure Logic App Before you deploy the inbound Azure Logic App, test it. Procedure 1. Trigger the defined Logic App. For example, if your Logic App trigger is OneDrive, you can upload a test file to the applicable OneDrive folder. Use a test file of type JSON. 2. Check the test results in the runs history of the Azure Logic App. 3. Check the test results in the web service history in D365 FO. Notes For step 1, you can, for example, use a JSON file with this content:{"CustGroup":[{"CustGroup":"10","Name":"Wholesales customers"},{"CustGroup":"100","Name":"Intercompany retail customers"},{"CustGroup":"20","Name":"Major customers"},{"CustGroup":"30","Name":"Retail customers PDJ"},{"CustGroup":"40","Name":"Internet customers"},{"CustGroup":"80","Name":"Other customers"},{"CustGroup":"90","Name":"Intercompanycustomers"}]} End End

Activities

Name Responsible Description

Import Logic App tutorial

Application Consultant

If you want to run an inbound web service or outbound web service in the cloud using Azure logic Apps, first download and extract the Project Tutorial - Logic App.zip file. This file contains a project with an inbound web service action and an outbound web service action.

Create an Azure Logic App as inbound web service

Application Consultant

Create an Azure Logic App that serves as inbound web service for D365 FO. For more information, refer to Azure Logic Apps documentation.
You can, for example, create a logic app that picks up files when created in OneDrive and trigger the applicable web service action in D365 FO.

Register Azure Logic App in Microsoft Entra ID

Application Consultant

To be able to fill in the Client ID and the Secret in the HTTP action settings of the Azure Logic App, register the Azure Logic App in Microsoft Entra ID. For more information, refer to: Register an app.

Register Microsoft Entra ID application in D365 FO

Application Consultant

To connect to D365 FO, you must register the Microsoft Entra ID application in D365 FO.

Test inbound Azure Logic App

Application Consultant

Before you deploy the inbound Azure Logic App, test it.

Provide feedback