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 / Autosave collections o...
Power Apps
Unanswered

Autosave collections on App close

(0) ShareShare
ReportReport
Posted on by 37
Is there a way to AUTOSAVE a collection on app close?
 
I use a collection to manage the data from a SQL table (just add records). But patching every change is slow (new records must be added instantly), So I use a local collection and SYNC it:
  • Every x time
  • With 'SYNC' buttons, in 'OnSelect' event
  • In the 'OnHidden' event, when leaving the page.
I pack all data as a JSON and send to a stored procedure, so all changes (may be even hudreds of rows) are saved in a single transaction.
 
But... If the App CLOSES... Is there a way to force this sync?
 
Thanks
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
    Hi,
     
    I do not know of any way to do what you are asking. since the person can just kill the app at any time, you'd have to know to sync it when they come back online.

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