1. Home
  2. Knowledge Base
  3. Microsoft
  4. Power Apps
  5. PowerApps: Preset user field with current user

PowerApps: Preset user field with current user

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)

Was this article helpful?

Related Articles

Submit a Comment

Your email address will not be published. Required fields are marked *

Skip to content