Create deal with custom fields array failing


#1

Hi,

My crm has a custom field set up on deals that in the UI is a multiple select checkbox. Using the api, it is error-ing out when I attempt to send the decline reason as an array of values. Thoughts anyone?

{
"associations":{
"associatedCompanyIds":[
"7"
],
"associatedVids":[
1,
2
]
},
"properties":[
{
"name":"dealname",
"value":"Test Deal"
},
{
"name":"createdate",
"value":1526316711
},
{
"name":"dealtype",
"value":"newbusiness"
},
{
"name":"channel",
"value":"SP"
},
{
"name":"product_type",
"value":"FS"
},
{
"name":"dealstage",
"value":"2d080"
},
{
"name":"decline_reason",
"value":[
"ineligible_legal_entity",
"mca_balance_over_limit"
]
}
]
}


#2

HI @clevy,

Properties that are multiple checkbox in the UI should have all values in a semicolon separated list, not as an array. The decline_reason value should look like this:

{
  "name":"decline_reason:,
  "value:"ineligible_legal_entity;mce_balance_over_limit"
}

https://developers.hubspot.com/docs/faq/how-do-i-set-multiple-values-for-checkbox-properties


#3

Got it, thanks a lot for the help!