web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / People Picker Default ...
Power Apps
Unanswered

People Picker Default with No Change on Edit Form

(0) ShareShare
ReportReport
Posted on by 32
I am trying to set the default of a people picker field to current user. I am able to accomplish this by using the typical code:
 
{  
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",  
DisplayName:User().FullName,  
Claims:"i:0#.f|membership|" & Lower(User().Email),  
Department:"",  
Email:User().Email,  
JobTitle:"",  
Picture:""  
}
 
I want to be able to set the record so that in the event another user edits the form, the initial user who created the entry remains the same and doesn't change to the new user editing the form. 
 
I tried the following in various ways but am getting an error in my 'IF" statement. Any help would be appreciated. Thanks!
 
If(EditForm1.Mode = FormMode.New,
{  
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",  
DisplayName:User().FullName,  
Claims:"i:0#.f|membership|" & Lower(User().Email),  
Department:"",  
Email:User().Email,  
JobTitle:"",  
Picture:""  
},
Parent.Default)
Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @smitht46 ,
    Can you please share the error you are getting.

     

     

  • smitht46 Profile Picture
    32 on at

    Hi @NandiniBhagya20 ,  Thanks for the reply. I am getting an "Expected Record Value" error. 

    smitht46_0-1684438570399.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard