PowerApps: Preset user field with current user

Bildschirmfoto 2022 01 07 um 10.59.33
Contents

    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)

    Updated on 28. March 2024
    Was this article helpful?

    Leave a Reply

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