cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper IV
Helper IV

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
Community Support

 

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 II
Super User II

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
Community Support

 

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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (9,597)