August 2017
Beginner to intermediate
480 pages
11h 7m
English
OData lets you interact with data by using RESTful web services. Adding using ODataUtility.Microsoft.Dynamics.DataEntities enables you to get access to Dynamics 365 data entities in C# code. Now, in the createVendor method, assign values to all respective fields in the data entity. Make sure all related masters, such as VendorGroupId and vendorPartyType already exist in the Dynamics 365 database.
Finally, in the main method, get an authentication header using:
var authenticationHeader = OAuthHelper.GetAuthenticationHeader()
And, on successful authentication, call the createVendor method to insert the vendor record in the respective tables in the Dynamics 365 datasource. Finally, call Console.ReadLine(); to see the result ...
Read now
Unlock full access