I am a bit confused, I tried to look into differents posts here and I read the documentation about engagement, associations and custom objects but I can’t figure out how to link my files to my custom objects attachment. Hopefully you can help me !
Hey, @Brik Thanks for reaching out. I’ve done this a few times now and always find it a bit mysterious.
Here’s my quick test:
I created a note and grabbed the ID 25906880309
I have a test custom object called Boats
I grabbed the objectType and objectID
Type — 2-7913954
ID — 1976776222
I used this endpoint — Associate a note with another object PUT /crm/v3/objects/notes/{noteId}/associations/{toObjectType}/{toObjectId}/{associationType}
For anyone that finds this post in the future, this app solves for this kind of thing natively in the UI using workflow actions: HubSpot Marketplace
While not the actual code necessary to do this, the app solves teh use case of attaching files to objects.