Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Sharepoint List - Auto populate Lookup column (VLOOKUP between 2 SP Lists) based on another column (using Power Automate)

Hi All,

I am trying to auto populate a lookup column in a sharepoint list from another sharepoint list based on a column.

Basically a VLOOKUP.

I am not that good with PowerAutomate and have been banking my head trying to solve this problem.

I am hoping you guys will be able to help.


When an item is created or modified, trigger flow.

For all items created or modified, Perform a lookup for' Brand Name' in 'LostPackagesDB' list and return the 'Retailer' field matching the 'Sender' field in the 'LP_SenderLookup' list.


Below is what I have done till now. But something is wrong in this flow/logic.



Use Trigger when Item is created or modified.

Then get items from the master list 'LostPackagesDB'.

Then use a For Each loop and get items from the lookup list 'LP_SenderLookup' with filter query to get only the matching record.

Then store the matched Retailer value in the compose activity.

Then check if the compose activity is not empty and the 'Retailer' column in the master list is empty.

Then update the current item's 'Retailer Field with the value stored in 'Compose' activity.



1. The Apply to Each parameter for 'Apply to Each' activity is incorrect as it is running for all the items in the list rather than just the ones created or modified and applying the matched value to all records of the master list. Is there a way we can limit the apply to each activity to only the items created/modified?

2. The flow is running in an infinite loop because I am guessing the it is iterating through all the items on the master list and each item is being modified.

3. I have a value in 'Brand Name' column of the master list that has an " ' " in it's name (e.g. Victoria's Secret). This is causing the query to fail. The flow says Unable to Build query only for this value. For other values, it works, but goes into an infinity loop as mentioned above.


I would be grateful if you guys could help me out on this.






Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,826)