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 / Retrieve displayName f...
Power Automate
Answered

Retrieve displayName from external mail sender

(0) ShareShare
ReportReport
Posted on by 3
My flow triggers when a mail is sent to a shared mailbox and sends a reply.

In the Reply i want to address the sender with "Dear Mr/Mrs {displayName}".

The problem is that displayName returns empty even though i made sure my testmail has a displayName.

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,891 Most Valuable Professional on at
     
    Have you double checked the outputs of your trigger action? Afaik it only returns the From field, which only contains the email address.
     
    That displayName is coming from either your contacts or your organization directory. In that case you might be able to to use the get user profile (v2) action or the Get contacts (v2) action to retrieve this displayName instead.
     
     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
  • Verified answer
    Ellis Karim Profile Picture
    12,163 Super User 2026 Season 1 on at
    Duplicate Post: Retrieve displayName from external mail sender
       
    I think you need to use an additional action to get the Sender's name, as I didn't find the Sender's name exposed by the "When a new email arrives in a shared mailabox (V2)" action.
     
    I used the Outlook Send an HTTP Request to get the Senders name, as shown below:
     

    https://graph.microsoft.com/v1.0/users/<shared-mailbox-email-address>/messages/<message-Id>?$select=from
     
    body('Send_an_HTTP_request')?['From']?['emailAddress']?['name']
     
    Here is my runtime output:

     
     
    Ellis Karim
    Ellis Karim

    elliskarim.com  |  LinkedIn  |  Bluesky
     
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like


     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard