
Hi,
I've been trying to utilize the MoreRecords property to handle paging of a large recordsets via Dynamics REST API with FetchXML:
Reference: docs.microsoft.com/.../page-large-result-sets-with-fetchxml
If I set count=1 (ie only one record per page) in my Fetch XML:
//ROOT.dynamics.com//api/data/v9.0/contacts?fetchXml=<fetch page="1" count="1" version="1.0" output-format="xml-platform" mapping="logical" distinct="false" no-lock="true" paging-cookie="...">...</fetch>
If I have 10 pages of results, what I am finding is that this MoreRecords property always seems to have a value of False/0.
However, based on what I understand, MoreRecords should be True until page 10 if I have 10 pages of results, 1 result per page.
Am I using this MoreRecords property correctly?
*This post is locked for comments
I have the same question (0)Found the issue. Seems like count attribute in FetchXML was being overridden by odata.maxpagesize preference value. After adjusting this, MoreRecords value is now returning the correct value.