cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JB0007
Helper V
Helper V

ClearCollect is not working in App OnStart

Hi PowerApps community,

 

I want to collect (ClearCollect) data from my SharePoint list into a collection. My SharePoint has maximum 50 records in the SharePoint list. I have inserted the following formula in the OnStart property of my App:

ClearCollect( mySharePoint, Status = "Active").

 

But when I start the app the collection is blank. 

 

Does anyone has a workaround for this?

 

Any help will be much appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

  • First, is Status a choice field?  If it is then your filter should be Status.value="Active".
  • Second, you need to specify the SharePoint list you want to put in the collection
  • Third, if you want to filter it you need something like filter(sharepointlist,Status.value="Active")
  • Fourth, you need to make sure the Enable OnStart property is turned on in the settings.
  • Fifth, you need to turn off the Delayed Load feature in Preview Features.

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
CNT
Super User
Super User

@JB0007 The formula will be like this,

ClearCollect(myCollection, Filter(mySharePoint, Status = "Active"))

Pstork1
Dual Super User
Dual Super User

  • First, is Status a choice field?  If it is then your filter should be Status.value="Active".
  • Second, you need to specify the SharePoint list you want to put in the collection
  • Third, if you want to filter it you need something like filter(sharepointlist,Status.value="Active")
  • Fourth, you need to make sure the Enable OnStart property is turned on in the settings.
  • Fifth, you need to turn off the Delayed Load feature in Preview Features.

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,614)