
Announcements
Hello everyone,
I'm doing a like counter in Powerapps, but I don't know how to add my user to the people picker in the form when I press the icon.
I'm trying it by doing the following, but it does not work:
UpdateContext({DataCardValue7:User()})
The idea is add my user to the combobox (people picker), in order to add one people likeing the post.
Any help will be apreciated, many thanks.
Hi @marinadengra9,
Wouldn't the 'Created By' field (assuming you store your data in SharePoint) be sufficient? Or is there a specific reason you use a dedicated Person field? If yes, then you can use this:
NameOfPersonColumn:
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
DisplayName: varUser.Name,
Email: varUser.Email,
Claims: varUser.Email,
Department: "",
JobTitle: "",
Picture: ""
}