web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collections not workin...
Power Apps
Answered

Collections not working onStart

(0) ShareShare
ReportReport
Posted on by 35

Hi All,

 

I am having an issue getting onStart to create a collection. I am trying to filter what data I'm using in my app to active records only, to limit the number of records. So I added this to on onStart but my collects are empty.  Anyone have an idea why?

 

Thanks

 

Concurrent(
ClearCollect(vResource, 'Resources (Views)'.'Active Resources'),
ClearCollect(vItem, 'Items (Views)'.'Active Items'),
ClearCollect(vDivision, 'Divisions (Views)'.'Active Divisions'),
ClearCollect(vProject, 'Projects (Views)'.'Active Projects'),
ClearCollect(vRelease, 'Releases (Views)'.'Active Releases')
);

 

Categories:
  • Samuel-Zhou Profile Picture
    393 on at

    Hi @Kathryn-Marie ,

    Do you perform OnStart operation in the App?

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Kathryn-Marie ,

     

    Dataverse View is not supported in canvas.

    Please use filter() function to filter out items directly.

     

    Best Regards,

    Wearsky

  • Kathryn-Marie Profile Picture
    35 on at

    I have the clear collectcode in the onStart field. Am I missing a step?

    PowerApp.png
  • Kathryn-Marie Profile Picture
    35 on at

    Should this be the format that will work then?

     

    ClearCollect(vRelease, Filter(Releases, 'Releases (Views)'.'Active Releases'))

     

    TA

  • Kathryn-Marie Profile Picture
    35 on at

    Interesting... I was messing about with components to see if I could get it to work, and now on start is missing! Not sure what I did so I now have the code in onVisible.

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Kathryn-Marie ,

     

    Yeah, it's correct.

     

    Best Regards,

    Wearsky

  • SoPatt Profile Picture
    Microsoft Employee on at

    If you share your table schema, somebody might be able to answer your question. Filter() takes a Table and one or more filter conditions. Those conditions have to resolve to a boolean value (true or false).
    For example,

    Set(MyEmail,User().Email);
    Collect(MyData,
     Filter(UserData,
     'Created By'.Email = MyEmail
     )
    )

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard