• Live group demo of Marketing Hub + Data Agent

    Standardize reporting, reduce manual work, and introduce AI without cleanup

    Join us on March 12
  • Ready to build your local HubSpot community?

    HUG leaders host events, spark connections, and create spaces where people learn and grow together.

    Become a HUG Leader

Accessing meetings for company

pembo13
Member

I'm trying to use the Python SDK to get all meetings for a company.

 

This is the code I used:

api_response = client.crm.companies.associations_api.get_all(
	company_id=companyid,
	to_object_type='meeting',
	limit=500
)

However, the output I get is odd:

{'paging': None,
 'results': [{'id': None, 'type': None},
             {'id': None, 'type': None},
             {'id': None, 'type': None},
             {'id': None, 'type': None},
             {'id': None, 'type': None},
             {'id': None, 'type': None},
             {'id': None, 'type': None},
             {'id': None, 'type': None},
             {'id': None, 'type': None}]}

I get the same out when I try a deal instead:

api_response = client.crm.companies.associations_api.get_all(
	company_id=companyid,
	to_object_type='deal',
	limit=500
)

I'm getting no errors.

 

If I change from "meeting" to "engagement" I get more out, but still al None.

0 Upvotes
1 Accepted solution
pembo13
Solution
Member

Looks like the Python SDK was simply broken, and fixed an issue with the Association API in a later version: https://github.com/HubSpot/hubspot-api-python/blob/master/CHANGELOG.md

View solution in original post

0 Upvotes
6 Replies 6
pembo13
Member
response = client.crm.associations.v4.basic_api.get_page(
	object_type='company',
	object_id=company_id,
	to_object_type='meeting',
	limit=500
)
0 Upvotes
pembo13
Solution
Member

Looks like the Python SDK was simply broken, and fixed an issue with the Association API in a later version: https://github.com/HubSpot/hubspot-api-python/blob/master/CHANGELOG.md

0 Upvotes
pembo13
Member

Any help on this would be appreciated.

0 Upvotes
Jaycee_Lewis
Thought Leader

Hi, @pembo13 👋 Is this issue persisting for you? If so, I am happy to tag in a few community members.

 

Best,

Jaycee





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




0 Upvotes
pembo13
Member

@Jaycee_Lewis  any luck tagging anyone else on this?

0 Upvotes
pembo13
Member

@Jaycee_Lewisthis still an issue. I'd love some help with it please.

0 Upvotes