I am currently using a PowerApp newform connected to a SharePoint list. I have a Person Field "Addl_Team" on SP that allows multiple entries.
I can get my multiselect-enabled combobox in my form to create an entry with multiple people, but if I go back into the app and I decide that I need to add another person to these selections, it overwrites my existing multi-selections with just that one new person I picked.
This is the code I have attached to my Update function of my DataCard:
ForAll(DataCardValue15.SelectedItems,
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & DataCardValue15.Selected.Mail,
Department: "",
DisplayName: DataCardValue15.Selected.DisplayName,
Email: DataCardValue15.Selected.Mail,
JobTitle: "",
Picture: ""
})
ForAll(
DataCardValue15.SelectedItems As _Items,
{
Claims: "i:0#.f|membership|" & Lower(_Items.Mail),
Department: "",
DisplayName: _Items.DisplayName,
Email: _Items.Mail,
JobTitle: "",
Picture: ""
}
)
ForAll(
ThisItem.Addl_Team As _Items,
{
Mail: _Items.Email,
DisplayName: _Items.DisplayName
}
)