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

Update list1 with info from list 2 using flow

Hi,

 

 

i've got a list (list 2) with info about cliënts. If a specific field in list 2 is set 'true' i want to copy some of the fields of list 2 to another list (list 1)

 

I managed (not an experienced flow user) to let the first steps work, but the last step, update list 1, won't work. Perhaps i'm missing a stip, or am i on a complete wrong track. Does anyone has suggestions?

 

Thanks in advance,

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Update list1 with info from list 2 using flow

Hi @henkprins,

 

Thanks for providing the detailed flow configuration.

It seems that there are two conditions in the flow to check if the two fields in the list are True or False.

I assume that you could use an and function to combine both the two conditions into one.

I have made the following flow for your reference.

Add a trigger button.

Get items from list11. There are two Boolean column named as Status and Status2 in the list.

Add a Condition to check if the Status equals to false and Status2 equals to true with the following code:

@and(equals(items('Apply_to_each')?['Status'], bool('false')),equals(items('Apply_to_each')?['Status2'],bool('true')))

Under if yes branch, add action Get items 2 to get items from list 22.

Add Condition2 to check if they have the same Title to filter out the one that needs to be updated. Select dynamic content Title from Get item and Get items 2.

Under if yes branch, add action Update item to update corresponding item. Note, select dynamic content ID from Get items 2 (list22) for the Id field, other fields with dynamic contents from Get items (list11).

Images for your reference.

 1.PNG2.PNG3.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 list1 with info from list 2 using flow

Hi @henkprins,

 

Thanks for providing the detailed flow configuration.

It seems that there are two conditions in the flow to check if the two fields in the list are True or False.

I assume that you could use an and function to combine both the two conditions into one.

I have made the following flow for your reference.

Add a trigger button.

Get items from list11. There are two Boolean column named as Status and Status2 in the list.

Add a Condition to check if the Status equals to false and Status2 equals to true with the following code:

@and(equals(items('Apply_to_each')?['Status'], bool('false')),equals(items('Apply_to_each')?['Status2'],bool('true')))

Under if yes branch, add action Get items 2 to get items from list 22.

Add Condition2 to check if they have the same Title to filter out the one that needs to be updated. Select dynamic content Title from Get item and Get items 2.

Under if yes branch, add action Update item to update corresponding item. Note, select dynamic content ID from Get items 2 (list22) for the Id field, other fields with dynamic contents from Get items (list11).

Images for your reference.

 1.PNG2.PNG3.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

henkprins
Level: Powered On

Re: Update list1 with info from list 2 using flow

Hi Mabel,

 

thnx for your support. Took a lot of time because of some stupid mistakes i made, but in the end i managed to get the flow working. Thanks again!

 

Henk.

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 (Last 30 Days)
Users online (4,997)