cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Brice235i
Level 8

Extract Given Name and Surname from selected user in combo box

This post: https://powerusers.microsoft.com/t5/forums/replypage/board-id/PowerAppsForum1/message-id/40826

really helpful, however, the values are for the current user only.  For the app I'm building, the user has the ability to submit the form on behalf of someone else, so they can overwrite the 'Submitted By' and 'Line Leader' field.

 

I can't seem to work out how to extract the given name and surname for the particular user that is selected in the combo field. I tried the datacardvalue name but couldn't get it working. For the associated flow, it seems I can only select the Display name (surname, firstname) rather then given name surname. Unfortunately the users are not satisfied with DisplayName.

 

Any ideas, much appreciated.  

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Extract Given Name and Surname from selected user in combo box

Hi Brice,

 

It sounds like you are trying to parse a field.  There is a good tutorial on this and how to use the text functions Left(), Mid() and Right(). https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-left-mid-right.  Also see the Split() function

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-split. I hope that helps get you started.

2 REPLIES 2
Super User
Super User

Re: Extract Given Name and Surname from selected user in combo box

Hi Brice,

 

It sounds like you are trying to parse a field.  There is a good tutorial on this and how to use the text functions Left(), Mid() and Right(). https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-left-mid-right.  Also see the Split() function

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-split. I hope that helps get you started.

Brice235i
Level 8

Re: Extract Given Name and Surname from selected user in combo box

Thank you kindly!

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

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

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 240 members 5,052 guests
Please welcome our newest community members: