cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
TorreyFalconer
Level: Powered On

Filtering after most recent 500 items SP List

Hey all, 

 

I have a SP list to collect data, however I only want to keep the most recent 500 items. If they do not fall within the most recent 500 items, I need to create a flow that will move that item to another identical list that can be the master list. I have most of the flow build already, but I am not sure exactly how to create a filter that would be able to identify the oldest items up until the most recent 500. 

Any thoughts?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Filtering after most recent 500 items SP List

 

Hi @TorreyFalconer ,

 

You can also sort by ID, Like ID desc.

You may also need to set Pagination to a maximum value above 500.

47.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Filtering after most recent 500 items SP List

Hi @TorreyFalconer 

 

I think you need to work in the opposite direction. First, select the 500 you want to keep and then exclude the remaining ones. This way, the sort, and record filtering will be done for you, and all you need to do after is filter out the remaining ones in another "Get Item".

 

Here's how to fetch the most recent 500.

Screenshot 2020-01-21 at 09.38.59.png

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

Community Support Team
Community Support Team

Re: Filtering after most recent 500 items SP List

 

Hi @TorreyFalconer ,

 

You can also sort by ID, Like ID desc.

You may also need to set Pagination to a maximum value above 500.

47.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (6,356)