
Announcements
Hi,
I can patch single selection, see below but I need to multiple selection and when I update the column in Sharepoint list (allowing multiple selection), powerapps is throwing an error.
QAPresenter: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: SearchPresenter_2.Selected.Mail,
Department: "",
DisplayName: SearchPresenter_2.Selected.DisplayName,
Email: SearchPresenter_2.Selected.Mail, // Person email
JobTitle: "",
Any help is appreciated. Thank you!
Regards,
May
I am assuming that your SearchPresenter_2 is a multi-select combobox and that you want to update your QAPresenter multi-person column with all the values selected in that combobox.
If that is correct, then change your formula to the following:
QAPresenter:
ForAll(SearchPresenter_2.SelectedItems,
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: Mail,
Department: "",
DisplayName: Mail,
Email: Mail,
JobTitle: ".",
Picture: "."
}
)
In order to set a multi-person column, you must supply a table of user-objects. The ForAll returns such a table in the above formula.
I hope this is helpful for you.