APIv4: Cannot set multi-select ContactRef field that is part of a multi-record custom fieldset
Overview
Adding multiple Contact References in a field that is part of a multi-record field set fails with APIv4.
Reproduction steps
- Create a custom field set for all Individuals and check "Does this Custom Field Set allow multiple records?"
- Add a ContactRef field and check "Multi-Select"
- Try to set it via the APIv4 Explorer
Current behaviour
Failing with error:
{
"error_code": 0,
"error_message": "value: \u00013\u000193\u0001 is not of the right field data type: ContactReference",
"status": 500
}
Environment information
https://dmaster.demo.civicrm.org running 5.72.alpha1
Comments
Not an issue if the multi-select ContactRef field is not part of a multi-record custom fieldset.