cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WorkHard
Super User
Super User

Load only the latest 500 records from a 3000 source from Sharepoint List to overcome the 2000 limit

So I learned about the 2000 record limitation of Power Apps and Sharepoint List.

 

I have an app with a browse screen gallery with a search feature where I display active requests. Users can search for previous requests. Once a request is completed, usually, we don't need to modify it ever and rarely need to view very old requests again.

My thought is to "archive" old requests and only pull, say, the latest 500 records in the app. If users need to search for very old records they can go manually to the SharePoint list to look at it.

 

The most simple way to "archive" this would be to filter out ID numbers below a certain number. So say when I specify my data source, only pull IDs that are above ID 1500. I can create a new ID if I can't use the actual Sharepoint ID.

 

Is this possible? What would the easiest way to achieve this archival process for me with the option say in 5 years to add more items to the archive?

1 ACCEPTED SOLUTION

Accepted Solutions
EdViegas
Super User
Super User

You can try 

LastN(
    SortByColumns(
        your_3000_records_list,
        "ID",
        Descending
    ),
    500
)

View solution in original post

1 REPLY 1
EdViegas
Super User
Super User

You can try 

LastN(
    SortByColumns(
        your_3000_records_list,
        "ID",
        Descending
    ),
    500
)

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
Top Kudoed Authors
Users online (3,894)