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

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
Top Kudoed Authors
Users online (2,176)