Skip to Content
Implementing Microsoft Dynamics 365 for Finance and Operations
book

Implementing Microsoft Dynamics 365 for Finance and Operations

by Rahul Mohta, Yogesh Kasat, JJ Yadav
September 2017
Beginner to intermediate
562 pages
13h 46m
English
Packt Publishing
Content preview from Implementing Microsoft Dynamics 365 for Finance and Operations

Authentication and OData service call

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 ...
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.
Start your free trial

You might also like

Implementing Microsoft Dynamics 365 for Finance and Operations Apps - Second Edition

Implementing Microsoft Dynamics 365 for Finance and Operations Apps - Second Edition

JJ Yadav, Sandeep Shukla, Rahul Mohta, Yogesh Kasat

Publisher Resources

ISBN: 9781787283336Supplemental Content