cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

How to auto refresh a gallery

Hi all, I'm building up an app for my local volunteer fire brigade, we have created an app so members can indicate if they are turning out to an incident.  The issue we have is that we need the gallerying displaying the sharepoint list to either refresh everytime a new item is added, or auto matically refresh every minute or so.  Whilst crew are getting ready they need to see if additional members are on their way or not, tapping a refresh button isn't terribly pratical for them.

 

Any throughts on how to achieve this?

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

If the app is always open and you want to automatically refresh you can use Timer.

 

Just setup timer and set that it refreshes every 1 minute and after time ends call Refresh(DataSource)

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

If the app is always open and you want to automatically refresh you can use Timer.

 

Just setup timer and set that it refreshes every 1 minute and after time ends call Refresh(DataSource)

View solution in original post

Kudo Kingpin
Kudo Kingpin

@AllenCampbell

How has this worked out for you? I'm building something similar and I'm somewhat worried about a theoretical limit on the number of data requests maxing out.

Hey @PhilD,

 

 

Currently there is no information about requests timing out.

And I guess you only refresh your (new) data, so technically it isn't a data request, I think.

 

 

Kind regards

 

 

Tom



If this reply has answered your question or solved your issue, please mark this question as answered.

Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

Thanks Tom

 

When I mentioned "maxing out" I should have been more clear. I was referring to the overall number of requests, not the time to complete an individual request. My concern is with an app that creates many requests by refreshing on a regular interval. I seem to remember seeing something about the total number of requests having some sort of limit but I can't find any hard documentation. On this thread, I specifically asked about this but there doesn't seem to be a lot of information out there  but maybe that's because there is no limit, not sure. 

 

If the app refreshes each minute, and there are an average of 30 users at any given time, there could be over 43K refreshes daily. If each data source is counted separately, than twice that amount. Currently also looking into making sure my lookups are not causing excessive requests that could be done via a collection...

 

I have things working really well I just don't want to get blindsided by some obscure limit after doing a big roll out as it is fairly mission critical in nature and having the project fail due to a hard limitation like this would be a very bad outcome. 

 

 

Anonymous
Not applicable

Hi @PhilD , how did your resolve this ambiguity in your project? I have a similar issue and can't find much info on how best to scale a timed refresh on my app.... My numbers of users are about half as yours, I'm continuing with the assumption it'll be fine until I can properly load test it.

 

Cheers

Continued Contributor
Continued Contributor

@Anonymous How did it go? I'm looking at doing the same thing in an app I'm building but I'm wondering how it will turn out before I push this to a bunch of people.

We have had some other issues, many of them related to mobile devices in areas with intermittent WiFi, but I have not run into any o the theoretical limits that I was concerned about in my previous post.

 

At the largest of the three facilities, as of today the series of apps have processed over 235K tasks (around 8K a month) and 1.1 Million task events, all stored in SharePoint lists. 

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (7,028)