APIs & Integrations

cadmium
Participant

CRM Extension Object ID - How is it used

It appears that for CRM Extension objectID returned from a data fetch needs to be a numeric id. The natural id for our extension is an opaque string (and encoded guid).

However, it appears to work to use an ID that is unique to the results being returned in the extension data fetch; that is we don't have to use the real id and can just return a relatively unique number.

That will break if there is caching or anything objectID is used for beyond the data fetch and display context. Does anyone know if objectIDs can be duplicate and overlap as long as they are unique within a data fetch?

(Aside for future seachers: using a string instead of an integer can be a source of the "deserialization error" reported in hubspot)

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

CRM Extension Object ID - How is it used

Hi @cadmium,

I don't believe that will break anything, since as far as I know that object ID is only used within the context of a data fetch. I wouldn't recommend doing it if you can avoid it, but I believe you should be fine.

0 Upvotes