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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans