0

My problem is that my Azure Active Directory show DisplayName attribute as First name + Last name.

My goal in Power Apps in Label text, show User().DisplayName as Last name + First name.

If i use Concatenante and Split formula:

Concatenate(Last(Split(User().DisplayName, " ")), ", ", First(Split(User().DisplayName, " ")))

I got this error:

Invalid argument type (Record). Expecting Text value instead.

Thank you for any advice

1 Answer 1

1

Set Text property of label control to:

Last(Split(User().FullName, " ")).Value & " " & First(Split(User().FullName, " ")).Value

Output:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.