cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sofie_D
Level 8

Clearcollect collection acting strange

In my OnStart I do: ClearCollect(Events, TestEvent)  with TestEvent a SharePoint list

But when I do the same operation on Events and TestEvents I get different results, for example:

In a label the formula First(Filter(TestEvent, gID = ID)).Title  Gives the correct Title while 

First(Filter(Events, gID = ID)).Title  returns "".

 

Also when trying to display Single Line of Text fields from TestEvent I have no problem, while the same field in Event I get the error that the field doesn't contain Text.

 

Am I doing something wrong here?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Clearcollect collection acting strange

If you are testing this in the studio, it might not run the OnStart event . (You can also confirm if the Collections tab under File has any content in the Events Collection)

 

You will have to save, close and then re-open the app for the OnStart event to run.

 

Hope this helps.


Vivek Bavishi aka That API Guy
PowerApps and Flow MVP
Blog | Twitter | YouTube | Community Profile | GitHub



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 REPLIES 2
Highlighted
Super User
Super User

Re: Clearcollect collection acting strange

If you are testing this in the studio, it might not run the OnStart event . (You can also confirm if the Collections tab under File has any content in the Events Collection)

 

You will have to save, close and then re-open the app for the OnStart event to run.

 

Hope this helps.


Vivek Bavishi aka That API Guy
PowerApps and Flow MVP
Blog | Twitter | YouTube | Community Profile | GitHub



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sofie_D
Level 8

Re: Clearcollect collection acting strange

It was on the web, but the 3rd time restarting the app finally fixed it.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 224 members 4,697 guests
Please welcome our newest community members: