cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Inspect SaveData() cache?

 Using the SaveData() function, I store some data in a local Cache. Is there any way in which I can inspect data stored there during the running of an app from within the App Studio?

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-micsh-msft
Community Support
Community Support

Hi @Anonymous,

 

Based on what I know, there should be no function to check the data other than the LoadData function.

You may consider to add another screen, add a gallery (with items property set to the collection) to hold the corresponding collection, and a button under another screen where the saveData used in.

Set the Button Onselect property with:

LoadData();Navigate(Screenadded, ScreenTransition.none)

If you would like to review the saved data, click the Button, it should navigate to the screen with the proper data.

Add another button to navigate back.

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

To see the data file, on Windows it is stored at

%userprofile%\AppData\Local\Packages\Microsoft.MSApps_8wekyb3d8bbwe\LocalState

The file will have a weird name and is encrypted. As Michael says, the only way to read it is via LoadData.

View solution in original post

4 REPLIES 4
v-micsh-msft
Community Support
Community Support

Hi @Anonymous,

 

Based on what I know, there should be no function to check the data other than the LoadData function.

You may consider to add another screen, add a gallery (with items property set to the collection) to hold the corresponding collection, and a button under another screen where the saveData used in.

Set the Button Onselect property with:

LoadData();Navigate(Screenadded, ScreenTransition.none)

If you would like to review the saved data, click the Button, it should navigate to the screen with the proper data.

Add another button to navigate back.

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

To see the data file, on Windows it is stored at

%userprofile%\AppData\Local\Packages\Microsoft.MSApps_8wekyb3d8bbwe\LocalState

The file will have a weird name and is encrypted. As Michael says, the only way to read it is via LoadData.

Anonymous
Not applicable

Thanks, both of you.

Uhm, I'm confused. I thought there was NO cache on the Web player (and thus no cache when in the Studio).  Am I wrong about that or was LoadData/SaveData available on the Web player and in the studio back in 2017 but no longer?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (3,305)