Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / How to Insert a new re...
Finance forum
Suggested answer

How to Insert a new record using OData in Dynamics 365 FO?

Posted on by 120

I am new to Dynamics 365 FO, I have been playing around with OData to get records from particular DataEntities. That works perfectly but so far I have failed to insert a new record using Odata. I received 403 error as show in the images 2 below (success with GET and error with POST). Any type of help is appreciated.

Content of error message

Sorry, the action that you are trying to take can't be completed at this time. Things to try:

  1. Try your request again.
  2. Return to the dashboard
  3. Contact your system administrator

Image1 : success with GET

OdataSuccess.png

 

Image 2: Error with POST

1200.ODataError.png

  • Hussain506 Profile Picture
    Hussain506 120 on at
    RE: How to Insert a new record using OData in Dynamics 365 FO?

    I am also consfused about 403, the user has Admin rights. Regarding the security I have followed steps as: first I downloaded the demo VM for D365 FO and it is running in on-premise. Using "AdminUserProvisioning" tool, I have assigned admistrative right to an Azure Active directory user. Once I try to access the link: usnconeboxax1aos.cloud.onebox.dynamics.com, I am redirected to Azure AD for authentication. So the OData request I am sending uses that cached authentication from Chrom Browser.

  • Mea_ Profile Picture
    Mea_ 60,274 on at
    RE: How to Insert a new record using OData in Dynamics 365 FO?

    But 403... And what kind of security do you have in FnO ?

  • Hussain506 Profile Picture
    Hussain506 120 on at
    RE: How to Insert a new record using OData in Dynamics 365 FO?

    Right now I don't have issues with credentials, I use "Restlet Client" which uses the login credentials from chrome. As you can see (image in the question) I don't have authorization problem, it's just I can't insert a new record using HTTP Post.

  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,274 on at
    RE: How to Insert a new record using OData in Dynamics 365 FO?

    You need to get token and pass it with your message. Here is docs article explaining how to use Postman and OData docs.microsoft.com/.../third-party-service-test

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,252 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,089 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans