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.


 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

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

Top Solution Authors
Top Kudoed Authors
Users online (2,310)