Skip to content

Commit 80769f4

Browse files
authored
Merge pull request #1199 from MicrosoftDocs/gregli-savedata
Changed the implementation of SaveData/LoadData, updating the docs to correspond
2 parents 8f39b91 + 4769aba commit 80769f4

File tree

2 files changed

+193
-183
lines changed

2 files changed

+193
-183
lines changed

powerapps-docs/maker/canvas-apps/functions/function-savedata-loaddata.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: powerapps
77
ms.topic: reference
88
ms.custom: canvas
99
ms.reviewer: anneta
10-
ms.date: 11/07/2015
10+
ms.date: 01/31/2019
1111
ms.author: gregli
1212
search.audienceType:
1313
- maker
@@ -22,9 +22,15 @@ The **SaveData** function stores a collection for later use under a name.
2222

2323
The **LoadData** function re-loads a collection by name that was previously saved with **SaveData**. You can't use this function to load a collection from another source.
2424

25-
**LoadData** doesn't create the collection; the function only fills an existing collection. You must first create the collection with the correct [columns](../working-with-tables.md#columns) by using **[Collect](function-clear-collect-clearcollect.md)**.
25+
Use these functions to improve app-startup performance by caching data in the **[App.OnStart](../controls/control-screen.md#additional-properties)** formula on a first run and then re-loading the local cache on subsequent runs. You can also use these functions to add [simple offline capabilities](../offline-apps.md) to your app.
2626

27-
Storage is encrypted and in a private ___location on the local device, isolated from other users and other apps.
27+
You can't use these functions inside a browser, either when authoring the app in PowerApps Studio or when running the app in the web player. To test your app, run it in PowerApps Mobile on an iPhone or Android device.
28+
29+
These functions are limited by the amount of available app memory because they operate on an in-memory collection. Available memory can vary depending on the device and operating system, the memory that the PowerApps player uses, and the complexity of the app in terms of screens and controls. If you store more than a few megabytes of data, test your app with expected scenarios on the devices on which you expect the app to run. You should generally expect to have between 30 and 70 megabytes of available memory.
30+
31+
**LoadData** doesn't create the collection; the function only fills an existing collection. You must first create the collection with the correct [columns](../working-with-tables.md#columns) by using **[Collect](function-clear-collect-clearcollect.md)**. The loaded data will be appended to the collection; use the **[Clear](function-clear-collect-clearcollect.md)** function first if you want to start with an empty collection.
32+
33+
Storage is encrypted and in a private ___location on the local device, isolated from other users and other apps.
2834

2935
## Syntax
3036
**SaveData**( *Collection*, *Name* )<br>**LoadData**( *Collection*, *Name* [, *IgnoreNonexistentFile* ])

0 commit comments

Comments
 (0)