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 / Copy large number of i...
Power Automate
Answered

Copy large number of items from SharePoint List to SharePoint List

(0) ShareShare
ReportReport
Posted on by

Hello,


I am trying to build a flow to get item from items from one SharePoint List ( latitude and longitude) and add it to a separate SharePoint List.  It works, but there are over 200 items so it'll take over 3 hours to complete.  Both list have a column ID that will compare if it matches then paste the latitude and longitude there, so it'll loop each item 200 times - so 200x200 will take forever.  Is there anyway to avoid this?

 

Thank youCapture.PNG

 

Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Anonymous 

    Here is one solution to your issue - see screen shots below.

    Rather than looping through each item in the destination list for each value in the source list, I use a Get Items inside of each loop with an OData filter.  The filter allows me to return just a single item - the item with an OLDID that matches the source rows ID.

     

    Also, remember that Get Items returns 100 items by default - you'll need to set that up to a number of 200 or higher - see screen shot.

     

    Also, if this is a one time thing that you won't need to repeat, you might consider using MS Access - you could link to both tables, and create an update query and update the destination list in just a few minutes.

     

    OldID1.jpgOldID2.jpgOldID3.jpg

  • Community Power Platform Member Profile Picture
    on at

    @ScottShearer 

    Thanks for the reply.  Will your solution still loop through and compare every value?  Currently it is going through and checking ID 1 (200 times, will return 1st item true and next 199 false), then check ID 2 (return 1st false, next 1 true, next 198 false), and so on...Check ID 200( return first 199 false, last item true)  I plan to run this more than once.

     

    Capture.PNG

    Thank you!

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Anonymous 

    My solution will loop through each item in the source list and update every matching item in the destination list (there should only be 1 matching item).

     

  • Community Power Platform Member Profile Picture
    on at

    thanks!  that was exactly what I was looking for @ScottShearer 

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard