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

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
Highlighted
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (13,961)