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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,425)