Just sharing a sample code to get the total number of records (e.g. account here)
IOrganizationService orgService = GetOrganizationService();
int totalCount = 0;
QueryExpression query = new QueryExpression("account");
query.ColumnSet = new ColumnSet();
query.Distinct = true;
query.PageInfo = new PagingInfo();
query.PageInfo.Count = 5000;
query.PageInfo.PageNumber = 1;
query.PageInfo.ReturnTotalRecordCount = true;
EntityCollection entityCollection = orgService.RetrieveMultiple(query);
totalCount = entityCollection.Entities.Count;
query.PageInfo.PageNumber += 1;
query.PageInfo.PagingCookie = entityCollection.PagingCookie;
entityCollection = orgService.RetrieveMultiple(query);
totalCount = totalCount + entityCollection.Entities.Count;
Hope it helps
Hi we were getting the below error while trying to open any record in CRM 2015
Turned out that by mistake one wrong extra step had got registered on RetrieveMultiple
[c824b80a-d392-e511-8114-3863bb356f90: ActivityFeeds.Plugins.ActivityClose: RetrieveMultiple of any Entity]
Removing this step fixed the issue.
Hope it helps.
Got the below error while trying to install the Report Authoring Extension for CRM 2015.
To fix the issue, open the log file, check for the registry path and delete it
Hope it helps !
We were getting the Duplicate Column Heading Existing while trying to download template for data import for Opportunity Entity.
Through Customizations we changed the Display Name of the fields that were duplicate and it fixed the issue for us.
I had the same issue. In Settings> Customizations, display the Entities that causes the error. Sort the fields by display name and scroll through the list until you find two identical display names. Rename one, save and publish your changes. You should now be able to download the Import template.
Do check out this awesome article
Hope it helps ..