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:
- Upload Document, which returns a
documentId
.
- Create an Engagement to attach
documentId
, which returns an
engagementId
.
- 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.