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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard