Dynamics 365 for Finance and Operations Development Cookbook - Fourth Edition
by Abhimanyu Singh, Deepak Agarwal
How it works...
Here, we use NewtonSoft.Json to use the JsonConvert class to serialize C# object in JSON. The more difficult part is to prepare a JSON string that can be understood by D365 to fetch parameters. We first start by creating an object for CustBalanceDataContract and set contract parameters such as CustomerAccount, Company, and so on. Finally, we have to create a root contract that we will serialize and pass a JSON string to our web service. This contract consists of dataContract and it is called context contract. Here, the HttpWebRequest.Create method creates an instance of the JSON endpoint URI that we provide, and then we need to get authentication from azure to access our Dynamics 365 for Finance and Operations ERP application. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access