Hi,
I have a problem with DefaultSelectedItems in a combo box.
I have a combo box with items of type "person" coming from a Sharepoint list which I put into a collection:
ClearCollect(
colBusinessPartners,
Filter(
'Application roles',
Applicationname.Value = "HR Approval" And Role.Value = "Business Partner"
)
)
In the combo box I want to set the default selected item to the current user.
In the OnStart event of the app, I set the following variable:
Set(
varCurrentUser,
Office365Users.MyProfile()
);
In the DefaultSelectedItems I've tried the following code:
LookUp(colBusinessPartners, DisplayName = varCurrentUser.DisplayName)
Also tried this one, but both without success:
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
DisplayName: varCurrentUser.DisplayName,
Claims: "i:0#.f|membership|" & varCurrentUser.Mail
}
Any idea?