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 :
Customer experience | Sales, Customer Insights,...
Answered

Query data using the Web API - query data from Adaptive Planning (ERP) - got error 404

(0) ShareShare
ReportReport
Posted on by 10

Any help is greatly appreciated!!!

Testing the connection using following URL

"https://instanceName.api.crm3.dynamics.com/api/data/v9.2/account?$select=name&$top=1";

the table account DOES exist but return 404

Have I constructed the URL wrong? Do I need the instance reference ID in the URL?

First time query data from CRM.

Thanks,

Grace

I have the same question (0)
  • Verified answer
    Sourav0147 Profile Picture
    115 on at

    Hi 

    try below url.

    https://instanceName.api.crm3.dynamics.com/api/data/v9.2/accounts?$select=name&$top=1

    I have just added s in accounts i.e Plural Name. This should work.

    Also, if you are not sure about the entity name then call this url to check the name of the entity which is used in API

    https://instanceName.api.crm3.dynamics.com/api/data/v9.2

  • Guido Preite Profile Picture
    54,086 Moderator on at

    if you need assistance on building Web API queries you can use my tool Dataverse REST Builder

    hope it helps

  • AvaGrace Profile Picture
    10 on at

    Sourav,

    Thank you very much for your answer. It works. However it is kind of strange since I downloaded the OData Metadata file under Developer Resources. In the XML file the entity name is account. I did use accounts and I got the data in!!!  

    Please see the XML file here:  just wondering why

    <EntityType Name="account" BaseType="mscrm.crmbaseentity">

    <Key>

    <PropertyRef Name="accountid"/>

    </Key>

    <Property Name="address1_telephone2" Type="Edm.String" Unicode="false"/>

    <Property Name="altus_oecdcode" Type="Edm.String" Unicode="false"/>

    Grace

  • Verified answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    this is the Docs regarding the name to use:

    docs.microsoft.com/.../web-api-types-operations

    "This is the name of the entity set. This data is from the EntityMetadata EntityType/ EntitySetName property for the entity."

  • AvaGrace Profile Picture
    10 on at

    Thank you Guido for the information!!

  • AvaGrace Profile Picture
    10 on at

    Thanks again. I tried the link instanceName.api.crm3.dynamics.com/.../v9.2

    yes I see the correct names used in API.

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans