Greetings,
I have a multiple-select combobox (Produkte_cmb) for Sharepoint Multiple-Select Lookup column Produkte which is dependant on the SelectedItems of another multiselect combobox (Produktlinien cmb). Produkte is looking up the List Produkte PLA with two columns - Produkt Src (this is the value column for Produkte) and ProduktlinieRef which is used as reference to the parent combobox Produktlinien_cmb for the preselection.
Items property of combobox Produkte_cmb is set to:
Ungroup(
ForAll(
Produktlinien_cmb.SelectedItems As _Sel,
Filter(
'Produkte PLA',
ProduktlinieRef.Value in _Sel.Value
)
),
"Value"
)
DefaultSelectedItems is set to Parent.Default
Update property of corresponding datacard is set to Coalesce(Produkte_cmb.SelectedItems)
The lookup column itself is populated via PATCH function set currently in the OnSelect property of the Save & Submit button of the Edit form before SubmitForm action. The code is as follows.
ForAll(
Produkte_cmb.SelectedItems,
Collect(
colProdukte,
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: ID,
Value: ProduktSrc
}
)
);
atch (
ELN,
LookUp(
ELN,
ID = varSelectedListItemID
),
{
Title: varThisItem.Title,
Produkte: colProdukte
}
);
Observations:
- If column Produkte is empty, everything works nicely - Produkte_cmb gets populated, Form saves on submit, Values are saved in the column Produkte appear in the Produkte_cmb upon reopening of the form
- If column Produkte already has values following unwanted behaviours are observed:
- Existing values are not recognized by combobox being same as new ones - e. g. if entry A exists and another entry A is selected, two entries A are populated. Another selection of A removes the second new! entry A.
- If all (!) existing values are not manually removed, saving of the form results in following error:

The form gets canceled and no changes are saved.
3. If all (!) existing values are manually removed - see 1, everything works again.
Any idea, how to tackle this issue?
Thank you!