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 Platform Community / Forums / Power Apps / Power Apps not complet...
Power Apps
Unanswered

Power Apps not completing Refresh() function before moving on.

(0) ShareShare
ReportReport
Posted on by 375

Hi all,

 

I have a gallery that creates a collection of data when an item is selected. I have a button that refreshes the data source (Dataverse) and then Select() the gallery to run the OnSelect code and regenerate the collection.

However, when I press the button it does refresh the data source and it does run the OnSelect code, but it seems to run the code before it has completed the refresh, as the collection still contains the old data, If I then select the item again it shows the new data in the collection.

 

I believe I could work around this by just using a time to create a small delay between the refresh and the select but would prefer not to intentionally make my app slower.

Does anyone have any ideas on this?

 

Thanks.

Categories:
  • BradonK Profile Picture
    375 on at

    Does anyone have an answer for this?

     

    I have managed to work around it with a timer as a delay before running the code, but it's hardly a good work around.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard