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

Compare ID's columns from two list and update field

I have two list:

 

list A 

Title     UserName   RequestId   Status

Test1    Radhe        1                  Deactivated

Test1    Radhe        4                  Activated

Test1    Radhe        456              N/D

 

list B    

Title     RequestBy   ID

Test1   Something   2

Test1   Something   456

Test1   Something   4

 

I want to compare RequestId column (List A) with the ID column (List B), If match, i want to update the Status column in (List A) via Flow. 

 

Thought??

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Compare ID's columns from two list and update field

Hi @ispimentelz 

 

First get all items from List A

Then for each item in list A (for loop)

Use Get Items within for loop and fire odataquery to fetch items from list B where ID = requestD

Check the count (length) of items returned

If count > 1 means item exists - run update item action and update status of List A item

 

Regards,

Reza Dorrani

 

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

1 REPLY 1
Dual Super User
Dual Super User

Re: Compare ID's columns from two list and update field

Hi @ispimentelz 

 

First get all items from List A

Then for each item in list A (for loop)

Use Get Items within for loop and fire odataquery to fetch items from list B where ID = requestD

Check the count (length) of items returned

If count > 1 means item exists - run update item action and update status of List A item

 

Regards,

Reza Dorrani

 

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

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,361)