I want to grab all meetings with their associated contact and currently using a GET request: https://api.hubapi.com/crm/v3/objects/meetings?associations=contacts but I feel that it doesn’t pull everything since I see some meetings not listed from this result. But, if I grab the meeting directly, I can see the associated contact. Is there another way to grab all associated meetings of a contact?
Hey, @Yel-o
Have you looked at utilizing the Search API? If you are searching using a specific Contact ID, for example, you can make a request like this:
Request
POST https://api.hubapi.com/crm/v3/objects/meetings/search
Body (using pseudo associations)
{
"filters": [
{
"propertyName": "associations.contact",
"operator": "EQ",
"value": "901"
}
]
}
Response
{
"total": 3,
"results": [
{
"id": "32628798647",
"properties": {
"hs_createdate": "2023-03-17T20:33:55.426Z",
"hs_lastmodifieddate": "2023-03-17T20:33:56.259Z",
"hs_object_id": "32628798647"
},
"createdAt": "2023-03-17T20:33:55.426Z",
"updatedAt": "2023-03-17T20:33:56.259Z",
"archived": false
},
{
"id": "35823075691",
"properties": {
"hs_createdate": "2023-06-08T17:17:30.043Z",
"hs_lastmodifieddate": "2023-06-08T17:17:30.538Z",
"hs_object_id": "35823075691"
},
"createdAt": "2023-06-08T17:17:30.043Z",
"updatedAt": "2023-06-08T17:17:30.538Z",
"archived": false
},
{
"id": "35822477983",
"properties": {
"hs_createdate": "2023-06-08T17:17:51.978Z",
"hs_lastmodifieddate": "2023-06-08T17:17:52.543Z",
"hs_object_id": "35822477983"
},
"createdAt": "2023-06-08T17:17:51.978Z",
"updatedAt": "2023-06-08T17:17:52.543Z",
"archived": false
}
]
}
Please give it a try and let us know how it goes.
Have fun building! — Jaycee
Hi @Jaycee_Lewis ! Yes, I’ve looked into that and I believe that can only search specific contacts and not all contacts associated with a meeting. I tried to change that filter’s operator to HAS_PROPERTY but unfortunately, it doesn’t work. Would you happen to know if there’s another workaround? I believe since HubSpot has API rate limits up to 10k, at some point, using the current method I have wouldn’t be sustainable.