dynamics crm - MSD CRM: Get the count of records of all entities in CRM -


i working on record count of every entity available in crm. have seen many solutions available on internet have searched in database(as have on-prem) , found 1 table called 'recordcountsnapshot' has count(and answer question). wondering can query table somehow , count.

i have tried using odata query builder, able prepare query unable result.

query:

enter image description here

result:

enter image description here

we using crm 2015 on-prem version.

go settings -> customizations -> developer resources -> service endpoints -> organization data service

open clicking /xrmservices/2011/organizationdata.svc/, missing definition recordcountsnapshot. means entity not serviceable odata. if modify other odata query url use recordcountsnapshotset 'not found' error. (i tried in crm rest builder)

1) in onpremise, can use query:

select top 1000 [count] ,[recordcountsnapshotid] ,entityview.objecttypecode, name [yourcrm_mscrm].[dbo].[recordcountsnapshot] , entityview  entityview.objecttypecode = recordcountsnapshot.objecttypecode , count > 0 order count desc 

2) in odata query designer, have statistics tab. use records count.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -