Hi. I have a "Employee Involved" dropdown, I want that when I edit it and add person it will patch successfully. But the scenario is I need to remove the previous value first and then re-select again the persons to be able for patching to be successful.
EmployeeInvolved: If(
CountRows(employeeInvolvedComboBox_2.SelectedItems) <> CountRows(varEditConcern.EmployeeInvolved) || !IsEmpty(
Filter(
employeeInvolvedComboBox_2.SelectedItems,
IsBlank(
LookUp(
varEditConcern.EmployeeInvolved,
DisplayName = DisplayName
)
)
)
),
ForAll(
employeeInvolvedComboBox_2.SelectedItems,
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpanderUser",
Claims: "i:0#.f|membership|" & Lower(Mail),
DepartmentOfInvolved: Department,
DisplayName: DisplayName,
Email: Lower(Mail),
JobTitle: JobTitle,
Picture: "."
}
),
varEditConcern.EmployeeInvolved// Retain previous values if no new selection or no change
)