cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Re: PowerApps People picker - Current User

Simpler (newer?) solution to adding default users: 

 

people.png

Highlighted
Advocate II
Advocate II

Re: PowerApps People picker - Current User

This doesn't seem to properly work for me.  It will update the field in powerapps with the users name, but when submitting, it doesn't actually pass the user to the person field in the sharepoint list.  Did it work for you?

Highlighted
Regular Visitor

Re: PowerApps People picker - Current User

Setting the Default and DefaultSelectedItems does not work for me and it does not get saved. I've tried changing the Update property of the data card as well but no luck. Has anything changed?

Highlighted
Skilled Sharer
Skilled Sharer

Re: PowerApps People picker - Current User

not with this new simple method.  Please refer to my older post, but here it is again.

 

on the App Onstart action set the following variables:

Set(gvCurrentUser, Office365Users.MyProfileV2());

Set(gvCurrentManager, Office365Users.ManagerV2(gvCurrentUser.userPrincipalName));

 

for the person field on the DefaultSelectedItems action

 

If(IsBlank(ThisItem.’Applicant’),

{

DisplayName: gvCurrentUser.displayName,

Claims: "i:0#.f|membership|" & gvCurrentUser.userPrincipalName,

Department:gvCurrentUser.department, 

Email:User().Email, 

JobTitle:gvCurrentUser.jobTitle

},

Parent.Default

)

Highlighted
Helper I
Helper I

Re: PowerApps People picker - Current User

where is the OnStart option?  This doesn't seen to exist anywhere in my form.

 

I have looked everywhere in the datacards, fields, etc and No OnStart

Highlighted
Resident Rockstar
Resident Rockstar

Re: PowerApps People picker - Current User

@hyperbob0811 ,

 

Very top of the tree...

 

Pick "App..."  then the OnStart control is there.

 

martinav_0-1603224724531.png

 

 

 

Highlighted
Helper I
Helper I

Re: PowerApps People picker - Current User

@martinav 

 

Thanks I found it after I had posted the question.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (7,207)