Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to get data from a custom Entity

Posted on by 60

I want to make a curl request to my ms dynamics instance and get the data out of a custom object. I am able to get the data out of accounts and knowledge articles. But, I am having trouble getting data out of my custom object. 

My custom entity name is "new_customobject" and I'm using the API endpoint "https://{organization_name}.crm8.dynamics.com/api/data/v9.0/new_customobject" to get the data. But, I am getting the error:

{"error":{"code":"0x8006088a","message":"Resource not found for the segment 'new_customobject'."}}


I used the same endpoint for accounts, but I got the data which is "https://{organization_name}.crm8.dynamics.com/api/data/v9.0/accounts?$select=name&$top=4".

This endpoint is working perfectly for accounts and knowledge articles. Do I have to change the API endpoint in the case of custom entities in order to retrieve data out of them?
  • restassured Profile Picture
    restassured 60 on at
    RE: How to get data from a custom Entity

    Hi, Christian! Thanks for the reply! Yes, it is working as expected!

  • Verified answer
    Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: How to get data from a custom Entity

    you can use my tool Dataverse REST Builder to generate the requests.

    As you are using curl, you can look at the generated url in one of the syntaxes, or you can export to Postman and see inside Postman the url and the headers/body.

    hope it helps

  • Verified answer
    C. Jensen Profile Picture
    C. Jensen 384 on at
    RE: How to get data from a custom Entity

    Hi

    You need to use the objects collection name, when making the request.

    It will probably be "https://{organization_name}.crm8.dynamics.com/api/data/v9.0/new_customobjects"

    Best regards

    Christian

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans