web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

FetchXML @Microsoft.Dynamics.CRM.morerecords

(0) ShareShare
ReportReport
Posted on by

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)
  • Suggested answer
    Community Member Profile Picture
    on at

    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.  

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/webapi/query-data-web-api#bkmk_specifyNumber

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans