cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jay312
Helper V
Helper V

Look up one value in another list and enter it in another field

 
7 REPLIES 7
RaashiSen
Community Support
Community Support

Hello @jay312 ,

 

Below Flow design should be able to help you with achieving your ask-

Flow.jpg

Taking your example, lets say, Trigger is on when an item is created in List 1

Item details-
email= abc@def.com
city = null

 

Now, in list 2, we already have an item with email as 'abc@def.com' and has city as 'ABC'

 

We will use 'Get Items' to pull all the items that are in List 2, for us to perform the comparison-
floww.jpg

Now, we need the Condition-

The condition has to be as follows-

If- 'Email' of List 2 is equal to 'Email' of List 1, and
'City' of List 1 is equal to 'null' -- the second condition, is to avoid the run to update the city, if in case you have created item in List1 with city name already. This will help us choose only those records, where city is empty, and email matches in both lists.

Flow.jpg

You can find these when you choose Dynamic Content, there they have headers mentioned in Grey, from which action are they pulling the value-
Flow.jpg

Now, under 'If yes', we need to update the item of List 1(newly created), so we will choose all dynamic content for List 1, like 'ID',and 'Email', but for City, we will choose value 'City' from List 2, which we got as matching from the 'Get items' comparison-

floww.jpg

 

Please test and let me know if that works for you, or if you have any confusion with steps mentioned above

 
RaashiSen
Community Support
Community Support

@jay312 , this is expected - since it will check all the possible items in list, there will be only one instance where the condition will be true, and it will update the City, while others will be a false condition and it will fail the check inside the run.

The concern should arise, if there is an item that should get updated, and this Flow is not updating it.

 

Let me know if this helps.

 

Thanks!
Raashi Sen

 

 

 

Hi @jay312 ,

 

You should check the expression empty(expression of city) with true.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (43,290)