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

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
Community Support
Community Support

Re: Update SharePoint Item - Loop

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
Community Support
Community Support

Re: Update SharePoint Item - Loop

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

wnguyen23 Helper II
Helper II

Re: Update SharePoint Item - Loop

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

@v-yamao-msft 

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,805)