How to clear an array field on an upsert-enabled dataset with array_replace mapping?
We have a non-XDM compatible dataset enabled for upsert with a couple of fields of type Object[].
rootNode.fieldName: Object[]
rootNode.anotherFieldName: Object[]
We want to be able to edit one of them at a time and to replace the whole list on that update operation, including emptying out the list. On the dataflow mappings we have that field mapped as
upsert_array_replace(rootNode.fieldName) -> rootNode.fieldName
We were able to see full list replacements where the profile attribute had [A, B] and we sent [C] and it worked correctly becoming just [C].
Our issue is that we couldn't clean the field from [A. B] to [] by sending [] or null, or anything else we could think of on the HTTP merge-enabled call.
How can we clean an attribute of type list in that case?