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
Responsive Resident
Responsive Resident

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
Responsive Resident
Responsive Resident

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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,114)