CMS Development

MRAT
Member

CrmAssociationTable - Object Type Id

SOLVE

Hi,

 

I have a public app and i want to build a CrmAssociationTable. But i need the objectTypeId which need my custom object id but i cant retrieve it dynamically.

 

Is there a solution ?

1 Accepted solution
MichaelMa
Solution
Contributor

CrmAssociationTable - Object Type Id

SOLVE

Is your app making the Custom Object or do you know how the name of the Custom Object If so, then you can use the API and pull the schema using the qualified name (not sure if this is the appropriate term) or fully qualified name and then grab the objectTypeId from the results.

 

Eg, if you Custom Object name is Profiles, you can run an API request on the schema:

https://api.hubapi.com/crm/v3/schemas/p_profiles

https://api.hubapi.com/crm/v3/schemas/p1234567890_profiles (replace 1234567890 with the hub id)

 

 

View solution in original post

0 Upvotes
2 Replies 2
GRajput
Recognized Expert | Gold Partner
Recognized Expert | Gold Partner

CrmAssociationTable - Object Type Id

SOLVE

Hi @MRAT 

 

The object type ID is same for a particular custom object. Different custom objects have different type id, you can retrieve it from the URL, but there is no option to get it dynamically.  For ref, you can see SS

 

GRajput_0-1747735355292.png

 

 

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!




Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting


0 Upvotes
MichaelMa
Solution
Contributor

CrmAssociationTable - Object Type Id

SOLVE

Is your app making the Custom Object or do you know how the name of the Custom Object If so, then you can use the API and pull the schema using the qualified name (not sure if this is the appropriate term) or fully qualified name and then grab the objectTypeId from the results.

 

Eg, if you Custom Object name is Profiles, you can run an API request on the schema:

https://api.hubapi.com/crm/v3/schemas/p_profiles

https://api.hubapi.com/crm/v3/schemas/p1234567890_profiles (replace 1234567890 with the hub id)

 

 

0 Upvotes