web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

CRUD operation in ODATA

(1) ShareShare
ReportReport
Posted on by 30
Hi Team,
 
Kindly let me know how we can use CRUD operation in ODATA.
 
I searched in Google but not get proper solution.
 
Kindly provide me an example.
 
Thanks in advance!
I have the same question (0)
  • Martin Dráb Profile Picture
    238,208 Most Valuable Professional on at
    Do you mean that you have no idea what OData is and you're looking for a simpler explanation that you can find on internet so far? Or do you have a more specific question that you haven't asked yet? Because OData is all about CRUD operations.

    Note that you can already find examples in OData documentation (e.g. Modifying data > Post data).
  • Suggested answer
    Anthony Blake Profile Picture
    2,977 Super User 2025 Season 2 on at
    Microsoft Learn - Official Documentation:
     
    Postman Workspace with Working Examples which you can use:
     
    Direct Postman workspace link:
     
    You will also need to setup authentication in Azure which will involve giving an App Registration certain permissions, then connect that to your user in D365.
     
    Authentication:
     
  • @rp@n Profile Picture
    30 on at
    Thanks Anthony for the reply.
     
    As I saw 
    • CRUD support is handled through HTTP verb support for POST, PATCH, PUT, and DELETE.

    • GET -- requests should only retrieve data.

    • POST -- Sends data to a server to create or update a resource

    • PUT -- Replaces all current representations of the target resource with the uploaded content. It’s used to update existing resources.

    • DELETE -- To delete specific data.

    I have referred below link for CRUD operation--

    Delete a customer in D365FO using Postman (dynamics.com)

    In the same way it is worked for others operation as well.

    Am I correct? 

     

  • Anthony Blake Profile Picture
    2,977 Super User 2025 Season 2 on at
    Correct, and in Dynamics 365 Finance, these operations are done via Data Entities, which are what define the fields in the interface. In the postman project, take a look at /data and /metadata, the results of those give you loads of information about the out of the box options.
  • @rp@n Profile Picture
    30 on at
    Thanks Anthony
  • @rp@n Profile Picture
    30 on at
    Hi Anthony, Only one thing about Odata
     
    When we worked with Odata, two things always should be there
     
    1. Postman tool or other tools (I don't have idea about other tools, If exist) is mandatory to perform CRUD operation  
     
    2. Data entities.

    *** Received DATA from Third party application to consume in D365FO --
     
    For example -- If suppose, we have received the data through JSON format from customer to create a Sales Order Header and Line in D365F&O
     
    Then first we need to create a Service class , Contract class for Header & Line and Service group.
     
    So, whenever we call POST the API through Postman and click in Send button then based on JSON format in the postman body. It will call the Service class & contract class as well. and will get the message in Postman. If the status is 200 OK that means based on Service class & contract class , it will create a new sales order header & Footer in D365FO based on the JSON format.

    *** Send the DATA from D365FO to Third party application

    We need to send the REST based API to the customer. So, that customer will consume it and get the data from D365FO.
     
    am I correct?
  • Suggested answer
    Waed Ayyad Profile Picture
    9,047 Super User 2025 Season 2 on at
    Hi,
     
    You can check the below links; it maybe helps you:
     
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
     
  • Anthony Blake Profile Picture
    2,977 Super User 2025 Season 2 on at
    You don't necessarily need postman - its a testing tool with resources to prove your concepts, I would suggest getting it setup and investigating what is possible.
     
    You sound like you are jumping straight into making custom D365 Data Entities and/or services without checking on the capabilities of the standard product. Unless you know you need to so that, firstly fire up postman and see what is possible!
     
    For receiving data from a 3rd party, you can use direct calls, logic apps, Azure functions, or even APIM as external tools to transform to the format you need.
  • @rp@n Profile Picture
    30 on at
    Thanks Anthony & Waed,
     
    Kindly let me know how will i consume service through Logic Apps and How will i use CRUD operartion using Logic Apps.
     
    Kindly provide me an example please.
     
    Thanks in advance
  • Martin Dráb Profile Picture
    238,208 Most Valuable Professional on at
    Things like contracts and service groups are used for custom services; they have nothing to do with OData.
     
    For general OData in Logic Apps, you can use the HTTP connector. But for F&O OData, a better approach is using either the F&O connector or exposing entities as virtual entities in Dataverse and using the Dataverse connector. That mean that you won't interact with OData directly; it's just a technical detail under the hood. Therefore it's not the right thing for you if you want to learn about the OData protocol.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 763 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 413 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 284 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans