I have several custom contact preoprties that I cannot read through teh API using the hubspot client. I make the call and receive an erorr like the property doesn’t exist. I double checked the property label, name, and internal name. They are the same.
“Unable to infer object type from: clients_invited”
Hey, @seanrichter
Can you share a simple example? Seeing how your request URL and body and the response JSON are formatted is helpful to our community members. I like to use Postman for this kind of test as it helps keep things simple and easy to copy and paste back here. — Jaycee
const contact = await hubspotClient.crm.contacts.basicApi.getById(
id,
undefined,
undefined,
[
‘clients_invited’,
],
true
);
Hey, @seanrichter
In this case, I think we need a bit if a different example from you. Can you jump over to Postman and set up a basic example of your request? And add the full URL and JSON body (if used). I ask because the error you shared in your original example shows an `object` type error and not a `property` type error. This makes me think the request URL isn’t set up correctly. — Jaycee
The update is I found that custom contact properties do not store version history. The API call through the client was accurate.