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
Super User
Super User

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

Ethan_R
Super User
Super User

Hi @bbsin ,

You can try this in a Label

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

 

Hope this helped.

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)

bbsin
Post Prodigy
Post Prodigy

Hi 

 

Thank you 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,603)