Skip to content

HubSpot Association

Description

The HubSpot Association entity defines the relationships between different HubSpot records, such as linking a contact to a company, a deal to a contact, or a ticket to a company. Associations are essential for maintaining a connected data model and enabling contextual reporting and automation

The HubSpot Association activity enables creating, retrieving, and removing associations (relationships) between HubSpot CRM objects like Contacts, Companies, Deals, Tickets, and Engagements.

Use this activity to:

  • Get – Fetch existing associations from a source object to a target object by specifying object IDs.
  • Create – Establish new relationships between two HubSpot entities (e.g., link Contacts to Deals).
  • Remove – Delete existing associations between objects in HubSpot.

Use Case: Automate the process of linking contacts to deals and companies in bulk when ingesting data from a CSV file, enabling seamless relationship management across HubSpot modules during lead onboarding workflows.

Input

Output

Output TypeFormatDescription
DataJSONList of association responses (if any)

Configuration Fields

Field NameDescription
ConnectionSelect a HubSpot OAuth connection.
OperationChoose from:
  • Get
  • Create
  • Remove
From ObjectSource object type (e.g., Companies, Deals, Contacts).
To ObjectTarget object type to associate with.
From Object IdsList of source object IDs. Required for Get operation.
Association TypeAssociation definition configured in HubSpot (depends on object types). Required for Create/Remove
AssociationsList of mappings between source and target object IDs. Used in Create and Remove.

Sample Input

OperationRequired FieldsExample Input
GetFromObjectIds
  • FromObject: Companies
  • ToObject: Deals
  • FromObjectIds: [12345, 67890]
CreateAssociationType, Associations
  • FromObject: Contacts
  • ToObject: Deals
  • AssociationType: contact_to_deal
  • Associations: [{Key: 111, Value: 222}]
RemoveAssociationType, AssociationsSame as Create

Sample Configuration

FieldValue
connection.idhubspot-conn-01
operationCreate
fromObjectContacts
toObjectDeals
associationTypecontact_to_deal
associations
  • 111 → 222

Sample Output

FromObjectIdToObjectIdStatus
111222Created