Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / CRUD operation in ODATA
Finance forum
Suggested answer

CRUD operation in ODATA

Posted on by 5,875
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!
Categories:
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 2,982 on at
    CRUD operation in ODATA
    Hi,

    Is your issue resolved? If yes, mark the answers that helped you as verified.


    Thanks
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
  • Martin Dráb Profile Picture
    Martin Dráb 224,463 Super User on at
    CRUD operation in ODATA
    The topic of this thread is CRUD operation in ODATA. If you want to talk about custom services instead of OData, please create a new thread (with an appropriate title).
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 2,982 on at
    CRUD operation in ODATA
    Hi,
     
    Check the following link it maybe helps you:
     
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
  • @rp@n Profile Picture
    @rp@n 5,875 on at
    CRUD operation in ODATA
    Hi Anthony & Waed, kindly elaborate me please
     
    Kindly let me know how will i consume service through Logic Apps and How will i use CRUD operartion using Logic Apps.
     
  • Martin Dráb Profile Picture
    Martin Dráb 224,463 Super User on at
    CRUD operation in ODATA
    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.
  • @rp@n Profile Picture
    @rp@n 5,875 on at
    CRUD operation in ODATA
    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
  • Anthony Blake Profile Picture
    Anthony Blake 931 on at
    CRUD operation in ODATA
    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.
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 2,982 on at
    CRUD operation in ODATA
    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
     
     
  • @rp@n Profile Picture
    @rp@n 5,875 on at
    CRUD operation in ODATA
    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?
  • @rp@n Profile Picture
    @rp@n 5,875 on at
    CRUD operation in ODATA
    Thanks Anthony

Helpful resources

Quick Links

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,623 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 224,463 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans