cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DeeDor
Helper II
Helper II

DisplayName - Is it possible to edit ?

I have a customer who use the format for their DisplayName as Surname,Firstname but I would like to be able to show the DisplayName in Powerapps and Flow as Firstname,Surname. 

Is it possible ? 

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@DeeDor 

You cannot switch the way the DisplayName is coming in, but you have options.

You didn't mention if you are getting the DisplayName from a SharePoint person column or from an Office 365 profile.

If you are getting from an Office 365 profile, then you can use:

   Office365Users.MyProfileV2().givenName & " " & Office365Users.MyProfileV2().surname

 

If you are getting the information from a SharePoint column, then you can use (again you'll need the Office365User connector):

   Office365Users.UserProfileV2(yourSharePointColumn.Email).givenName & " " & Office365Users.UserProfileV2(yourSharePointColumn.Email).surname

 

I hope this is helpful for you.  If you have more specifics on where you are getting displayName and need more help, just post back.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

3 REPLIES 3
RandyHayes
Super User
Super User

@DeeDor 

You cannot switch the way the DisplayName is coming in, but you have options.

You didn't mention if you are getting the DisplayName from a SharePoint person column or from an Office 365 profile.

If you are getting from an Office 365 profile, then you can use:

   Office365Users.MyProfileV2().givenName & " " & Office365Users.MyProfileV2().surname

 

If you are getting the information from a SharePoint column, then you can use (again you'll need the Office365User connector):

   Office365Users.UserProfileV2(yourSharePointColumn.Email).givenName & " " & Office365Users.UserProfileV2(yourSharePointColumn.Email).surname

 

I hope this is helpful for you.  If you have more specifics on where you are getting displayName and need more help, just post back.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Hi @RandyHayes , Im getting the information from a person field in a sharepoint list but I can easily add the User connector. Ill try your suggestion out. Thanks so much !

@RandyHayes  Worked perfectly !! Thanks so much ! 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,613)