cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
wnguyen23
Helper III
Helper III

Update SharePoint Item - Loop

Hi,

 

I'm having an issue with the 'Update Item' SharePoint function.  I am getting items from 1 list and trying to update it on a 2nd list.

So let's say I have Compose - Item 1 with array items ['apple', 'orange', 'peach'].  Then in the SharePoint list I'll have 3 rows that I want to update with Compose - Item 1.  It'll end up looping twice and result with ['peach, 'peach', 'peach'] for each row.  The Apply to each 2 is created automatically when I select the SharePoint items, so is there a way to end a loop or any other solutions?

 

Thank you1.PNG2.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi @wnguyen23 ,

 

Could you share more details on your scenario?

 

Do you want to update specific items in the 2nd list with Compose – item1 output?

 

Do the two lists have any common value? Such as same Title, or a specific ID.

 

The loop is caused by action Update item. As you don’t have any conditions to tell the flow to update a specific item with corresponding value, then each row will be updated with value from action Get items, until the last one finished.

 

You need to add certain conditions in the flow to update one item with corresponding value.

 

I have figured out a simple flow likes below for your reference.

1.PNG

 

Best regards,

Mabel          

 

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

View solution in original post

2 REPLIES 2
v-yamao-msft
Community Support
Community Support

Hi @wnguyen23 ,

 

Could you share more details on your scenario?

 

Do you want to update specific items in the 2nd list with Compose – item1 output?

 

Do the two lists have any common value? Such as same Title, or a specific ID.

 

The loop is caused by action Update item. As you don’t have any conditions to tell the flow to update a specific item with corresponding value, then each row will be updated with value from action Get items, until the last one finished.

 

You need to add certain conditions in the flow to update one item with corresponding value.

 

I have figured out a simple flow likes below for your reference.

1.PNG

 

Best regards,

Mabel          

 

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

View solution in original post

Thanks for the help, your suggestion was exactly what was missing!

@v-yamao-msft 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (3,592)