Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Unanswered

When to do pagination in PowerApps portals webpage

(0) ShareShare
ReportReport
Posted on by 51

Hi all, 

 

I am working on a powerApps Portals webpage, for that I had created a page template and page template is consist of webTemplate.

In webTemplate, I had use fetchxml to retrieve data from CRM, all records are being shown in a nice way

Screenshot_210.png

all reteieved records are being shown, but I want to pagination in a sense, first show 10 records. when scroll down, at end of page, other 10 record appear and continue. 

 

How can I do this? Do I need to use pagination in fetchXML? or grab the all data do some other techniques to do such pagination. 
anybody please respond

  • oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on at
    Re: When to do pagination in PowerApps portals webpage

    Hi, if you use a List instead of FetchXML, you can use pagination in Liquid: Render the list associated with the current page - Power Apps | Microsoft Docs

     

  • IrfanMukhtiar Profile Picture
    51 on at
    Re: When to do pagination in PowerApps portals webpage

    Hi @ragavanrajan 

    I had implemented your recommended solution that was using page cookies. 

     

    first I write below lines and get the below error

    "morerecords": {{ contactimageurl.results.more_records }},
    "paging-cookie": "{{ contactimageurl.results.paging_cookie }}",
    "paging-cookie-encoded": "{{ contactimageurl.results.paging_cookie | escape | url_escape }}",
    "page": {{ request.params['page'] | default: 0 }},

     

    Error: these all lines appear on webpage as it is, I also used use brackets after "

    {% endfetchxml %}
     
    then I write fourlines as below
    Screenshot_217.png

    Now I am not receiving any error but I am not aware of how to get the second page when scroll at end of page? 

    can you please help me regarding this? 

    I had google it, there I find csharp code, there he was doing like page++, here we can increment into this 

    "page="{{ request.params['page'] | default:1"?????
    but I want to do increment in page scroll event, can I write page scroll event into web Template?

    Thanks
  • ragavanrajan Profile Picture
    7,036 Most Valuable Professional on at
    Re: When to do pagination in PowerApps portals webpage

    Hi @IrfanMukhtiar 

     

    You can create a plugin for this and apply the following code 

     

    https://docs.microsoft.com/en-us/powerapps/developer/data-platform/org-service/page-large-result-sets-with-fetchxml 

     

    Basically, "The paging cookie" is a performance feature that will allow you to retrieve large dataset. 

     

    On the other hand, we can try Lazy loading with JavaScript which is a client-side solution. But I haven't tried so far. 

     

    Hope it shed some light for you on where to start. 

     

    Hope it helps. 
    ------------

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

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35