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