post https://{youraccountname}.api-us1.com/api/3/dealCustomFieldData/bulkCreate
To create a custom deal field values, the following permissions are required.
- Deal permission: the user should have permission to manage deals.
- Pipeline-specific permission: the user should have permission to manage the pipeline that the deal belongs to. If the user does not have the permission to manage the pipeline, limited deal data are returned with only
id
,title
, andisDisabled
set to1
. - When creating a field value for a multivalued field (checkbox, multiselect), values must be strings in an array, e.g.
["Option 1", "Option 2", "Option 4"]
, whether one value or multiple are being set.
[
{
"dealId": "1",
"customFieldId": "1",
"fieldValue": "test title"
},
{
"dealId": "1",
"customFieldId": "2",
"fieldValue": "test title"
},
{
"dealId": "1",
"customFieldId": "3",
"fieldValue": [
"option 1",
"option 3",
"option 4"
]
},
{
"dealId": "1",
"customFieldId": "4",
"fieldValue": 9999,
"fieldCurrency": "cad"
},
{
"dealId": "1",
"customFieldId": "5",
"fieldValue": "100.99"
},
{
"dealId": "1",
"customFieldId": "6",
"fieldValue": "2018-12-31"
},
{
"dealId": "1",
"customFieldId": "7",
"fieldValue": "2020-05-19T02:45:00-05:00" //ISO format
}
]