---
title: Hubspot association
description: Manage object-to-object relationships in HubSpot like linking Contacts to Companies, Deals to Tickets, and more.
category: Application
tags: [hubspot, crm, association, integration]
---

# 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

_Not Applicable_

## Output

| Output Type | Format | Description                            |
| ----------- | ------ | -------------------------------------- |
| **Data**    | JSON   | List of association responses (if any) |

## Configuration Fields

| Field Name           | Description                                                                                        |
| -------------------- | -------------------------------------------------------------------------------------------------- |
| **Connection**       | Select a HubSpot OAuth connection.                                                                 |
| **Operation**        | Choose from:<ul><li>Get</li><li>Create</li><li>Remove</li></ul>                                    |
| **From Object**      | Source object type (e.g., Companies, Deals, Contacts).                                             |
| **To Object**        | Target object type to associate with.                                                              |
| **From Object Ids**  | List of source object IDs. Required for `Get` operation.                                           |
| **Association Type** | Association definition configured in HubSpot (depends on object types). Required for Create/Remove |
| **Associations**     | List of mappings between source and target object IDs. Used in `Create` and `Remove`.              |

## Sample Input

| Operation  | Required Fields                   | Example Input                                                                                                                                          |
| ---------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Get**    | `FromObjectIds`                   | <ul><li>FromObject: Companies</li><li>ToObject: Deals</li><li>FromObjectIds: [12345, 67890]</li></ul>                                                  |
| **Create** | `AssociationType`, `Associations` | <ul><li>FromObject: Contacts</li><li>ToObject: Deals</li><li>AssociationType: contact_to_deal</li><li>Associations: [{Key: 111, Value: 222}]</li></ul> |
| **Remove** | `AssociationType`, `Associations` | Same as Create                                                                                                                                         |

## Sample Configuration

| Field             | Value                       |
| ----------------- | --------------------------- |
| `connection.id`   | `hubspot-conn-01`           |
| `operation`       | `Create`                    |
| `fromObject`      | `Contacts`                  |
| `toObject`        | `Deals`                     |
| `associationType` | `contact_to_deal`           |
| `associations`    | <ul><li>111 → 222</li></ul> |

## Sample Output

| FromObjectId | ToObjectId | Status  |
| ------------ | ---------- | ------- |
| 111          | 222        | Created |
