cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,296)