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
Solved! Go to Solution.
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
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
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?
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
207 | |
72 | |
51 | |
49 | |
20 |
User | Count |
---|---|
264 | |
123 | |
85 | |
79 | |
70 |