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.
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.
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
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 194 members 4,346 guests
Please welcome our newest community members: