Custom services to run web services

Prev Next

D365 F&SCM supports custom services. With a custom service, you can call application logic in D365 F&SCM from outside D365 F&SCM.
For Connectivity Studio, a custom service is available for web services: 'BisWsServiceCall' (in service group 'BisWsWebserviceOperation').
This custom service has these service operations:

Operation

Description

executeOperation

Runs an inbound web service.

executeOperationV2

The same as 'executeOperation, but with the additional argument 'companyId'.

Ping

Tests the connection.

For these service operations, the arguments are:  

Argument

Description

ProjectId

The identification of the project in Connectivity Studio.

WebServiceId

The identification of the web service in Connectivity Studio.

HttpMethod

The applicable HTTP action. The HTTP action can be Get, Post, Create, Delete, Put, or Post or put.

UserName

The name of the external web service user as defined in Connectivity Studio.

Url

The URL of the web service action is used to find the applicable argument values, if arguments are used.

Content

The body content if the HTTP action is not Get.

companyId

The applicable company ID in the D365 F&SCM environment.

Note

This argument only applies to the 'executeOperationV2' operation. For the 'executeOperation' operation, the default company of the D365 F&SCM user is used.

To call the webservice from outside D365 F&SCM, use a URL like:

https://Instancename.cloudax.dynamics.com/api/services/BiswsWebserviceOperation/bisWsWebserviceCall/executeOperationV2  ('Instancename' = Your D365 F&SCM instance identification)

Make sure to call the custom service operation with the arguments. So, the call must include the value for each of the used arguments.  For more information on custom services, refer to: