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 / Gallery: refresh one o...
Power Apps
Unanswered

Gallery: refresh one or few records only ?

(0) ShareShare
ReportReport
Posted on by 85

Within a gallery, the only refresh function is Refresh(datasource).


This seems a waste of resources, when there is only one or few records that I'd like to refresh. 

 

If my gallery is filtered to show only 5 records, and I use the Refresh(datasource) function, is the function going to refresh only the gallery displayed 5 records? Or it's going to refresh the entire datasource?

 

Any more efficient solution?

 

(I found this older post, but there were no answers with a solution.)

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @FLOWPA 
    Is there a particular reason you are refreshing the data source??

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    It will definitely refresh the entire data source each time you call that function.  But as @RandyHayes said is there a specific reason you are refreshing the data source?

  • FLOWPA Profile Picture
    85 on at

    @RandyHayes wrote:

    @FLOWPA 
    Is there a particular reason you are refreshing the data source??



    @RandyHayes @Pstork1 

    In this case, the data source is a Google spreadsheet.

    www.contoso.com > Google spreadsheet > PowerApps app

    We have a website (external to PowerApps) that submits data into the spreadsheet. When a new row is added into the spreadsheet, PowerApps doesn't seem to be aware of the new row of data, that's when we refresh the app. Refreshing the whole data source, for 1 or few new appended rows doesn't seem efficient. 

    I keep reading about users experiencing gallery performance issues. Refreshing the whole data source could be part of the problem. I don't have performance issues, because I make sure the gallery is built efficiently with filters and formulas. 

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    In your case there is no alternative other than refreshing the entire dataset.  Making sure you are using appropriate filters with delegable functions to retrieve the minimum required records will help.  But you will have to refresh the whole data source.  It has no way to know which records have been added and which are old other than comparing what it already has in memory.  That comparison would be more time consuming than refreshing the full data source.

  • MikeyMole Profile Picture
    74 on at

    Hi I also have this exact same want - I use Stored Procs a lot to change the datasources and refresh is overkill.

     

    I have posted an idea on this point so maybe upvote if you want it to get noticed 🙂

     

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Targeted-Refresh-Function/idi-p/1531560

     

     

  • srx_nstratton Profile Picture
    76 on at

    I have a plugin that synchronously refreshes similar rows in my dataset. Be nice to only update the relevant rows.

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
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard