cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ifti
Level: Powered On

Have the option to retrieve first and last name of a user via User()

Can we have the ability to select a user's first and last name instead of gettng full name?

 

I need this for the form that I use in SharePoint which can get the data and fill it automatically but not via the app.

 

The app can only get the logged in user's full user name via User().FullName. Options like "First name", "Last name" etc. would be awesome to have. 

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Power Apps Staff sarafankit
Power Apps Staff

Re: Have the option to retrieve first and last name of a user via User()

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

 

Office365Users.MyProfile().GivenName

Office365Users.MyProfile().Surname

View solution in original post

2 REPLIES 2
Power Apps Staff sarafankit
Power Apps Staff

Re: Have the option to retrieve first and last name of a user via User()

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

 

Office365Users.MyProfile().GivenName

Office365Users.MyProfile().Surname

View solution in original post

Highlighted
ifti
Level: Powered On

Re: Have the option to retrieve first and last name of a user via User()

You're a champ and you know it!

 

Thanks heaps 🙂

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,277)