How to do it...

To consume an F&O service using JSON, follow these steps:

  1. Let's take a look at what JSON looks like. This will help the recipe make more sense as we progress. Open the following URL using Internet Explorer: https://usnconeboxax1aos.cloud.onebox.dynamics.com/api/services/.
  1. This will ask you to open services.json. Click on Open, which opens a file in Visual Studio that contains all the services that were exposed. The file will contain our service in the following format:
{"ServiceGroups":[ ... {"Name":"ConVMSServices"},{"Name":"CuesServiceGroup"}, etc. 

Now, open the following URL in Internet Explorer: https://usnconeboxax1aos.cloud.onebox.dynamics.com/api/services/ConVMSServices.

  1. This time, the JSON file is called CONWHSServices.json ...

Get Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.