cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yukonn
Advocate III
Advocate III

Custom API and Pagination

Hi Team,

 

I would like to know how you guy handle the Pagination for custom api. I have 90K+ item list and it cannot load into to gallary. I got connection time out error. I don't want to use "Next" or "Previous" because we are developing Mobile app not web page. I want to load 100 item into gallery and then load next 100 item when user scroll the gallery. How can we do that with custom api?

 

Regards,

1 ACCEPTED SOLUTION

Accepted Solutions
WillPage
Impactful Individual
Impactful Individual

If you're interested, it works (up to 5000 items only though, so maybe not useful for 90k records).

 


@WillPage wrote:

I too have this question, which brought me here.

 

I think a workaround would be to load the result of the query from the API into a variable using the PowerApps for Flow trigger and action (to return the result), because in Flow, you can automatically follow the pagination links in the response and add them to the record, as per this thraed: https://powerusers.microsoft.com/t5/Connecting-To-Data/Example-of-Paging-with-Skip-and-SkipToken-in-... . You would then use your varible in the Items property of the gallery. I'm going to try it now and follow up on this thread if it works.


 

View solution in original post

2 REPLIES 2
WillPage
Impactful Individual
Impactful Individual

I too have this question, which brought me here.

 

I think a workaround would be to load the result of the query from the API into a variable using the PowerApps for Flow trigger and action (to return the result), because in Flow, you can automatically follow the pagination links in the response and add them to the record, as per this thraed: https://powerusers.microsoft.com/t5/Connecting-To-Data/Example-of-Paging-with-Skip-and-SkipToken-in-... . You would then use your varible in the Items property of the gallery. I'm going to try it now and follow up on this thread if it works.

WillPage
Impactful Individual
Impactful Individual

If you're interested, it works (up to 5000 items only though, so maybe not useful for 90k records).

 


@WillPage wrote:

I too have this question, which brought me here.

 

I think a workaround would be to load the result of the query from the API into a variable using the PowerApps for Flow trigger and action (to return the result), because in Flow, you can automatically follow the pagination links in the response and add them to the record, as per this thraed: https://powerusers.microsoft.com/t5/Connecting-To-Data/Example-of-Paging-with-Skip-and-SkipToken-in-... . You would then use your varible in the Items property of the gallery. I'm going to try it now and follow up on this thread if it works.


 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (2,853)