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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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

  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    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

  • Hussain506 Profile Picture
    120 on at

    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.

  • Mea_ Profile Picture
    60,286 on at

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

  • Hussain506 Profile Picture
    120 on at

    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.

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 > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans