Actions6
Associate Objects
AI-generatedSummary
Creates an association between a source HubSpot object and a target HubSpot object, optionally applying one or more association labels.
Inputs
- fromObjectType (required) — Source object type (e.g., contacts). Set to 'custom' to specify a custom object type via customFromObjectType.
- customFromObjectType (required) — The name or ID of the custom source object type (e.g., 'cars' or '2-12345'). Required when fromObjectType is 'custom'.
- toObjectType (required) — Target object type (e.g., companies). Set to 'custom' to specify a custom object type via customToObjectType.
- customToObjectType (required) — The name or ID of the custom target object type (e.g., 'cars' or '2-12345'). Required when toObjectType is 'custom'.
- fromObjectId (required) — ID of the source object to associate.
- toObjectId (required) — ID of the target object to associate.
- associationLabel — Optional association labels to apply. Leave empty to use the default association type. Multiple labels can be selected.
Output shape
{
success: true,
from: { type: string, id: string },
to: { type: string, id: string },
associationType: string, // e.g., 'Default' or 'HUBSPOT_DEFINED (3)'
associationLabels?: object[] // present only when labels were selected
}
The node returns a success flag, the source and target object references, the association type used (either 'Default' or a label description), and optionally the label objects that were applied.