cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
gabrielv22
Level: Powered On

I lose the collection data when closing the App

Hi all.

 

I am developing an application to use offline.

I use collections with SaveData and LoadData, but I have a issue.

 

When I use offline, I can SaveData into Collection.

While PowerApps is open or in the background, I have data in the collection. And when the connection returns, the data is sent.

 

But, when PowerApps closes (I kill the application) and re-enter I lose all the data.

 

Is it possible not to lose data?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: I lose the collection data when closing the App

Hi @gabrielv22 ,

 

It is expected behavior that the collection only exists when the app is open. This is because that collection is variable, and all variables are held in memory while the app runs. After the app closes, the values that the variables held are lost.

 

For more information about how to create an offline app, please refer to below blogs:

https://powerapps.microsoft.com/en-us/blog/build-offline-apps-with-new-powerapps-capabilities/

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/offline-apps

 

Regards,

Mona

Community Support Team _ Mona Li
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

1 REPLY 1
Community Support Team
Community Support Team

Re: I lose the collection data when closing the App

Hi @gabrielv22 ,

 

It is expected behavior that the collection only exists when the app is open. This is because that collection is variable, and all variables are held in memory while the app runs. After the app closes, the values that the variables held are lost.

 

For more information about how to create an offline app, please refer to below blogs:

https://powerapps.microsoft.com/en-us/blog/build-offline-apps-with-new-powerapps-capabilities/

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/offline-apps

 

Regards,

Mona

Community Support Team _ Mona Li
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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 255 members 6,583 guests
Please welcome our newest community members: