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
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,417)