Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

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

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

  • AvaGrace Profile Picture
    AvaGrace 10 on at
    RE: Query data using the Web API - query data from Adaptive Planning (ERP) - got error 404

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

    yes I see the correct names used in API.

  • AvaGrace Profile Picture
    AvaGrace 10 on at
    RE: Query data using the Web API - query data from Adaptive Planning (ERP) - got error 404

    Thank you Guido for the information!!

  • Verified answer
    Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: Query data using the Web API - query data from Adaptive Planning (ERP) - got error 404

    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
    AvaGrace 10 on at
    RE: Query data using the Web API - query data from Adaptive Planning (ERP) - got error 404

    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

  • Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: Query data using the Web API - query data from Adaptive Planning (ERP) - got error 404

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

    hope it helps

  • Verified answer
    Sourav0147 Profile Picture
    Sourav0147 115 on at
    RE: Query data using the Web API - query data from Adaptive Planning (ERP) - got error 404

    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

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

Featured topics

Product updates

Dynamics 365 release plans