Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Do Data Sources in PowerApps auto refresh when fetching into a collection?

Like (0) ShareShare
ReportReport
Posted on 15 Apr 2020 12:31:23 by

Good day,

I'm working in PowerApps with my data source coming from SharePoint

The data is getting quite large, and for that I created a Collection to store the data for use in the application.

I do call a ClearCollect at certain intervals on the app when needing to fetch new data from the source

My question, do i need to do a "Refresh(datasource)" before the clear collect or will it automatically fetch the latest data?

Reason being, Refreshing data source consumes time and I would prefer to do without it

Unfortunately I use a sum which is critical for my app and HAVE to do it in a collection, too bad sum is not yet delegable in SharePoint

Thanks in advance

Luka

Categories:
  • Community Power Platform Member Profile Picture
    on 15 Apr 2020 at 12:42:13
    Re: Do Data Sources in PowerApps auto refresh when fetching into a collection?
    Actually, i noticed that galleries are automatically refreshing and always fetching the latest data, which made me switch my gallery from collection to a live data source, and use delegation for filtering (startswith, =, etc)
  • mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 15 Apr 2020 at 12:37:38
    Re: Do Data Sources in PowerApps auto refresh when fetching into a collection?

    @Anonymous 

    No problem at all: check my revised reponse above for an example where you would need to use REFRESH.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    on 15 Apr 2020 at 12:36:29
    Re: Do Data Sources in PowerApps auto refresh when fetching into a collection?

    Thanks @mdevaney 

    You've just helped me improve the app efficiency by 30% by removing the Refresh(datasource) 😃

  • Verified answer
    mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 15 Apr 2020 at 12:34:57
    Re: Do Data Sources in PowerApps auto refresh when fetching into a collection?

    @Anonymous 
    REFRESH is not required before collecting the data: the latest information will be stored in the collection.

     

    An example of when to use refresh is: your gallery is connected directly to a datasource and you want it to show the latest data.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard