cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,171)