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 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:
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
I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member. Thanks!
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: