Create an Azure Logic App that serves as inbound web service for D365 F&SCM. 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 F&SCM.
Steps
In Microsoft Azure, Logic Apps, create a logic app and call it "PostToD365".
As a template, select 'Blank Logic App'.
Choose the trigger and fill in the trigger fields. For example, you can use the OneDrive for Business trigger: "When a file is created".
Add a new step to the workflow to post a file to D365 F&SCM. To do so, select the HTTP action.
Fill in the HTTP action parameters (see Settings).
Settings
The HTTP action 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 F&SCM 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: [Your tenant]
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)