Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

foreach - loop through a list and move each item to another list

(0) ShareShare
ReportReport
Posted on by 195

Hello,

 

I am trying to copy items from a list to an archive list on a schedule.  I am having a hard time using 'Apply to Each'.  In the image below, I'm not sure what the previous step is supposed to be.

 

applyForEach.JPG

 

If there is a better way to copy all items from one list to another, please share. 

The number of items in the list will range between 300 and 500.

 

 

Thanks!

  • v-litu-msft Profile Picture
    on at
    Re: foreach - loop through a list and move each item to another list

    Hi @isogunro1,

     

    Are you configure your flow like the following?Annotation 2019-10-08 150814.png

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

  • isogunro1 Profile Picture
    195 on at
    Re: foreach - loop through a list and move each item to another list

    Thanks for your response.  I followed your steps but when I got to the dynamic content part, there was no content available.  Any ideas what I'm doing wrong?

     

    dynamicContent.JPG

  • LeeHarris Profile Picture
    1,026 on at
    Re: foreach - loop through a list and move each item to another list

    Hi @isogunro1 

    Assuming that you already have access to the item that you want to copy in the Dynamic Content list, try adding the SharePoint Create Item action without the Apply to Each. Then set one of the properties in the new item you are creating to a value (selected from Dynamic content) of the item you are copying from. This should automatically generate the Apply to Each loop with the correct value.

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492