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
@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."
Thanks @mdevaney
You've just helped me improve the app efficiency by 30% by removing the Refresh(datasource) 😃
@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."
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional