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.

View solution in original post

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.

View solution in original post

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
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: 337 members 5,790 guests
Please welcome our newest community members: