cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Questionasking
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
leyburn19
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
leyburn19
Memorable Member
Memorable Member

Simply sort descending:

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

This will change the 200 to the most recent 2000

Also change your delegation threshold in Settings to 2000

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (4,743)