OData in Dynamics 365 Finance and Operations
Introduction
This article aims to explore OData quickly and easily, providing a clear and detailed view of how this technology works and the accessibility of data in enterprise applications.
OData Protocol
OData (Open Data Protocol) is a standard created by Microsoft that allows the creation and consumption of data services in a RESTful manner. It provides a uniform way to interact with data, facilitating operations such as queries, filtering, sorting, inserts or modifications through HTTP requests.
Entities
To integrate OData with D365Fo, you need to configure or validate that the data entities needed for the integration.
Data entities in D365FO must have the IsPublic property set to "yes". These entities represent sets of data that can be accessed and manipulated using the OData protocol.
Authentication and Authorization
Integration with OData requires robust authentication and authorization mechanisms
To do this we just have to create an app registration
I won't explain how to get the token in this article, but now we've all needed to get it.
Construction of HTTP Requests
OData requests are made over HTTP, using standard methods such as GET, POST, PUT, and DELETE. Understanding how to construct these requests
Recommended by LinkedIn
We will use each one at different times and we will need to adapt it according to our request.
Query Formatting
https://base-url/data/CustomersV3?cross-company=true&$filter=CustomerAccount eq '00001' and dataAreaId eq 'AAA'&$count=true&$select=CustomerAccount,LanguageId
Use case OData example:
A typical example of integration might involve creating an application that pulls customers data
External refecences:
Odata query options with D365FO Credit to: Anitha Eswaran
I hope these key concepts have been helpful to you.
Lead Digital Engineer at Sonata Software
10moGreat explanation. Thanks a ton
Microsoft Dynamics 365 F&O | Commerce| Retail Consultant| MPOS| CSU| TypeScript | Store Commerce | CPOS | Technical Consultant/ POS Developer/ Freelancer.
10moVery informative, Thanks for sharing
Manager
10moThanks for sharing
D365 F&O ERP Senior Technical Consultant at Crowe | Power Apps | Integration | AI | Dynamics 365 CRM | Copilot
10moInsightful!