Applies to:
Canvas apps
Saves and reloads a collection from the app host's storage.
Description
The SaveData function stores a collection for later use under a name.
The LoadData function reloads a collection by name that was previously saved with SaveData. You can't use this function to load a collection from another source.
The ClearData function clears the storage under a specific name or clears all storage associated with the app if no name is provided.
Note
- The name shared between SaveData, LoadData, and ClearData is a key, not a file name. It need not be complex as names are unique to each app and there is no danger of name conflict. The name must not contain any of these characters:
*".?:\<>|/.
- SaveData is limited to 1 MB of data for Power Apps running in Teams and in a web browser. There is no fixed limit for Power Apps running in a mobile player but there are practical limits discussed below.
- Don't use SaveData to store sensitive data in the web since it'll be stored in plain text.
Use these functions to improve app-startup performance by:
- Caching data in the App.OnStart formula on a first run.
- Reloading the local cache on next runs.
You can also use these functions to add simple offline capabilities to your app.
You can't use these functions inside a browser when:
- Authoring the app in Power Apps Studio.
To test your app, run it in Power Apps Mobile on an iPhone or Android device.
These functions are limited by the amount of available app memory as they operate on an in-memory collection. Available memory can vary depending on factors such as:
- The device and operating system.
- The memory that the Power Apps player uses.
- Complexity of the app with screens and controls.
Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
Visit my blog Practical Power Apps LinkedIn