cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to retrieve last 10 items from 1000 items SharePoint list

Hi,

I have more than 1000 items on the SP list, and I want only retrieve the last 10 items from that list. Any suggestion? Any Filters, Operators, Collection I used, none of them giving me the result.  I don't want to change app delegation Settings to more than 500 items. 

 

Thanks,

-Sal

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User
Super User

Here’s what I would suggest. It works because SORT is a delegable function and we only need the first 10 records it returns.

FirstN(Sort(your_datasource_name,ID,Descending),10)

—-
Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up!

View solution in original post

2 REPLIES 2
mdevaney
Super User
Super User

Here’s what I would suggest. It works because SORT is a delegable function and we only need the first 10 records it returns.

FirstN(Sort(your_datasource_name,ID,Descending),10)

—-
Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up!
Anonymous
Not applicable

that worked like a charm. I was wasting my time to invent some new formula.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,108)