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 Pages / Retrieve fetchxml resu...
Power Pages
Unanswered

Retrieve fetchxml results on demand

(0) ShareShare
ReportReport
Posted on by 60

I'm using fetchxml and liquid code to display a list of records in a table. (Unable to use an entity list as there are multiple N:N relationships present, that make it hard to filter records). Currently, the fetchxml query returns over 5k records which can cause performance issues. Is there a way to fetch only a selected number of records at once and then retrieving more on pagination click event? 

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Hi, we can use top in FetchXML that allows you to retrieve less than 5k records, this is done at the top of the fetch:

    <fetch top="10">

     

    The FetchXML also contains a limitation from the RetrieveMultiple message, which will only retrieve 5,000 records. I don't think we can bring more results than that in Portals (haven't done it myself)

    I would recommend trying to filter this list to less than 5k records, a tip for paging here would actually keep using entity list so in Liquid you can leverage from the paging feature, and any complex relationship you can query via Liquid while looping your entity list results - not sure about performance though

    https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/render-entity-list-current-page


    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • H V Profile Picture
    1,510 on at

    Hi @TheIntern 

    Below blog might be help you to retrieve few records:

    https://colinvermander.com/2018/06/26/dynamics-365-portal-use-liquid-fetchxml-with-paging-cookie/

    --------------------------
    If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people!

  • AndKanPA Profile Picture
    214 on at

    top="10" doesn't work for me.

    You can use count="50" to limit your result set
    (Thanks to Nicholas)

     

     

    Greetings,
    AndKan.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 33 Super User 2026 Season 1

#2
sannavajjala87 Profile Picture

sannavajjala87 32 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 27

Last 30 days Overall leaderboard