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 / Power Automate Action ...
Power Automate
Answered

Power Automate Action to Extract First Name from Parenthesis in User Display Name

(0) ShareShare
ReportReport
Posted on by 95

I have a Power Automate Flow that sends reminder emails to users when a deadline is approaching. Right now, the name in the email body appears as "Wilson, C (Courtney)". How can I parse this out so that I can extract the first name and last name from the display name? I am running this flow on a recurrence, that runs every day and gets all items in a list that match certain criteria.

See screen shots attached. Thank you!

 

EmailExample.png

EmailExample2.png

EmailExample3.png

Categories:
I have the same question (0)
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @cjwilson80  Use split() function.  

    First Name- Last(split("Wilson, C (Courtney)"),', ')

    Last Name- First(split("Wilson, C (Courtney)"),',')

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • cjwilson80 Profile Picture
    95 on at

    @Hardesh15  Do I put this in a compose action, or a set variable? 

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @cjwilson80  Pls use compose action.

    Hardesh15_0-1656572201478.png

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

     

  • VictorIvanidze Profile Picture
    13,079 on at

    It doesn't matter.

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @VictorIvanidze  Pls avoid such comment.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • VictorIvanidze Profile Picture
    13,079 on at

    @Hardesh15, why? Do you believe that using the Compose action is better than using the "Set variable"?

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @VictorIvanidze Please avoid such discussion. Pls give complete solution if possible. Also if someone is already responding to thread do not come in between. There are others unanswered threads where your input could help someone.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

     

  • cjwilson80 Profile Picture
    95 on at

    @Hardesh15  THANK YOU SO MUCH!!! This works, however.... now it displays the first name as C (Courtney).  How do I remove the C () and just get Courtney?

     

    cjwilson80_1-1656599952830.png

     

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @cjwilson80  is this applicable to all names? Or only few users have such naming style.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • cjwilson80 Profile Picture
    95 on at

    @Hardesh15  This applies to ALL names in the 'Get Items' action I'm using to pull back Condition Owners from a SharePoint list. So, every user name has a Display Name that is formatted as LastName, First Initial (First Name)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard