Skip to Content
Implementing Microsoft Dynamics 365 for Finance and Operations Apps - Second Edition
book

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

by JJ Yadav, Sandeep Shukla, Rahul Mohta, Yogesh Kasat
March 2020
Intermediate to advanced
528 pages
13h 18m
English
Packt Publishing
Content preview from Implementing Microsoft Dynamics 365 for Finance and Operations Apps - Second Edition

Authentication and OData service call

Once the required packages have been added to your project and the entity proxy has been generated, the next step is to implement the code to authenticate and consume OData entities. An OData Service call will need an authorization token passed as a header on the service request. You can implement this as follows:

  1. Using the ADAL library, retrieve the authentication token from the Azure Active directory.
  2. Using generated proxy classes, you can instantiate the data entity objects, set properties, and call methods to interact with the OData endpoint.

The Dynamics 365 for Finance and Operations product team has developed sophisticated examples of consuming OData services in C#, which are available on GitHub ...

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

Implementing Microsoft Dynamics 365 for Finance and Operations

Rahul Mohta, Yogesh Kasat, JJ Yadav

Publisher Resources

ISBN: 9781789950847Supplemental Content