cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lorakz
Regular Visitor

PROBLEM WITH COLLECTIONS

I created a collection to better filter some production data, I saved and published the app but when using it the collection is deleted, could someone tell me why this happens and how to fix it?

4 REPLIES 4
Drrickryp
Super User
Super User

@Lorakz 

Collections exist only in memory and must be reconstituted when the app is opened.  You can put the Collect function in the OnStart of the app like Collect(colTable,Table1)!1.jpg

Drrickryp
Super User
Super User

@Lorakz 

Collections exist only in memory and must be reconstituted when the app is opened.  You can put the Collect function in the OnStart of the app like Collect(colTable,Table1) so it will be automatically reconstituted when the app is opened.!1.jpg

Ben_Hoople
Advocate I
Advocate I

Collections are temporary, they are not permanent storage.

 

they will exist differently on every phone that runs an instance of you app and have to be updated "on run time"

 

what you need is a form of permanent storage. you can connect your powerapps to a data source and it will access that storage when the app loads up? or you can create a table and manually insert the data... but i suggest connecting it to a data source. 

 

Here is some information on collections in powerapps (theres is also a video in the link):

https://docs.microsoft.com/en-us/power-apps/maker/canvas-apps/create-update-collection

BCBuizer
Super User
Super User

Hi @Lorakz ,

 

Collections are basically like variables, so the data in there is not stored permanently. You'll have to use a data source such as a SharePoint list, Dataverse entity or Excel table.

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 (1,145)