The v4 Associations api mentions that it’s possible to fetch the primary company of a contact, but I can’t for the life of me figure out how. I’ve listed all available Contact / Company associations, but I never see the label primary.
Any ideas?
The v4 Associations api mentions that it’s possible to fetch the primary company of a contact, but I can’t for the life of me figure out how. I’ve listed all available Contact / Company associations, but I never see the label primary.
Any ideas?
Hi, @PAtlan
Thanks for reaching out. One question – can you provide a specific example request and response, please? This can help the community to better understand the issue.
I ran a quick test:
Endpoint
GET /crm/v4/objects/{objectType}/{objectId}/associations/{toObjectType}
Request
curl --request GET \
--url 'https://api.hubapi.com/crm/v4/objects/0-1/451/associations/0-2?limit=500' \
--header 'authorization: Bearer YOUR_ACCESS_TOKEN'
Response
HTTP 200
{
"results": [
{
"toObjectId": 9291675216,
"associationTypes": [
{
"category": "HUBSPOT_DEFINED",
"typeId": 1,
"label": "Primary"
},
{
"category": "HUBSPOT_DEFINED",
"typeId": 279,
"label": null
}
]
},
{
"toObjectId": 9359036308,
"associationTypes": [
{
"category": "HUBSPOT_DEFINED",
"typeId": 279,
"label": null
}
]
}
]
}
Thanks for the additional details! — Jaycee