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

Collect most recent sharepoint list items if over 2000 etc

Hi,

 

I have an app that collects from a huge list however when i use the collect function it only collects the oldest entries, i wish to just collect the most recent 200 entries?

 

ive tried 

 

 

ClearCollect(colsharepointlist,LastN(sharepointlist,200))

 

 

however it just gives me the last 200 from the 500 of the delegation? 

1 ACCEPTED SOLUTION

Accepted Solutions
Memorable Member
Memorable Member

Simply sort descending:

ClearCollect(colsharepointlist,Sort(sharepointlist,ID,Descending)
 

This will change the 200 to the most recent 2000

View solution in original post

2 REPLIES 2
Memorable Member
Memorable Member

Simply sort descending:

ClearCollect(colsharepointlist,Sort(sharepointlist,ID,Descending)
 

This will change the 200 to the most recent 2000

View solution in original post

Also change your delegation threshold in Settings to 2000

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (78,229)