Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to use discovery service using HTTP request

(0) ShareShare
ReportReport
Posted on by

I see many examples using MS tools but none showing an example of a request and a response using simple HTTP request.  I have searched for several days now to no avail.

I have able to fight my way through the documentation and gotten OAuth to work.  Now having done so, I need to find out the org_url that I can do a GET request to get all the opportunities as in:

[org_uri]/api/data/v8.2/opportunities

Using my client_id and client_secret I have been able to get an access_token and refresh_token successfully.

How do I request from 

https://disco.crm.dynamics.com/

I
s it a GET or POST?  Can someone provide either the url parameters for the GET or the key/value pairs for the POST?

My azure portal id = jsimone@dealcoachpro.onmicrosoft.com

my app is registered with name=DealCoachPro

my client_id (application id) = 3b378a3d-a513-44ca-85e0-daace2c25145

I added permissions for Dyanmics CRM Online to the app

How do I determine my org_id so I can query the Dynamics CRM?

Thanks.

*This post is locked for comments

  • RE: How to use discovery service using HTTP request

    I am having the same problem.

  • RE: How to use discovery service using HTTP request

    When I try and request from

    globaldisco.crm.dynamics.com/.../Instances

    having a valid Authorization header with value "Bearer AQA......."

    I get this response back.

    {

     "error": {

       "code": "",

       "message": "Authorization has been denied for this request."

     }

    }

    What am I missing?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans