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 item list 1 to li...
Power Automate
Unanswered

Copy item list 1 to list 2 according to conditions

(0) ShareShare
ReportReport
Posted on by 176

Hello,

I have two sharepoint lists.

I want to copy the value of list1 to list2 according to the number.value colum

 

list1 (userlist)  fixbase with 10 000 items
number column       name column 

4                               david

5                               robert

6                               tom


list2 (ticketlist) dynamicbase
number column        name column

4                                blank                    // david (to paste from list 1)

6                                blank                    // tom (to paste from list 1)

4                                blank                    // david (to paste from list 1)

 

the lists are used without app via windows.

Office 365 list and flow.

i want to fill name column in list2 according to number column

thanks

Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at

    @Ben-00-38 here is the flow

     

    jinivthakkar_0-1614895250577.png

    jinivthakkar_1-1614895283621.png

    jinivthakkar_2-1614895328764.png

    jinivthakkar_3-1614895353927.png

    length(outputs('Get_items_2')?['body/value']) /*Compose formula*/

     

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • jinivthakkar Profile Picture
    4,187 on at

    @Ben-00-38 Logic explained:

    1. Get items from list 1

    2. Iterate through each item in apply to each loop 

    2.1 Get items from list 2 with filter query Title eq 'current item'

    2.2 Compose to check the length of results, if record found(e.g 4,5,6) then value will be 1 else 0

    2.3 Check if length condition, if 1 

    2.4 Update item in list 2

     

    Make sure you have unique results, if the Get items 2 will return more than 1 result then this will fail.

    Hope this helps.

     

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Ben-00-38 Profile Picture
    176 on at

     

    I must have made a mistake in flow can you verified my flow

    detail

     

    z1.pngz2.pngz3.pngz4.pngz5.pngz6.png

  • jinivthakkar Profile Picture
    4,187 on at

    @Ben-00-38 what is the error ?

  • Ben-00-38 Profile Picture
    176 on at

    the flow is running but I don't have ATC.displayname and Chefvente.displayname arriving in list 2
    I must have made a mistake in the feed.

     

    I checked your feed.
    I think my error comes from this line: in red


    can you explain me this code.

    thanks

    tt.png

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard