RetrieveTotalRecordCount function to get the total number of records in Dynamics 365
We can RetrieveTotalRecordCount Function we can get the total number of records for an entity (works for more than 50000 records) For e.g. https://[orgname].crm.dynamics.com/api/data/v9.1/RetrieveTotalRecordCount(EntityNames=[‘lead’,’contact’,’account’,’incident’])…

