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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Unauthorized 401 error when connecting to Dynamics CRM 365 OData using Postman

(0) ShareShare
ReportReport
Posted on by

I Have a trial license for Dynamics 365 CRM online. I can connect from office 365 to the url of the Crm service in IE Explorer as:

        myorg.crm4.dynamics.com
The url is like this
Also I can access Odata as:

         myorg.crm4.dynamics.com/.../accounts

I try to connect to the Odata service using Postman.I created an application in azure with permissions to CRM as described here
I get an access_token, so this insure that the resource is valid.
I tried to do GET request to the resource using this valid access_token but postman respond with 401 Unauthorized
I read tens of pages but it can't help. I suspect (but not sure) that Odata service may not available in the trial version for developers.

The Question:
What I missed to run that example and connect to OData service?
Why I get the error Unauthorized 401 although i pass a valid access_token generated for the service myorg.crm4.dynamics.com

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Once you generated the token, are you clicking on the button that says use the token?

    Also  make sure the request header has the token added?

  • Community Member Profile Picture
    on at

    Yes, I did, click the button that says use the token.

    even I try in the browser to call it using the generated accesss_token as : https://myorg....?access_token=<my-generated-access-token-here>

  • Nishant Rana Profile Picture
    11,325 Microsoft Employee on at

    This might help

    nishantrana.me/.../

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

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans