Hi All,
I am working on Dynamics CRM project and in one requirement I am not able to find the solution. I have created plugin for RetrieveMultiple Message which fires on views which I have created for entity. But, somehow paging stopped working. I am taking records information from OutputParameters like
var retrievedResult = (EntityCollection)context.OutputParameters["BusinessEntityCollection"];
and query from
QueryExpression qe = (QueryExpression)context.InputParameters["Query"];
I am looping on retrievedResult and modifying field values and added in different collection - EntityRecords.
foreach (Entity entity in retrievedResult.Entities)
{
// My code
-
-
EntityRecords.Entities.Add(entity);
}
Total number of records currently showing 272 but when i loop retrievedResult it only gives me record count which i have set in CRM (from option->general tab = 100)
At the end I am binding my collection to context.OutputParameters["BusinessEntityCollection"] like
context.OutputParameters["BusinessEntityCollection"] = EntityRecords;
I want to implement paging and want to show all records with page size set by user.
Please guide to implement paging in this scenario.
Thank you.
*This post is locked for comments