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.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,325)