APIs & Integrations

jeff00seattle
Contributor

Search for Object by Object Id without knowing Object Type?

SOLVE

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.
  2. Create an Engagement to attach documentId, which returns an engagementId.
  3. 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. 

0 Upvotes
1 Accepted solution
jeff00seattle
Solution
Contributor

Search for Object by Object Id without knowing Object Type?

SOLVE

Unfortunately, a solution is still not available.

 

Object type from record ID

Submitted by @CRod5 

 

API call that returns object type from record id

View solution in original post

0 Upvotes
1 Reply 1
jeff00seattle
Solution
Contributor

Search for Object by Object Id without knowing Object Type?

SOLVE

Unfortunately, a solution is still not available.

 

Object type from record ID

Submitted by @CRod5 

 

API call that returns object type from record id

0 Upvotes