Tuesday, June 28, 2022

D365 FO Create Custom Web Service

 How to create basic custom Web Service in D365FO.

1- Create a class with name of IntegrationService  and write a method Test.


2  Add new Service and associate your class.



 

3- Add method of your class in service operations node you want to expose.



4- Add Service group and associate your service with the service group. 


A - Set the service property Auto deploy= YES


B- Add service to Service Group



5- Perform Build & Sync and verify from browser.

Service URL 
https://usnconeboxax1aos.cloud.onebox.dynamics.com/api/services/[ServiceGroupName]/[ServiceName]/[MethodName]

Sample
https://usnconeboxax1aos.cloud.onebox.dynamics.com/api/services/IntegrationServiceGroup/IntegrationService/Test



No comments:

Post a Comment