Hi all
Quick question regarding PowerApps. Is this a solution that can be used in an offline capacity? I.e. if there's no connectivity, can data to be submitted be cached / stored on a device until a connection becomes available?
Thanks
Michael
Solved! Go to Solution.
Kind of. As Steelman70 pointed out, there are a couple of functions - SaveData and LoadData - that allow you to persist some state locally while the connection is offline, and later you can push those changes to the server once the connection has been stablished again.
However, there's a lot of work that you need to do in your application to get it to work. For example, if we use the app created by the "App From Data" experience (a "master" browse page, a details page and an edit page), to enable offline you would need to do the following:
There are some other issues that will need to be addressed as well, but that gives a general idea of the complexity of making a real offline application.
Adding this capability (so that the app creators won't need to deal with that) is in the backlog. If you think this is a scenario you would need I suggest you vote up the item in the PowerApps ideas board, at https://powerusers.microsoft.com/t5/PowerApps-Forum/Does-the-PowerApps-solution-have-capability-for-....
Kind of. As Steelman70 pointed out, there are a couple of functions - SaveData and LoadData - that allow you to persist some state locally while the connection is offline, and later you can push those changes to the server once the connection has been stablished again.
However, there's a lot of work that you need to do in your application to get it to work. For example, if we use the app created by the "App From Data" experience (a "master" browse page, a details page and an edit page), to enable offline you would need to do the following:
There are some other issues that will need to be addressed as well, but that gives a general idea of the complexity of making a real offline application.
Adding this capability (so that the app creators won't need to deal with that) is in the backlog. If you think this is a scenario you would need I suggest you vote up the item in the PowerApps ideas board, at https://powerusers.microsoft.com/t5/PowerApps-Forum/Does-the-PowerApps-solution-have-capability-for-....
Carlos/Steelman, thanks for detailed info
Please see further questions below:
1. Is there any way to stop the app connecting to the internet by default based on connection status?
The end result should be that the app loads instantly if connection is not available instead of showing a loading spinning circle.
2. Please give an quick example of an offline app that uses Common Data Model.
Unsure if any offline sync functionality comes with CDM.
3. When could the official offline functionality be expected?
Help and clarifications are always appreciated.
Hi,
Carlos/Steelman said we can use "SaveData" for Offline Mode. But your SaveData will be lost when you update with latest App from PowerApps of your organization. The reason is PowerApps always delete the existing App Folder and download from Server. That why your SaveData is lost after update with latest App. So SaveData is good to use for offline mode if they can solve it this issue. I was reported 1 month ago but still has this issue on latest PowerApps.
Regards,
Hi yukonn, thanks for pointing this out.
Hi
May I have additional suggestion to Mr. Parker?
- Use SaveData (which is to a temporary location) and at the same time, use EXPORT to save to XML (in zip format. Though you pre-set the filename, you can still change to whatever filename you wish and save!)
So, even when changes are made to PowerApps edition, XML file is always residing in our local drive, self-defined filename and can be IMPORTED back at any time.
I have developed Bed Time Story Books and available in Windows Store (using Project Siena, Windows 8.1, 2 years ago), using SaveData / LoadData and Export / Import. You may to this as a reference.
Hope this helps.
Hi @stickmancan, have you seen this?
https://powerapps.microsoft.com/en-us/blog/build-offline-apps-with-new-powerapps-capabilities/
Offline work is necessarily somewhat technical as you need to decide how to deal with conflicts between offline data and server data. Which source should prevail etc.
User | Count |
---|---|
254 | |
101 | |
94 | |
47 | |
38 |