web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Refresh a gallery

(0) ShareShare
ReportReport
Posted on by 1,168

Hi,

 

Have a Canvas Power App that has a Container that becomes visible off a tab. That container has a gallery that pulls data from a sharepoint list based on the id of the main screen.

 

Filter(Reminders,RefID = varQuoteDetail.ID)

 

There is also a flow that fires depending on some parameters that will then write new records to the above gallery/sharepoint list.

 

My question is what is the best and most economical approach to "refresh" the data inside the container?

 

I only need the new record that relates to the parent id. Would only be a couple of records at most.

 

Thank in advance

 

Todd

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Tango ,

     

    According to your description, you are using the "Filter(Reminders,RefID = varQuoteDetail.ID)" in your gallery to get the items . And your data source will make some data changes in the background.

    [1]If your flow doesn't trigger in Power Apps, then we can't get when your flow triggered in Power Apps, you can try using  Timer Control to get the latest data from the data source at regular intervals.

    You could create a Timer with the following properties to Refresh the collection every 2 mins.


    Autostart: true

    AtTimerEnd: ClearCollect(colCollection, Filter(Reminders,RefID = varQuoteDetail.ID))

    Duration: 120000

    Repeat: true

    Visible: flase

     

    And then you can put the "colCollection" in your [gallery-Items] property.

     

    [2]If your flow trigger in  Power Apps, you can add the Refresh() function after your trigger your flow.

    ClearCollect(colCollection, Filter(Reminders,RefID = varQuoteDetail.ID))

     

    You can add a delay after triggering the flow and refetching the data to prevent errors from occurring.

    vxiaochenmsft_0-1696991321757.png

     

    Best Regards,

    Wearsky

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard