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

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 II
Dual Super User II

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 II
Dual Super User II

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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (13,034)