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 is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (17,538)