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?
Are you refer this video: https://youtu.be/wF0MmiaGO_o?t=1208
Hi @Rajkumar_404 ,
I have added a "Reload" button and with the button onSelect function, still does not work.
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.
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.
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.
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473