
I am unable to retrieve the current user login in the people picker field in the Canvas apps SharePoint data source list people picker field.I have also added the office365 users data source connection but unable to populate the users.
@Veblitz
Use this code in the OnStart property of the app
Office365Users.UserProfileV2(User().Email)
Put this code in the DefaultSelectedItems property of the Combo Box.
If(
Form1.Mode=FormMode.View,
ThisItem.YourColumnName
{
DisplayName: varUser.DisplayName,
Claims: "i:0#.f|membership|" & varUser.Email,
Department: "",
Email: varUser.Email,
JobTitle: "",
Picture: ""
}
)
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."