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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Retrieve Multiple Bug
Power Apps
Unanswered

Retrieve Multiple Bug

(0) ShareShare
ReportReport
Posted on by 200

Hi,

 

I was using context.webapi.retreiveMultiple for retreiving records from CRM, but I am able to retrieve only 500 records the

nextlink attribute is coming as undefined for retrieveMultiple 


CroppedRetrieveMultipleIssue.png

I have the same question (0)
  • ScottDurow Profile Picture
    1,039 on at

    Can you post your code. I've tried doing this and I get the nextLink fine:

     

    this._context.webAPI.retrieveMultipleRecords("account", "?$select=name", 25).then(
    			function success(result) {
    				for (var i = 0; i < result.entities.length; i++) {
    					console.log(result.entities[i]);
    				}
    				console.log("Next page link: " + result.nextLink);
    				
    			},
    			function (error) {
    				console.log(error.message);
    				
    			}
    		);
  • Sheldon Copper Profile Picture
    200 on at

    Instead of odata query if we use fetchXml at that time nextlink property is coming undefined.Sorry didn't mentioned it before

  • ScottDurow Profile Picture
    1,039 on at

    Ah right - well for fetchXml queries there is no 'nextLink' - it is a paging cookie that comes back as the annotation '@microsoft.Dynamics.CRM.fetchxmlpagingcookie'

     

    So I don't think that this can be classified as a bug - rather we would need to request a feature to return the pagingcookie.

     

    The work around is to simply use the page and count attributes of fetchxml - rather than the paging-cookie attribute (allbeit not as efficient for large recordsets). If you absolutely needed the paging cookie you would need to hand-craft your request/response using an XMLHttpRequest

     

    Hope this helps

     

     

  • Hemant Gaur Profile Picture
    Microsoft Employee on at

    Thanks 


    @ScottDurow wrote:

    Ah right - well for fetchXml queries there is no 'nextLink' - it is a paging cookie that comes back as the annotation '@microsoft.Dynamics.CRM.fetchxmlpagingcookie'

     

    So I don't think that this can be classified as a bug - rather we would need to request a feature to return the pagingcookie.

     

    The work around is to simply use the page and count attributes of fetchxml - rather than the paging-cookie attribute (allbeit not as efficient for large recordsets). If you absolutely needed the paging cookie you would need to hand-craft your request/response using an XMLHttpRequest

     

    Hope this helps

     

     


    Thanks for the analysis @ScottDurow . You are awesome. 

    hemant

     

     

  • Sheldon Copper Profile Picture
    200 on at

    Thanks 🙂

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard