web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Move items from one li...
Power Automate
Unanswered

Move items from one list to another when items total reach 1500

(0) ShareShare
ReportReport
Posted on by

Hello Community,

 

I have 2 SP lists as follows:

1st list is a "database" of an PowerApps application and new items can be submitted into this list through the application;

2nd list is the archive of 1st one;

 

What i want to achieve is that when the database will reach over 1500 items to have this automated flow that will automatically move the oldest items from the database to the archive (e.g. database reached 1520 items - moves first 20).

 

I would appreciate some support if this can this be achieved.

Thank you in advance for you time.

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @FilipC2 ,

     

    In Get items action you can apply Order by and Top count to get the first 1500 entries from the list:

    vjefferni_0-1698048788756.png

     

    Then use an Apply to each and Create item in the other list. Next, in another Apply to each control delete items from Get items.

     

    Best regards,

  • FilipC2 Profile Picture
    on at

    HI @v-jefferni ,

     

    Ty for you reply,

    But won't this move the 1500 items ? 

    I want to always keep the last submitted 1500 item in the database list.

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @FilipC2 ,

     

    OK, I misunderstood your question. To reduce the flow running, I prefer to use below method:

    vjefferni_0-1698052588445.png

    vjefferni_1-1698052721549.png

     

    Best regards,

  • FilipC2 Profile Picture
    on at

    Hi @v-jefferni,

     

    Seems like this is exactly what I need but don't know what I'm missing because it's giving me false result in the condition although i for sure have over 2000 entries in the database. 

     

    Is there something wrong in what i did ?

     

    And another (off 😁) quick question, how can i change the filter query in get items action to look like yours ?

  • v-jefferni Profile Picture
    on at

    Hi @FilipC2 ,

     

    First please add a Compose action above the Condition control, use the same length expression in it and test the flow to know what's its result. For your question, I am using experimental features and probably you can turn it on in all Power Automate settings:

    vjefferni_0-1698111953428.png

    vjefferni_1-1698112050909.png

     

    Best regards,

  • FilipC2 Profile Picture
    on at

    Hi @v-jefferni,

     

    I figure it out!

    It was only checking the first 100 items in the list so i activated the pagination in get item action and entered a threshold of 2000 items and now it's working as it should.

     

    Ty for your suggestion and also for experimental features tips 🙂

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard