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

Compare column values/match from two list and update and ID field

Hi,

I've tried many iterations and can't quite get this to work.  I'll keep the premise simple:

 

I have 2 lists.  List-A is a staff list with roles (pulled from azure), but no unique ID field.  List-B is a district list with roles and unique ID.  I would like a scenario that does the following:  If the 'Job' column from List-A matches the 'Job' Column from List-B, populate the the unique 'ID' from List-B into List-A.  

 

mcinnisbr_2-1662730168955.png

 

 

Thanks you for any help.

  

1 ACCEPTED SOLUTION

Accepted Solutions
Caspar_Rubin
Solution Supplier
Solution Supplier

Hey,

 

the following should work:

 

Caspar_Rubin_0-1662762857109.png

 

1. Get items of list B

 

2. Get items of list A with Filter Query job eq 'items('Apply_to_each_-_list_B_item')?['job']'

 

3. Update item in list A with the id-list-b dynamic value

 

Result:

 

Caspar_Rubin_1-1662762965522.png

 

 

View solution in original post

2 REPLIES 2
Caspar_Rubin
Solution Supplier
Solution Supplier

Hey,

 

the following should work:

 

Caspar_Rubin_0-1662762857109.png

 

1. Get items of list B

 

2. Get items of list A with Filter Query job eq 'items('Apply_to_each_-_list_B_item')?['job']'

 

3. Update item in list A with the id-list-b dynamic value

 

Result:

 

Caspar_Rubin_1-1662762965522.png

 

 

@Caspar_Rubin  BTW, thank you!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (6,232)