Skip to main content

Notifications

Announcements

No record found.

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

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

(0) ShareShare
ReportReport
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,278 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,278 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

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

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans