Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
in Power Apps by 8 8 13

In the PowerApps canvas app, I connect to the SharePoint list that contains a person column and I want to display the current user in the combo box of this person column. I try to write the User().fullName but was not successful. So How can I perform set the default value for a person or group column in SharePoint Online using PowerApps?

1 Answer

1 like 0 dislike
by 48 54 93
selected by
Best answer

Your formula is not correct because the Person column in SharePoint accepts a record of user information and you give it a string "the user full Name" so you have to set the defalutselecteditems to be a record of the current user "user information that you need and claims".

So please use the bellow formula in the defalutselecteditems property of your person control in PowerApps

    DisplayName: User().FullName,
    Claims: "i:0#.f|membership|" & Office365Users.MyProfile().UserPrincipalName

For more details about the claims and person column, see this example Set Combo Box Default to Current User and Save in SharePoint List Person column

by 8 8 13
0 0
Thank you, it solve  my issue
If you don’t ask, the answer is always NO!