cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
wnguyen23
Level: Powered On

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

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

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
Level: Powered On

Re: Update SharePoint Item - Loop

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

@v-yamao-msft 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 131 members 5,388 guests
Please welcome our newest community members: