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

)

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,609)