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 / Change display name to...
Power Automate
Answered

Change display name to first then last name

(0) ShareShare
ReportReport
Posted on by 105

In my current workflow I have the display name automatically pulled. It has the last name then first name of the person. How can I change it to read first name then last name. I'm assuming i have to use some type of variable

Categories:
I have the same question (0)
  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    You could do something like this:

    DisplayName.png

    These are all compose actions, the expression in final step is:

    concat(outputs('Split_DisplayName_by_Space')[1], ' ', outputs('Split_DisplayName_by_Space')[0])

    The final Output is:

    Peter Parker

  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    I don't know a quick simple way to do what you are describing, but you can do Split() based on a space and then concatenate the Last() and First() array entries from the resulting array to get the reversed display name.

  • Sunshine14 Profile Picture
    11 on at

    Hello,

    I have similar use case except that I am using sharepoint columns to get the display name and it is in the format of lastname, Firstname. When I used this solution, getting the following error message: The template language expression 'concat(outputs('SplitCurrentSupName')[1], '', outputs('SplitCurrentSupName')[0])' cannot be evaluated because array index '1' is outside bounds (0, 0) of array.

    I tried using 

    concat(outputs('SplitCurrentSupName')[2], '', outputs('SplitCurrentSupName')[0]) thinking need index of 2 since there is comma but that doesnt work too.
    I am new to Power automate, please help.

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard