PowerApps - defaulting a user field to the currently logged on user

Sometimes, you want to be able to create a PowerApps form which has User Fields which default to the currently logged on user.


You can do this by adding the code below:


If(Text('SCR Basic Details Form'.Mode)="1",{
DisplayName:User().FullName,
Claims:"i:0#.f|membership|" & Lower(User().Email),
Department:"",
Email:User().Email,
JobTitle:"",
Picture:""
},Parent.Default)

.... to the DefaultSelectedItems property of the User Control on your Form, e.g.,



2 views0 comments