I have read a new of posts and I'm struggling with something...
Like many other suggestions I'm declaring a varUser on app start to = User()
I have a combo box labeled "CmbRequestor"
selectMultiple: false
isSearchable: true
items: Office365Users.SearchUser({searchTerm: CmbRequestor.SearchText})
defaultSelectedItems: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: Concatenate(
"i:0#.f|membership|",
Lower(varUser.Email)
),
Department: "",
DisplayName: varUser.FullName,
Email: varUser.Email,
JobTitle: "",
Picture: ""
}
The form will display the users display name in the combobox. Brilliant....
I give them the capability to change it if they want and if they do change it - it will work.
BUT if they submit it without changing it (showing the default value) it fails and here's why....the Requestor in the patch statement is expecting my values to all be stored in the comboBox variable...that variable as mentioned above is called CmbRequestor.
Patch(
'Ticket Request',
Defaults('Ticket Request'),
{Title: "Request"},
{
Requestor: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: Concatenate("i:0#.f|membership|",Lower(CmbRequestor.Selected.Mail)),
Department: "",
DisplayName: CmbRequestor.Selected.DisplayName,
Email: CmbRequestor.Selected.Mail,
JobTitle: "",
Picture: ""
}
} etc...
But it doesn't recognize the CmbRequestor to have a mail value... ONLY a displayname. So what's happening is because I don't search it absolutely requires my defaultSelectedItems to be correct...why is it not recognizing the email address??? Below you can see the DisplayName populated... but the Email is not showing up???
Not the value of the ExecutiveVP below is what it should look like for claims and email. So I think I know what I'm doing but something is not registering for me here why that default isn't sufficient to be stored under the defaultSelectedItems.

As a bonus for those smart people: why is it that I have to populate the default value in the defaultSelectedItems and not simply Default? Multiple is set to false.