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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send an email to the P...
Power Automate
Unanswered

Send an email to the PERSON column

(0) ShareShare
ReportReport
Posted on by

Hi,

 

So I have a Sharepoint List and it it is a 'PERSON' column that can be used to select the name of someone in our organisation.

 

I also have a flow which checks the date in the list and sends an email to the person who submitted the form. That part works ok.

However I'd like to also CC in the person named in the 'PERSON' column, but I get an error when just dropping this name into the 'SEND AN EMAIL V2' cc box.

 

Can anyone advise on thecorrect way to do this?

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Hi Barking_Mad1, 

     

    If I get your question correctly referencing the Email property of that column will do the trick. 

     

    In my setup I have a table with trainings where the column "Trainer" is a "person or group" type. The structure looks like below. 

    PetarHr_5-1676987285378.png

     

    So, to use it in E-mail CC field you can: 

     

    1. Scenario - you want only the first user in the Person field - you nest everything in 1 Apply to each and use the first() method

     

    PetarHr_1-1676984673184.png

     

    Value in "Apply to each" is:

     

    outputs('Get_items')?['body/value']

     

    Value in "Send e-mail" CC is:

     

    first(item()?['Trainer'])?['Email']

     

     

    2. Scenario - you want to send e-mail to all the users in the person column, CC-ed in a single e-mail. 

     

    Using Select to extract the e-mails as below: 

    PetarHr_3-1676987064669.png

     

    Select From: 

     

    items('Apply_to_each')?['Trainer']

     

    Select Map:

     

    item()?['Email']

     

     

    CC field:

     

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

     

     

    Hope this helps!

     

    If I was able to answer your question, please consider marking it with "Accept solution" so other platform users can benefit from it. Thanks! 

  • Barking_Mad1 Profile Picture
    on at

    Thanks for the reply, appreciated. I should have mentioned the email sits at the end of a single condition, not that it should make much difference. Anyhow...

     

    Im having an issues getting: 

    outputs('Get_items')?['body/value']


    to display properly, see below. 

     

    Barking_Mad1_1-1676989461869.png

     

    Am I doing something wrong? The Flow Checker returns:

    Correct to include a valid reference to 'Get_Items' for the input parameter(s) of action 'Apply_to_each'.

  • Community Power Platform Member Profile Picture
    on at

    Hi again,

     

    You are on the right track.

     

    In my code I have a "List items" connector named "Get Items" and that's what I'm referencing in outputs(). Try switching the name to the one used in your flow. (it should be the connector where you fetch the rows from the Share Point list.)

     

    The above error - "Correct to include a valid reference to..." is usually when you write a code that references something that doesn't exist in your flow. 

     

    P.S. Here is the complete flow setup. Outputs('Get_items') references the list that is returned on the second step. 

     

    PetarHr_1-1676993086667.png

     

  • Barking_Mad1 Profile Picture
    on at

    Ok, so I have:

    Barking_Mad1_0-1676993994863.png

    Barking_Mad1_1-1676994065584.png


    I didn't type: 

     

    outputs('Get_items')?['body/value']

    because 'Value' (List of Items) appeared in the dynamic content. And when I do type it, it still appears as an Output...

    Barking_Mad1_2-1676994297768.png

     

    Thanks for the help....



  • Community Power Platform Member Profile Picture
    on at

    Using the dynamic select is fine. 

     

    Can you just hover on the "value" icon to confirm that it's indeed from "Get Items" connector? 

     

    From what I see we have identical setup, so it's strange that it works only on mine. : / 

     

    One trick that I use to get the proper "value" reference is to have a blank "Send e-mail" connector & select in the CC field directly a property from the dynamic selector. This is the way I got the setup I showed.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard