Hello.
I’m very new to Make and currently I’m having trouble to input values into a custom multiselect field on a Kommo module (“Create a Lead”).
The values come from a Google Sheets sheet, and I already made it work to normal custom fields through the option “Custom Fields as an Array” and using this input format:
{"value":"{{ref_to_field}}"}
But, when I try doing the same to this multiselect field (it’s a category field), it just works when there’s just one category. If there’s more than one (comma-separated values), the module returns me a RuntimeError: [400] Bad Request Request validation failed
.
I know that’s because the value are arriving as just one value, like “X, Y” when they should be two different values “X” and “Y”, but I don’t know how to properly input it in the module.
The input from the module (the only real value I left unanonymized was the one in the field in question):
[
{
"name": "XXXXXXXX",
"_embedded": {
"tags": [
{
"id": 99999
}
]
},
"status_id": 8629999,
"cfSelector": "array",
"created_at": "2025-01-01T12:00:00.000Z",
"created_by": 99999999,
"contacts_id": [
99999999
],
"pipeline_id": 99999999,
"custom_fields_values": [
{
"values": [
"{\"value\":\"Entretenimento, Arte e Criatividade\"}"
],
"field_id": 999999
}
]
}
]
The correct values that the field can receive:
I hope I made myself clear and gave the proper informations. I’m open for suggestions of how I can solve this issue.
Thank you and have a good day.