Notifications
Announcements
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
You could do something like this:
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
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.
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
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 525 Super User 2025 Season 2
Tomac 324 Moderator
abm abm 232 Most Valuable Professional