How to do it...

To consume a Dynamics 365 for Operations service using JSON, follow these steps:

  1. First, 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 exposed. The file will contain our service in the following format:
{"ServiceGroups":[{"Name":"ConWHSServices"},{"Name":"CuesServiceGroup"} 

Now, open the following URL on Internet Explorer:

https://usnconeboxax1aos.cloud.onebox.dynamics.com/api/services/ConWHSServices

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

Get Extending Microsoft Dynamics 365 for Operations Cookbook 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.