September 2017
Beginner to intermediate
562 pages
13h 46m
English
OData Service call will need an authorization token passed as a header on the service request. Using ADAL library, retrieve the authentication token from the Azure Active directory. Using generated proxy classes, you can instantiate the data entity objects, set properties, and call methods to interact with the OData endpoint. The following sample code shows how to build the OData endpoint context, attach the authentication header, create a new customer group, and then read and print customer groups on console:
using D365FO_ODataServiceClient.Microsoft.Dynamics.DataEntities;using Microsoft.IdentityModel.Clients.ActiveDirectory;using Microsoft.OData.Client;using System;using System.Linq;namespace D365FO_ODataServiceClient ...