Documentation Index

Fetch the complete documentation index at: https://docs.staedean.com/llms.txt

Use this file to discover all available pages before exploring further.

Create an Azure Logic App as inbound web service

Prev Next

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

  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 F&SCM. To do so, select the HTTP action.

  5. 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: