cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
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

Highlighted
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
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (7,501)