APIs & Integrations

Solution2
Member

Is there a way to add additional choices to type?

The company I work for has a field that correlates with the type field that HubSpot Companies have. However, there are additional values that we use. Is there a way to add to this field?

I ask, because the property has the field: ‘optionsAreMutable’ => boolean true

However, when I tried to update it, I got the message: The Property ‘type’ has a read-only definition, and can’t be mutated.

The JSON I used is as follows:

{
“options”: [
{
“hidden”: false,
“description”: null,
“value”: “FIRST”,
“readOnly”: null,
“doubleData”: null,
“label”: “FIRST”,
“displayOrder”: 0
},
{
“hidden”: false,
“description”: null,
“value”: “SECOND”,
“readOnly”: null,
“doubleData”: null,
“label”: “SECOND”,
“displayOrder”: 1
},
{
“hidden”: false,
“description”: null,
“value”: “THIRD”,
“readOnly”: null,
“doubleData”: null,
“label”: “THIRD”,
“displayOrder”: 2
},
{
“hidden”: false,
“description”: null,
“value”: “FOURTH”,
“readOnly”: null,
“doubleData”: null,
“label”: “FOURTH”,
“displayOrder”: 3
},
{
“hidden”: false,
“description”: null,
“value”: “FIFTH”,
“readOnly”: null,
“doubleData”: null,
“label”: “FIFTH”,
“displayOrder”: 4
},
{
“hidden”: false,
“description”: null,
“value”: “SIXTH”,
“readOnly”: null,
“doubleData”: null,
“label”: “SIXTH”,
“displayOrder”: 5
}
]
}

0 Upvotes
3 Replies 3
3PETE
HubSpot Employee
HubSpot Employee

Is there a way to add additional choices to type?

@Solution
Those values are going to be hardcoded in for that default type property. If you need to have addiontal values then you could make a custom field that could contain whaterver you would like. Then in your integration map the values from your company’s CRM to the new field in HS. Then you can use that new field going forward.

0 Upvotes
Solution2
Member

Is there a way to add additional choices to type?

I may have to then. I have been attempting to create as few additional fields as possible so that my companies system takes full advantage of HubSpots analytical and sales process capabilities. Thank you for your help.

0 Upvotes
3PETE
HubSpot Employee
HubSpot Employee

Is there a way to add additional choices to type?

@Solution There is no preference on default fields vs custom fields in terms of analytics.

0 Upvotes