cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
isogunro1
Frequent Visitor

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

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!

3 REPLIES 3
LeeHarris
Solution Sage
Solution Sage

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.

 


Did I answer your question? Mark my post as a solution!

Follow me on Twitter at @QG_LeeJHarris

Or on LinkedIn at in/leejharris

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

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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,400)