Skip to main content
Community site session details

Community site session details

Session Id : tRuZlWnKyvs/9vKdKMebYG
Power Apps - Building Power Apps
Answered

Saving and Restoring Canvas App State Across Sessions

Like (2) ShareShare
ReportReport
Posted on 21 Apr 2025 14:48:10 by 4
How can I persist a user's selections (like dropdowns, checkboxes, etc.) and restore them on re-opening the app?
Categories:
  • Verified answer
    vipuljain03 Profile Picture
    497 Super User 2025 Season 2 on 21 Apr 2025 at 20:15:26
    Saving and Restoring Canvas App State Across Sessions
    Use the SaveData() and LoadData() functions:
    SaveData(colUserSelections, "UserSessionData")
    On App Start: LoadData(colUserSelections, "UserSessionData", true)
     
    Set default values of controls based on this collection.
     
    ------------------------------------------------------------------------
    If this reply helped you, please mark this reply as suggested answer ✔️ and give it a like to help others in the community find the answer too!
    Thanks,
    Vipul
  • Jon Unzueta Profile Picture
    1,176 Super User 2025 Season 2 on 21 Apr 2025 at 15:50:03
    Saving and Restoring Canvas App State Across Sessions
    Hi @CU21041441-0
    You can collect the user selections and save them in a table. When you reopen the app in the "Default" options of each component you select what you have in the table
    If this answer helped you mark it as accepted and give me a like.
  • Suggested answer
    stampcoin Profile Picture
    3,888 Super User 2025 Season 2 on 21 Apr 2025 at 15:47:18
    Saving and Restoring Canvas App State Across Sessions
    To make it work, you could define a table in dataverse to store the pernalization settings.
    it links to users, and you can add patch event for example once the end user submit data.
    Initialize the settings in App.OnStart.
     

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete