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 / Filter in clearcollect
Power Apps
Unanswered

Filter in clearcollect

(0) ShareShare
ReportReport
Posted on by

Dear community,

 

I am using below expression to get the values from sharepoint list. However, is it possible to get more than 500 records?

 

ClearCollect(

    colGalData,

    Filter(

       ClaimsForms ,

       ApprovalResponse = "Pending - Process"

    )

);

 

 

Also for below formula, i get warning as

Launch(ThisItem.'Link to item', "", LaunchTarget.New)

 

To use the 'target' argument (LaunchTarget) in the Launch function the second parameter must be a record.

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,203 Most Valuable Professional on at

    The default data row limit is 500.  If you increase that in your settings you can get more.  The maximum is 2,000.  Once you get that high you need to retrieve them using a delegable filter in batches of no more than 2,000. For example you could use a StartsWith filter of the Title based on each letter of the alphabet using ClearCollect first and then Collect after.

     

  • Vaibhav_k Profile Picture
    on at

    Thanks @Pstork1, do you mean increasing limit to 2000 only will be enough?

     

  • Pstork1 Profile Picture
    69,203 Most Valuable Professional on at

    I mean that 2,000 is the highest you can increase the limit.  Power Apps will never return more than 2,000 records in any single call.  for example, if there are 750 records that meet your filter requirements then setting the data row limit to 800 would return all 750 records.  Leaving it at 500 will only return 500 of the 750.

  • Vaibhav_k Profile Picture
    on at

    Okay @Pstork1. I have more than 5000 items in the list and if I make the limit to 2000, the filter will only get 2000 items and remaining items won't be fetched after 2000. Is there any example by which I can understand to handle this scenario? Do I need to archive the items?

  • Vaibhav_k Profile Picture
    on at

    Could this be the solution. As i want to implement this in production, we dont have UAT

     

    ClearCollect( colGalData, Filter( ClaimsForms, StartsWith(ApprovalResponse, "Pending - Process") ) );

  • Pstork1 Profile Picture
    69,203 Most Valuable Professional on at

    Read about the concept of delegation here: Understand delegation in a canvas app - Power Apps | Microsoft Learn When you use delegable functions in a filter it delegates the application of the filter to the backend data source. So if you have 5,000 records total but the filter you are applying is delegable and selects less than 2,000 records you'll get all the matching records.  If the function is non-delegable you'll get the matching records from the first 2,000 records.  The key to working with large data sources is to NOT load them into local collections.  Instead you should use delegable functions to make an appropriate subset of the records available to the user at any particular time for them to interact with.

     

    Can I ask why you want to load the records into a local collection using ClearCollect?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 528

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard