cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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

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

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

Highlighted
Frequent Visitor

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
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

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

Users online (3,942)