APIs & Integrations

BenGale
Contributor

Get All Company to Deal Associations

SOLVE

I have a deal with a primary company associated, but also several other companies that I have setup with an association named "child". I can't seem to get the api to tell me about these child companies.

 

When I ask this endpoint `https://api.hubapi.com/crm/v3/objects/deals/XXXXXXXX/associations/company`

It only returns the primary company, not the other associations.

 

How can I get it to list all of the companies associated?

0 Upvotes
1 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Get All Company to Deal Associations

SOLVE
0 Upvotes
4 Replies 4
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Get All Company to Deal Associations

SOLVE

@BenGale 

Might be worth looking at the newer associations API.

0 Upvotes
BenGale
Contributor

Get All Company to Deal Associations

SOLVE

Ah ok, that seems to work when I use postman. I can't seem to work out how to do that with the node library (https://github.com/HubSpot/hubspot-api-nodejs)Any idea on how to do that?

0 Upvotes
BenGale
Contributor

Get All Company to Deal Associations

SOLVE

It seems I'm not able to do this in the nodejs library, but I was able to use the apiRequest function to make the call directly.

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Get All Company to Deal Associations

SOLVE

@BenGale 

I haven't looked at that library lately.  If you see that it is missing, I would encourage you to submit an issue to that GitHub repo

0 Upvotes