To preselect a person field in a PowerApp with the current user, proceed as follows:
1. select DataCardValue
Selects the DataCardValue of the person field.
2. insert DefaultSelectedItems code
You can use the following code:
If(EditForm1.Mode = New;{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser";
Claims:Concatenate("i:0#.f|membership|";User().Email);
DisplayName:User().FullName;
Email:User().Email
};
ThisItem.'Erstellt von')
Dieser Beitrag ist auch verfügbar auf:
Deutsch (German)