microsoft-teams-apps-requestateam icon indicating copy to clipboard operation
microsoft-teams-apps-requestateam copied to clipboard

cmbOwners - DefaultSelectedItems property setting Claim

Open SPB21 opened this issue 4 years ago • 1 comments

@alexc-MSFT, we had an issue where a user was selected as an owner but we got an error message: image

After some investigations it turned the user in question didnt have an exchange license. Looking further into the code i noticed that the defaultselecteditems property on cmbOwners uses the concatenation function when setting the 'Claims' value. Is there a reason for doing this? I have updated our code to use: cmbOwners_1.Selected.Claims

}),Table({
        '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
        Claims:cmbOwners_1.Selected.Claims,
        Department:cmbOwners_1.Selected.Department,
        DisplayName:cmbOwners_1.Selected.DisplayName,
        Email:cmbOwners_1.Selected.Email,
        JobTitle:cmbOwners_1.Selected.JobTitle,
        Picture:""
}))

SPB21 avatar Nov 06 '20 08:11 SPB21

@SPB21 Good question, I don't think it should be using that function. I'm going to add this onto our roadmap to get this fixed.

alexc-MSFT avatar Dec 18 '20 11:12 alexc-MSFT