# CrmAssociationTable - Object Type Id

**URL:** <https://community.hubspot.com/t/crmassociationtable-object-type-id/132947>\
**Category:** CMS Development\
**Tags:** local-development, marketplace-solutions-directory\
**Created:** [May 19, 2025, 1:43pm UTC](https://community.hubspot.com/t/crmassociationtable-object-type-id/132947 "2025-05-19T13:43:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MRAT](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@MRAT](https://community.hubspot.com/u/MRAT)\
**Post date:** [May 19, 2025, 1:43pm UTC](https://community.hubspot.com/t/crmassociationtable-object-type-id/132947/1 "2025-05-19T13:43:06Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![MichaelMa](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@MichaelMa](https://community.hubspot.com/u/MichaelMa)\
**Post date:** [May 19, 2025, 2:50pm UTC](https://community.hubspot.com/t/crmassociationtable-object-type-id/132947/2 "2025-05-19T14:50:44Z")

</div>

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/p_profiles)

[https://api.hubapi.com/crm/v3/schemas/p1234567890\_profiles](https://api.hubapi.com/crm/v3/schemas/pHUBID_profiles) (replace 1234567890 with the hub id)

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [May 20, 2025, 10:03am UTC](https://community.hubspot.com/t/crmassociationtable-object-type-id/132947/3 "2025-05-20T10:03:19Z")

</div>

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](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/7/a7d404e2ac257d6389121e04b628e96399ba9305.png)

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