View as Markdown
HubSpot icon

HubSpot ACTION

List CRM Associations

List CRM v4 associations from a source record to a target object type. Returns associated record IDs and association types for each link. Direction matters: from is the record you are querying from; swap from/to to traverse the relationship the other way. See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's HubSpot account once, then configure and run List CRM Associations from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "hubspot-list-crm-associations",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    hubspot: { authProvisionId: "apn_xxxxxxx" },
    fromObjectType: "From Object Type",
    fromObjectId: "From Object ID",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

List CRM Associations inputs
Property Type Description
fromObjectType From Object Type string
Object type of the record you are listing associations from.
Required Dynamic
fromObjectId From Object ID string
The source record’s HubSpot ID. After choosing From Object Type, pick from the list or enter an ID (for contacts you can search by email).
Required Dynamic
toObjectType To Object Type string
Object type of associated records to return (e.g. contacts linked to this company).
Required Dynamic

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
hubspot-list-crm-associations
Version
0.0.7
App
HubSpot
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes