Closed CribberSix closed 4 days ago
Hey @CribberSix.The createdate
, hs_object_id
, and lastmodifieddate
properties are basic system fields that cannot be excluded from the response because they are built into the contacts structure. If you want to get only contact ids you can try something like this:
contacts = api_client.crm.contacts.get_all()
only_ids = [contact.id for contact in api_response]
Ahh alright, thanks for the clarification!
I am trying to retrieve all items without any properties - my goal is to get all existing ids into a list.
I figured that it would be faster if I can tell HubSpot not to return any properties, but just the "base" object which already contains the id.
But I cannot figure out how to get it to work - no matter what I pass to the "properties" parameter, I always get some properties back. Any ideas?