crm_create_association
Link two objects in HubSpot CRM, such as contacts, companies, or deals, by defining their relationship using specific association types and IDs.
Instructions
Create an association between two objects
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| associationTypes | Yes | ||
| fromObjectId | Yes | ||
| fromObjectType | Yes | ||
| toObjectId | Yes | ||
| toObjectType | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"associationTypes": {
"items": {
"additionalProperties": false,
"properties": {
"associationCategory": {
"type": "string"
},
"associationTypeId": {
"type": "number"
}
},
"required": [
"associationCategory",
"associationTypeId"
],
"type": "object"
},
"type": "array"
},
"fromObjectId": {
"type": "string"
},
"fromObjectType": {
"enum": [
"companies",
"contacts",
"deals",
"tickets",
"products",
"line_items",
"quotes",
"custom"
],
"type": "string"
},
"toObjectId": {
"type": "string"
},
"toObjectType": {
"enum": [
"companies",
"contacts",
"deals",
"tickets",
"products",
"line_items",
"quotes",
"custom"
],
"type": "string"
}
},
"required": [
"fromObjectType",
"toObjectType",
"fromObjectId",
"toObjectId",
"associationTypes"
],
"type": "object"
}