Hello,
I’m trying to understand a bit better the associations and in order to do so I’m trying to get the object from the toObjectTypeId. Like if you create a custom object without any associated objects you’ll end up with
```
{
“fromObjectTypeId”: “2-107363803”,
“toObjectTypeId”: “0-49”,
“name”: “mab_to_email”,
“cardinality”: “ONE_TO_MANY”,
“inverseCardinality”: “ONE_TO_MANY”,
“id”: “35”,
“createdAt”: null,
“updatedAt”: null
},
{
“fromObjectTypeId”: “0-49”,
“toObjectTypeId”: “2-107363803”,
“name”: “mab_to_email”,
“cardinality”: “ONE_TO_MANY”,
“inverseCardinality”: “ONE_TO_MANY”,
“id”: “36”,
“createdAt”: null,
“updatedAt”: null
},
```
In the response and there email is a properties of contact itself.
So my question is is there any route that will allow me to fetch the object from this objectTypeId ?
Apologies if I am misunderstanding the question, but if you know the toObjectTypeId, or from for that matter, you should be able to use this endpoint to get the name:
https://api.hubapi.com/crm/v3/schemas/IDGOESHERE
The name will be at the bottom of the returned object.
Oh no you haven’t misunderstood I was believing this route was only accepting name like “contact” etc…
Thanks a lot I should have read more carefully