web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to sync updated re...
Power Apps
Unanswered

How to sync updated record with local collection real time

(0) ShareShare
ReportReport
Posted on by 98

Hello,

 

Im struggling to keep in sync my local collection and my Datasource after updating a record.

 

Here's my dilema, I have a simple gallery where on click of a button, it will collect from my data source and then display the data in a gallery.

ClearCollect(Local_Collection, 
 Filter(DataSource, 
 Parent_ID = ThisItem.ID)
 )
)

User would then modify record or records, and on save it will send a patch to the Datasource. It would then send them back to the main menu. So far all this is working up to this point, no problem. 

The issue I came across is that users might need to update the same batch of records again a few seconds later. So if they try to access the record again, the old data shows up but if you go back again 30 seconds later, It finally grabs the updated record. 

 

There seems to be a delay between saving the data and being able to grab the updated record from a Sharepoint list. Has anyone come across this and know how to get around this?

Categories:
I have the same question (0)
  • Verified answer
    Dawidvh Profile Picture
    1,346 on at

    Hi @Owizardo,

     

    I know it shouldn't matter, but what datasource are you using,? We have found some caveats with collecting SharePoint lists, and then patching them back to SharePoint.

     

    Does the collection have the same key column as the datasource and are all column names exactly the same? You could try and patch the collection when the user updated the record, then issue a Patch command (or UpdateIf in the case of SharePoint list to avoid author access problems.) to patch the datasource with the entire collection.

    Patch(dataSource,localCollection)

    You could also consider using timers to kick off the second sync after the user input action has completed.

     

    Let me know if you don't come right.

     

  • Owizardo Profile Picture
    98 on at

    Thanks for the quick response, I ended doing that but I also had found that I had activated a cache mode which was not helping me in this scenario. Once I turned it off, everything now seems to be running alot smoother. Thx again.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard