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 / Getting the item Displ...
Power Automate
Unanswered

Getting the item DisplayName for email body

(0) ShareShare
ReportReport
Posted on by 351

I cannot work out the correct syntax for using the display name of an item in a person column. I am sending emails following an Apply to Each and the following works in the To field: items('Apply_to_each')?['AssignedToEmail']

 

However in the body of the email I cannot get the display name of the recipient (eg. Hi John,) to show and have tried all of these different combinations:

 

items('Apply_to_each')?['AssignedTo/DisplayName']

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

items('Apply_to_each')?['AssignedTo/Name']

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

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

 

What is the correct way to do this?

 

Categories:
I have the same question (0)
  • v-LilyW-msft Profile Picture
    on at

    Hi @Power_Automater 

    Has your problem been solved?

    I tested on my side. Can directly select the DisplayName from the dynamic content.

    vLilyWmsft_1-1644197301057.png

    Does the person column allow single selection or multiple selection in your list?

     

    Hope the content above may help you.

    Best Regards

    If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • Power_Automater Profile Picture
    351 on at

    Hi @v-LilyW-msft ,

    I cannot unfortunately use the display name from Get Items since I have a few other actions after this before sending the email. After Get Items I use an Apply to Each which sends the email, I have included this below. The issue I have is trying to get the display name from the Select action, or perhaps from the Filter Array would be enough?

    The following works in the email To field but I cannot work out the correct syntax for that person's display name: items('Apply_to_each')?['AssignedToEmail']

     

    Power_Automater_0-1644197871806.png

     

  • Verified answer
    v-LilyW-msft Profile Picture
    on at

    Hi @Power_Automater 

    Please take a try with the expression:

    body('Filter_array_2')?[0]?['AssignedTo/DisplayName']
     

    Hope the content above may help you.

    Best Regards

    If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard