I really need the associated CompanyID of a contact. I read in a few places it is 'properties=associatedcompanyid' however, I can't seem to get anything returned for it even though I have linked a contact to a company in HubSpot itself.
Dim result = APICall(String.Format("https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey={0}&properties=associatedcompanyid&properties=deleted&count={1}", hapikey, offset))
Dim jObject As JObject = JObject.Parse(result)
If you're pulling contacts using the 'Get all contacts' endpoint (/contacts/v1/lists/all/contacts/all) you'll need to change the query parameter you're using a bit. It should look like the following:
If you're pulling contacts using the 'Get all contacts' endpoint (/contacts/v1/lists/all/contacts/all) you'll need to change the query parameter you're using a bit. It should look like the following: