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 / [Urgent] PowerApps Off...
Power Apps
Unanswered

[Urgent] PowerApps Offline Capability with SharePoint

(0) ShareShare
ReportReport
Posted on by 428

Hi Developers,
I am currently working on a PowerApps solution that includes a canvas app.

My PowerApps is able to operate in offline mode with the Sharepoint, by following the below blog from Matthew Devaney:
https://www.matthewdevaney.com/power-apps-offline-mode-a-step-by-step-tutorial/

I just have few queries, hope you pro Devs can help me:
1. When the app is opened and operates in the offline mode, the app is able to sync the data from the local memory to the sharepoint when there's a internet connect. But when I operate the app in the offline mode and then save it in the local memory and closes the app, post re-opening the app with internet connection, the app is not able to get the old data from the local memory. I want to know why?

2. Where does the app stores the data in the local memory? Is it a cache of the powerapps application or just the app which am using?

3. Why my data (from offline mode) is not coming up when I accidently re-open the app with internet.

4. Please help me to understand the deep process of storing the data in the offline mode using the SaveData() & LoadData() functions.

5. Lastly, what can i do to make it happen that the app can be able to sustain the local memory data from the offline mode even when the app was closed.


Thanks in advance for your help!

I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    68,697 Most Valuable Professional on at
    In General, the way Apps work with SharePoint Offline is that the app is written to work with a local collection that holds the data. When you are online you then sync the data in that local collection with the data in SharePoint. You can do that with a manual refresh button or based on a timer that checks to see if you are online periodically and syncs manually.
     
    Since you may start or stop the app while you are offline you have to make provision for loading and saving data from local storage. That's what LoadData() and SaveData() do.  So basically it should work like this
     
    1) When the app starts use LoadData() to load the last data stored into a collection.
    2) If you are online update the collection by syncing it with SharePoint. Save the collection using SaveData() after syncing.
    3) Run the App
    4) Check periodically if you are online and perform #2 again.
    5) If you make changes in the local collection and you are offline make sure to save these to storage using SaveData()
     
    Answers
    1) The app can only get data from Local Storage if you've done a SaveData(). I suspect in the Scenario you describe SaveData() hasn't taken place.
    2) SaveData stores the data in local storage as a file. You can have multiple different files stored by multiple different apps up to the limit of storage on your device. Make sure to use unique names for each SaveData in each app.
    3) See #1. Either you aren't doing the LoadData() in the right place or didn't do a SaveData() before closing the app.  
    4) See description above.
    5) That's exactly what SaveData() and LoadData() are for.  They save the data to storage on the device that won't go away when the app is closed.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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