Announcements
I have a screen that uses the gallery to display the files from Azure Blob Storage. The user allow to download the files from when they click the download button. I am setting up a refresh button for the user to manually refresh the gallery to check if there is new files created in the blob storage folder. However, I cannot use the Refresh() and ClearCollect() function.
I am using another script from another post to view the files in the gallery (https://powerusers.microsoft.com/t5/Building-Power-Apps/Get-list-of-all-blobs-by-folder-in-powerapp-using/m-p/2182888/highlight/true#M546590)
Is there anyone can help why the gallery is not being refresh when I click the refresh button?
Hi @henrychoiyw
The `Refresh()` function is used to refresh the data source, not the Gallery controls.
Instead of using `Refresh()`, use the `Reset()` function. For example, `Reset(Gallery1)` may help you achieve the desired outcome.
Thanks!
If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.
Hi @Rajkumar_404 ,
Thank you very much for your reply.
I tried the Reset() function. I can see the Reset has been done (the selected document - bold has moved back to the first item), but the list has not been update or reset. I have a list of 7 files in the blob storage and I manually deleted 1. But the list still show 7 files.
Refer to this video,
This may help you, Instead of using the OnVisible property of the screen, try using the OnSelect property of the button.
I have added a "Reload" button and with the button onSelect function, still does not work.
Are you refer this video: https://youtu.be/wF0MmiaGO_o?t=1208
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 220 Super User 2026 Season 2
WarrenBelz 189 Most Valuable Professional
Mohsin Ali 139