Sample code to retrieve more than 5000 records using FetchXML in CRM
Sample code to retrieve more than 5000 records using FetchXML in CRM
Hi,
Sharing a sample code to retrieve more than 5000 records using the Fetch XML.
private List GetTotalRecordsfromFetch(string fetchXML, IOrganizationService orgService) { List lstEntity = new List(); int fetchCount = 5000; int pageNumber = 1; string pagingCookie = null; while (true) { // Build fetchXml string with the placeholders. string xml = this.CreateXml(fetchXML, pagingCookie, pageNumber,…
View On WordPress












