CMS Development

SStrachan
Participant

Get Object by Name vs ID

Is there a way to get Custom Object details by name vs ID?

0 Upvotes
1 Reply 1
LMeert
Guide | Platinum Partner
Guide | Platinum Partner

Get Object by Name vs ID

Hi @SStrachan,


If you mean getting the custom object schema details, then yes.
The GET request at this enpoint : /crm/v3/schemas/{objectType} where objectType can be the ID of the object or the fully qualified name will give you the custom object schema details by name rather than ID.
More information here

 

If you're talking about a custom object record, then it's also a yes.
You would have to use the search API.

Either by using a filter and using the name of the record as a filter, or using the query filter (see below) except that you would have to define the name as a searchable property in your custom object schema.

 

LMeert_0-1649255754545.png

Hope this helps ! If it does, please consider marking this as a solution 🙂

 

Best,

Ludwig


 

Agence Mi4 - Data DrivenCTO @ Mi4
Hubspot Platinum Partner and Integration Expert

Passionate human, very curious about everything data and automation.

Any problem with Hubspot you need help solving ?

Let me know !