cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bbsin
Post Prodigy
Post Prodigy

Show First Name only?

Hi

 

I have a label - User().FullName  ; how to just show First name?

 

is that right?

Trim(Last(FirstN(Split(User().FullName,',"),2)).Result)


Thanks

4 ACCEPTED SOLUTIONS

Accepted Solutions
v-albai-msft
Community Support
Community Support

Hi @bbsin ,

I think you can achieve this using the Office 365 Users connection.

 

 

Office365Users.MyProfile().GivenName

 

 

 

Best regards,

Allen

View solution in original post

Ethan_R
Continued Contributor
Continued Contributor

Hi @bbsin ,

You can try this in a Label

First(Split(User().FullName, " ").Result).Result

 

Hope this helped.

View solution in original post

rob7785
Frequent Visitor

Thanks, used this in combination with am/pm to create a greeting.


If(Text(Now(),"am/pm")= "AM", "Good Morning " & First(Split(User().FullName," ").Result).Result, "Good Afternoon " & First(Split(User().FullName," ").Result).Result)

View solution in original post

bbsin
Post Prodigy
Post Prodigy

Hi 

 

Thank you 

View solution in original post

5 REPLIES 5
v-albai-msft
Community Support
Community Support

Hi @bbsin ,

I think you can achieve this using the Office 365 Users connection.

 

 

Office365Users.MyProfile().GivenName

 

 

 

Best regards,

Allen

View solution in original post

Ethan_R
Continued Contributor
Continued Contributor

Hi @bbsin ,

You can try this in a Label

First(Split(User().FullName, " ").Result).Result

 

Hope this helped.

View solution in original post

Thanks @Ethan_R 

rob7785
Frequent Visitor

Thanks, used this in combination with am/pm to create a greeting.


If(Text(Now(),"am/pm")= "AM", "Good Morning " & First(Split(User().FullName," ").Result).Result, "Good Afternoon " & First(Split(User().FullName," ").Result).Result)

View solution in original post

bbsin
Post Prodigy
Post Prodigy

Hi 

 

Thank you 

View solution in original post

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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,810)