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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Access Dynamics CRM data via Rest Api

(0) ShareShare
ReportReport
Posted on by

Hi, I am a newbie to Dynamics CRM online using trial version. how can i access crm data with rest api from some rest client like

url: https://myurl/api/data/v8.2 ? I am not using Active Directory. Currently i am sending GET request with username and password in header, but response is HTTP Error 401 - Unauthorized: Access is denied.

I am pretty sure about some oauth token api, but how can i get token through rest api to consume it in getting rest of data.

Your earliest response will be highly appreciated.

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi,

    Please refer the community thread below. The issue you face is solved in the link below.

    community.dynamics.com/.../193506

    Also refer the link below.

    http://stackoverflow.com/questions/42393395/dynamics-crm-web-api-401-unauthorized-after-obtaining-oauth-token

    Hope this helps.

  • Community Member Profile Picture
    on at

    Hi, Thanks for your response. With reference to your first link community.dynamics.com/.../193506 Please tell me what is tenant id?

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi,

    The tenant id for your Office 365 tenant is displayed as part of the URL:

    manage.windowsazure.com/tenantname

    See: https://support.office.com/en-us/article/Find-your-Office-365-tenant-ID-6891b561-a52d-4ade-9f39-b492285e2c9b?ui=en-US&amp

  • Community Member Profile Picture
    on at

    Hi,

    i tried and got error attached

    {

     "error": "invalid_resource",

     "error_description": "AADSTS50001: The application named walnutsol.crm.dynamics.com was not found in the tenant named walnutsol.onmicrosoft.com.  This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant.  You might have sent your authentication request to the wrong tenant.\r\nTrace ID: b2734980-7c0e-41e2-9c47-2df239c20400\r\nCorrelation ID: 41aec0bc-efeb-49d6-8e28-db043893cdfe\r\nTimestamp: 2017-04-20 11:03:37Z",

     "error_codes": [

       50001

     ],

     "timestamp": "2017-04-20 11:03:37Z",

     "trace_id": "b2734980-7c0e-41e2-9c47-2df239c20400",

     "correlation_id": "41aec0bc-efeb-49d6-8e28-db043893cdfe"

    }1665.err.png

  • Suggested answer
    sandeepc Profile Picture
    5,514 on at

    msdn.microsoft.com/.../gg334767(v=crm.5).aspx

  • Community Member Profile Picture
    on at

    Hi @sandeep i have tried it and it responds with

    err_5F00_1.png

  • Gopalan Bhuvanesh Profile Picture
    11,401 on at

    Hi

    Please check the application

    walnutsol.crm.dynamics.com

    Are you using

    walnutsol.crm5.dynamics.com?

    Verify the number after .crm

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi,

    The thread below describes the solution for this issue. Go through the discussion.

    community.dynamics.com/.../212493

  • Suggested answer
    sandeepc Profile Picture
    5,514 on at

    com.PNGyour browser is blocking java script.. please make it allow for your browser. and check.  @usman

  • Community Member Profile Picture
    on at

    i have same settings as yours.

    js.png

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans