cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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
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.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

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

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 63 members 3,974 guests
Please welcome our newest community members: