web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extracting and using a...
Power Automate
Answered

Extracting and using an email address from a look up collumn in a sharepoint list to send an email

(2) ShareShare
ReportReport
Posted on by 16
I have a flow where I am trying to extract an email address from a look up field from a sharepoint list to be used to send an email inside the apply to each action. 
 
When I originally set up and tested this flow, it worked just fine. However, after leaving the flow to operate on its own, it began to fail and continues to fail today.
 
Here is the error I am receiving: 
 
Unable to process template language expressions in action 'Compose_Facilitator_Email' inputs at line '0' and column '0': 'The template language expression 'outputs('Get_items')?['body']['value']?[0]['GroupLookUp_x003a_Facilitator_x01']['Value']' cannot be evaluated because property 'GroupLookUp_x003a_Facilitator_x01' cannot be selected. Please see https://aka.ms/logicexpressions for usage details.'.
 
How do I extract an email address from a look up field from a sharepoint list to use to send an email inside the same flow?
 
Categories:
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,975 Super User 2026 Season 2 on at
    HI
     
    Just as a starting point, unless you have permission to SEND on BEHALF of that email it won't matter if you get it, it won't work.
     
    Now to answer your question, I would need to see the Data.
     
    It appears it believes its an Array, in which case you cannot use it as a selector, so if there is only 1 then use its [0] position as well
     
    if not, then you will need to either parse it into something you can use,
     
    or you can grab the Get items output
    Then use a Parse JSON with it as the Input
     
    then access it via the Parse JSONstructure
     
    If this helped please select as the answer.
     
     
  • _PowerAutomate_ Profile Picture
    16 on at
    Thanks for this, quick question - now that my Parse JSON action is pulling the values for me (I can see them in the outputs of my test and in the dynamic content), how do I go about composing or initializing my look up variables within the following flow considering that doing so auto-creates an apply to each action? The variables include a name (to be included in the body of the email) and an email address (to be added to the Send To field of the email).
     
  • Verified answer
    _PowerAutomate_ Profile Picture
    16 on at
    So I've discovered that there a couple basic flow function solutions for this inside of power automate.
     
    Let's say you are using an automated cloud flow with a trigger like 'When a new item is created or modified' to capture a single item from a list that looks up an email address from another list. The easiest way to get that email address to work from the dynamic content list is as follows:
     
    1. Under the 'When an item is created or modified' trigger, add a Get Items action that is pointing at the base list (not the look up list, as that's unnecessary here)
    2. Add an Initialize Variable action anywhere at the top of the flow under Get Items
        a. Inside this action, add a Name like "Look Up Email Address", set the type to String and leave the Value field blank
    3. Add an Append to String action just below this
        a. Inside the Append to String action, find and select Look Up Email Address in the Name drop down list
        b. And in the Value fields, open the dynamic content and under the trigger heading in the dynamic content list (in this case it's When a new item is created or modified) find the column pulling in the email address (noting that there will be three column versions: [Column Name], [Column Name] ID and [Column Name] Value. Select [Column Name] Value
    4. Now when you go to use the email address in a following action, you will find it in the dynamic content list - and it will work!
     
    Now, let's say you are using a scheduled cloud flow on multiple items of a list where you are looking up email addresses from a different list. If this is the case, the easiest way to get those email address to work from the dynamic content list is as follows:
     
    1. Under your trigger add a Get Items action that is pointing to the base list (not the look up list, as that's unnecessary here)
    2. Build your flow as you expect to
    3. Inside the Apply to Each action inside this flow, you want to select a Compose action. Inside this action, open the dynamic content list and under the heading Get Items, find the column pulling in the email address (noting that there will be three column versions: [Column Name], [Column Name] ID and [Column Name] Value. Select [Column Name] Value.
    4. Now, the email address can be found in dynamic content item found under this Compose output and when you use it, it will work!
     
    Hopefully this helps all the beginners out there! And to give you a bit of hope, I figured out this solution myself as this is such a basic solution that there is very little content online helping power automate newbies like us to figure this out.
     
    Stick with this guys, you got this!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard