@tpcolson Sorry about that. In my tenant the display name returns as First Name and Last Name.
If your display name dynamic content is returning as LastName, FirstName you need to use an expression to output the content as FirstName LastName.
In my demo, I'm using a Compose action to store a string: LastName, FirstName.
In another Compose action, I've used this expression:
concat(split(outputs('Compose_-_Lastname,_Firstname'), ', ')[1], ' ', split(outputs('Compose_-_Lastname,_Firstname'), ', ')[0])
In the expressions, I've used the split() function to break a string into parts based on a specified delimiter. In this case, I've used it to split the input string into two parts - the last name and the first name. The delimiter I've used a comma and space ", ".
The split() function returns the string as an array. Array items can be accessed with an index. The first item of an array is [0], second is [1] and so on. In this case, the [0] will return the last name and a [1] will return the first name.
The concat() function combines the multiple strings together. In this expression, I've used it to combine the first name and the last name into a single string.
concat(split([insert your display name dynamic content here], ', ')[1], ' ', split([insert your display name dynamic content here], ', ')[0])
Run a test.
Hope this helps!
If I helped you solve your problem—please mark my post as a solution
✅.
Consider giving me a
👍 if you liked my response!
👉 Level up your Power Automate skills by checking out my tutorials on
YouTube👉 Tips and Tricks on
TikTok and
Instagram