cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DeannaT
New Member

How to Default a People Picker to current user & save to SharePoint List source

Hi,

 

I am trying to create a very simple PowerApp based on a SharePoint list.  This list has a Person field.  When I initially create the PowerApp, if the user types in a person's name and chooses one, it saves fine.  As soon as I try to default the Person field in the PowerApp to "current user" (using any of the User(). syntax options), my PowerApp stops saving back to the SharePoint source list. 

 

Any ideas?

41 REPLIES 41
Lisa_T
Frequent Visitor

Thank you! this is exactly what I needed.

In here what is this SalesPerson_DD (in red text color)?

 

If( Account_Detail_Edit_Display_Long_1.Mode = FormMode.New,
         {
             '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
              Claims:"i:0#.f|membership|" & Lower(User().Email),
              Department:"",
              DisplayName:User().Email,
              Email:User().Email,
              JobTitle:"",
               Picture:""
         }, SalesPerson_DD.Selected)

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,708)