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 / Get Email from User's ...
Power Automate
Unanswered

Get Email from User's Display name in a Table

(0) ShareShare
ReportReport
Posted on by 74

Hi all,

Let's say i'm having a below table with some users have some common email, please show me how to get the their specific common email & put into CC on Office 365 Outlook - Action sending email.

table.png

 

Thanks in advance, any comments will be so much appreciated

Categories:
  • efialttes Profile Picture
    14,756 on at

    Hi!

    In the example you shared, what is the expected result?

    A single email sent to Test1@gmail.com, Test2@gmail.com, Test3@gmail.com ?

    Where do you have your excel stored? Sharepoit? OneDrive4Business? OneDrive? other?

     

    Assuming Sharepoint, I would add 'List rows present in a table' from 'Excel Online (Business)' connector to read your table rows

    THen, I would add a 'Select' action block and use the following technique to build an array with all emails represented in 'Team' column

    https://powerusers.microsoft.com/t5/Building-Flows/Create-a-variable-that-extracts-an-email-address-from-List-group/m-p/578601#M75839

    Next, I would add a 'Compose' action block, assign as its input the following expression

     

    union(body('Select'),body('Select'))

     

    Finally, I would assign the following WDL expression as the 'To' input in your 'Send an email'

     

    join(union(body('Select'),body('Select')),';')

     

    Hope this helps

  • AnPhamEFL Profile Picture
    74 on at

    Hi, 

     

    I'm using Get user profile (V2) to get the Display Name of the request for Approval, so if:

    • the Display Name is 1, i'm expect to have Test1@gmail.com as the result
    • the Display Name is 3, i'm expect to have Test3@gmail.com as the result
    • the Display Name is 4, i'm expect to have Test1@gmail.com as the result

    1 & 4 are sharing same common email

  • AnPhamEFL Profile Picture
    74 on at

    Hi,

    I have my excel stored in my Onedriveforbusiness, can you review my flow & advise if i'm do it right.

    I'm not getting this part, can you clarify more, i'm so new to this please understand 😰


    @efialttes wrote:

    Next, I would add a 'Compose' action block, assign as its input the following expression

     

     

    union(body('Select'),body('Select'))

     

     

    Finally, I would assign the following WDL expression as the 'To' input in your 'Send an email'

     

     

    join(union(body('Select'),body('Select')),';')

     

     

    Hope this helps



    Screenshot_1.png

  • efialttes Profile Picture
    14,756 on at

    Hi!

    Both 'OneDriveforBusiness and Sharepoint need the same connector, so we are on the good way!

     

    As per the link I shared previously, there are two approaches to produce an array whose elements are a list of email addresses.

    First one is by means of an 'Apply to each' and a variable

    Second one is by means of a 'Select' but you need to switch to text mode, as explained in the link

     

    THe problem is, your current flow implements a mix of both. So please decide which one you wanna implement, and try it. But if you mix both, I am afraid you will not succeed

     

    Note the union() based expression I recommended in my previous post was defined assuming you implement the Select based approach. IF you opt for the 'Apply to each' + veraibel approach, you also need it, but will have to adapt it accordingly.

    If you are not familiar with expressions, please follow these steps to add them:

    https://flow.microsoft.com/es-es/blog/use-expressions-in-actions/

     

    Please let us know you progress!

    Thanx!

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 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard