What is your goal?
Need to figure out how to properly supply data to the ‘Labels’ field in Make using the Pipedrive v2 calls.
What is the problem & what have you tried?
According to the documentation, it requires an array. In the v1 API we were supplying a comma-delimited string (i.e. ‘31,41’), so I thought that this would work (where 1.labels being said string):
{{split(1.labels; ",")}}
Error messages or input/output bundles
Running a test triggered the following error and forced the scenario to become inactive:
Scenario was deactivated by Make because of reason: Scenario has encountered an error while being processed. Fix the error or clear the queue. The reason is: 400: Validation failed: label_ids[0]: This value should be of type integer.; label_ids[1]: This value should be of type integer.; custom_fields: Expected non-empty 'string' as short text custom field value, Expected non-empty 'string' as long text custom field value, Expected non-empty 'string' as short text custom field value, Expected non-empty 'string' as short text custom field value, Expected non-empty 'string' as short text custom field value, Expected non-empty 'string' as short text custom field value, Expected non-empty 'string' as short text custom field value, Expected non-empty 'string' as long text custom field value, Expected non-empty 'string' as short text custom field value, Expected non-empty 'string' as long text custom field value, Expected non-empty 'string' as short text custom field value, Expected non-empty 'string' as short text custom field value (undefined).
I can’t provide a public scenario due to certain data included in it, unfortunately. But the above information I hope should be enough to help. Basically we’re needing an example of how the field data should be properly formatted, as based on Pipedrive’s documentation it should already be in the correct format?

