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
PowerApps Staff sarafankit
PowerApps 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

2 REPLIES 2
PowerApps Staff sarafankit
PowerApps 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

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 Smiley Happy

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 49 members 4,115 guests
Please welcome our newest community members: