Search for Object by Object Id without knowing Object Type?

Hello

Through HubSpot API, how to discover the

objectType

if one has its

objectId

?

Based on a strict immutable interface contract, and it does not include property

objectType: string;

objectId: string;file: {... };

Steps:

  1. Upload Document, which returns a

documentId

.

  1. Create an Engagement to attach

documentId

, which returns an

engagementId

.

  1. Associate new Engagement with Object with

objectId

.

To perform Engagement association to Object requires:

  • assume Note is engType
  • engagementId as engId
  • objectType as objType
  • objectId as objId

/crm/v3/objects/${engType}s/${engId}/associations/${objType}/${objId}/${enbType}_to_${objType}

So to perform an association between Engagment to Object requires knowing

objectType

and

objectId

.

Thank you.

Unfortunately, a solution is still not available.

Object type from record ID

Submitted by @CRod5

API call that returns object type from record id