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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Need to get all the fields data for an single entity in web api

(0) ShareShare
ReportReport
Posted on by 8

Hi all,

In web api I need to get data of all fields for an single entity

how can we do that ??

Please suggest.

I have the same question (0)
  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 on at
    RE: Need to get all the fields data for an single entity in web api

    Hello,

    Please refer below API.

    1. If you need the fields and its properties then you can refer below API. In the below API replace account with your entity logical name for which you need information.

    GET [Organization URL]/api/data/v9.0/EntityDefinitions(LogicalName='account')?$select=LogicalName&$expand=Attributes($select=LogicalName)

    2. If you need entity data(All the records) then refer below API.

    GET [Organization URL]/api/data/v9.2/accounts

    3. If you need specific record information in specific entity then provide the GUID in 2nd API.

    GET [Organization URL]/api/data/v9.2/accounts(b4cea450-cb0c-ea11-a813-000d3a1b1223)

    4. if you need specific record information in specific entity(with limited fields) then provide the GUID in 3nd API as well as the logical name of the fields.

    GET [Organization URL]/api/data/v9.2/accounts(b4cea450-cb0c-ea11-a813-000d3a1b1223)?$select=websiteurl,name

    Thank you,

    Amit Katariya

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Need to get all the fields data for an single entity in web api

    Hi,

    To fetch all fields data use below API query

    GET [Organization URI]/api/data/v9.2/accounts

    You don't need to specify the select option to fetch all fields data.

    docs.microsoft.com/.../query-data-web-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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 128

#2
DAnny3211 Profile Picture

DAnny3211 126

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans