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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Save LocalCache on app...
Power Apps
Answered

Save LocalCache on application exit

(0) ShareShare
ReportReport
Posted on by 12

Hello all,

 

I am currently using the Offline capabilities of PowerApps to create new items in a SharePoint List. It looks very promising. I am following this : https://powerapps.microsoft.com/en-us/blog/build-offline-apps-with-new-powerapps-capabilities/

 

However, there is a problem. If I have 3 pending uploads, and I exit the app, they are gone the next time I open the app. I was hoping if I could somehow keep it on a persistent state until it is sure that they have been uploaded to the SharePoint list.

 

Is there a way to save the localcache on app exit?

 

Thank you

Categories:
  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi Water,

     

    If you have only 1 pending upload, can you see the data the next time you open the app in offline mode?

     

    From the blog we know that in offline mode, we can load data from a local cache using LoadData function, then when we change to online mode, we will be able to upload the data to data source.

     

    Best regards, 

    Mabel Mao

  • Water Profile Picture
    12 on at

    Hi Mabel,

     

    Thanks for that. I have missed the initial LoadData on the OnVisible of the screen.

     

    Now it is loading the pending uploads even after I exit and reopen the app. Works perfectly. 

     

    I also solved why it is always Pending Upload : 1 . On TimerEnd, it was saving the txtTitle textbox after it clears. I removed the savedata and now properly showing the number of pending uploads.

     

    Thanks!

     

    EDIT:

     

    As a follow up question, is there a time duration / expiry of the LocalCache? Or exists indefinitely until it gets posted?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard