Announcements
This is a known SharePoint connector caching behaviour in Canvas Apps. Even though the Patch succeeds, the gallery holds onto stale data until the datasource is fully re-evaluated.First thing to try — add Reset(Gallery1) after your Refresh() call
try — add Reset(Gallery1) after your Refresh() call:
Reset(Gallery1)
Refresh()
Also, confirm your gallery Items property is pointing directly to EmployeeRequests and not to a filtered variable or old collection that isn't getting updated.
Items
EmployeeRequests
If the inconsistency continues, switching to a local collection is the most reliable approach with SharePoint as a datasource:
Patch( EmployeeRequests, LookUp(EmployeeRequests, ID = SelectedID), { Status: "Approved" } ); Refresh(EmployeeRequests); ClearCollect(colRequests, EmployeeRequests);
Then set your gallery Items to colRequests. The gallery now reads from memory instead of waiting on the SharePoint connector, so updates appear instantly every time.
colRequests
On your delegation question yes, SharePoint connector caching and delegation limits on large lists can contribute to this, especially if you have filters or sorts on the gallery. Using a collection sidesteps most of that.
Using a collection alone may not solve the issue because the collection also reloads data from the same SharePoint list. If SharePoint or Power Apps is still returning cached data immediately after Patch(), the collection can also contain old values.
Better approach is to update the gallery source locally after Patch.
Patch(EmployeeRequests, LookUp(EmployeeRequests, ID = SelectedID), { Status: "Approved" } ); Refresh(EmployeeRequests);
The issue is caused by Power Apps caching rather than SharePoint itself. Please try to login with different browser and try it.
Also, display the items in descending order in the Gallery so you can easily verify whether the latest data is being shown or not.
--------------------------------------------------------------------------------- 📩 Need more help? Just mention @Kalathiya and I’ll be happy to assist. ✔️ If this answer helped you, please tick “Does this answer your question?” so it can be marked as the Verified Answer. 💛 A Like always motivates me to keep contributing!
Hi,
This is usually caused by SharePoint caching/sync delay in Canvas Apps.
Recommended approach: • Use:
Patch(...); Refresh(EmployeeRequests); Reset(Gallery1)
• If using a form:
SubmitForm(EditForm1); Refresh(EmployeeRequests)
Best practices: • Collections can improve UI responsiveness for large lists • Avoid relying only on direct SharePoint refresh for instant UI updates • You can also update a local collection after Patch() for immediate gallery changes
Example:
Patch(...); Refresh(EmployeeRequests); ClearCollect(colRequests, EmployeeRequests)
Yes, SharePoint connector caching and delegation behavior can sometimes delay gallery updates briefly after Patch().
Patch() updates the SharePoint item correctly, but the Gallery may still show cached data for a short time.
Patch()
You can try this pattern:
Patch( EmployeeRequests, LookUp(EmployeeRequests, ID = SelectedID), { Status: "Approved" } ); Refresh(EmployeeRequests); Gallery1.Selected
Other suggestions: • Rebind the Gallery Items property if using filters/sorting • Use a local collection for better real-time UI updates • Large SharePoint lists can sometimes delay refresh synchronization
A common approach is:
Refresh(EmployeeRequests); ClearCollect(colRequests, EmployeeRequests)
Then bind the Gallery to colRequests instead of the SharePoint list directly.
If this helps resolve your issue, please consider marking the response as Verified so it can help others facing a similar scenario.
If you found this helpful, you can also click “Yes” on “Was this reply helpful?” or give it a Like.
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 424
WarrenBelz 355 Most Valuable Professional
11manish 290