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 / How to get user displa...
Power Automate
Unanswered

How to get user display name inside email notification

(0) ShareShare
ReportReport
Posted on by 6

Hi,

 

My flow is about sending email notification when any news post is created or modified.

I would like my email include user name start with : Hi [display name], but the email will send to email DL group which I'm not sure is it the reason why the email could not locate the recipient's name.

 

If I use "Get my profile" and choose "Display name", it would only show my display name. 

If I use "Get user profile", I type in M365 group name or email DL group name, the flow would be fail.

 

What should I do to fix this issue?

 

Thanks!

Categories:
  • VictorIvanidze Profile Picture
    13,083 on at

    What user name do you mean if you are sending email to a DL?

  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @yee0530 

    If you want to include the display name of each user, you'll need to loop through all group members and send them individual emails.

    I believe that listing distribution group members will require a Graph API call or a call to run a PowerShell script which are both premium features.

     

  • VictorIvanidze Profile Picture
    13,083 on at

    Hi @ScottShearer,

    just my  5 cents:

    some GRAPH API functions do not require any premium feature. I believe the topic starter can use a non-premium action from "Office 365 groups" connector.

     

  • annetoal Profile Picture
    1,934 Moderator on at

    You can get display name from Send an HTTP Request. In this example I am getting the mail and the display name from everyone in our users and filtering it on one specific job title.

    annetoal_1-1681826065804.png

     

    Use this code in the URI box

    https://graph.microsoft.com/v1.0/users/?$select=mail,displayName&$filter=jobTitle eq 'xxxx'

    If you don't need to filter the output just delete the "&$filter=...." part of the line.

    Thanks,

    Anne

  • yee0530 Profile Picture
    6 on at

    Thank you for your answer. As I'm using email DL group to send email if there are any Sharepoint news created.

    Do I need to type the email distribution list or anything? I tried but the flow said it is error. 

    The error msg below:
    URI path is not a valid Graph endpoint, path is neither absolute nor relative or resource/object is not supported for this connector. Resources: groups Objects: messages,mailFolders,events,calendar,calendars,outlook,inferenceClassification. Uri: https://graph.microsoft.com/v1.0/users/?$select=mail,displayName

     

    Thank you!

  • yee0530 Profile Picture
    6 on at

    Hi,

    I tried Office 365 group "Get user profile" and "Send HTTP request" but it is still fail.

    The scenerio is:
    When user created/modified news post from Sharepoint->flow will trigged and send email

    Recipients are email distribution list so it will send to several people.
    I want the email content can identify the user's display name and start with "Hi, [display name]"

    Is there a way to identify user's display name when I'm sending the email to email distribution list?

     

    Thanks

  • annetoal Profile Picture
    1,934 Moderator on at

    Could you please post your Flow, including the output of any steps that are failing?

     

  • annetoal Profile Picture
    1,934 Moderator on at

    I'm not sure this method will work for a distribution list.

     

    A

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard