Associate "Note" with custom object record?

I’m using engagement API for create “note”, I want to associate “note” with custom object’s record. My custom object name is “Listings” so How should I mention here listing record id into associations section?

I’m sharing one attachment of the API request what I’m trying to do.

Thanks

Hey @saranglad786 !

I see you are still chugging along with Custom Objects! By the end of this, I am going to have to have you write up a training course :nerd_face:

@lynton , I know you are deep into custom objects. Do you have experience with this?

@saranglad786 ,

I noticed that you also submitted this query to support. I wanted to add the answer here as well for others.

There is an undocumented workaround for notes, tasks, and calls. Basically, you can use this v1 engagements API endpoint to create a call, note, or task, fetch the associationType returned from the CRM Associations API’s “List Association Types” endpoint (e.g. custom_object_to_note), and associate a custom object with an engagement with the “Associate an object with another object” endpoint.

Is this still working? Would it work for meetings as well? We would like to create associations between a custom object and engagements via the API (mainly meetings). Meetings that are associated with contact with association to the custom object should be associated to custom object record as well. I’ve tried to use Engagement API, but it didn’t work.

This is my first pass at creating a solution for this. I am running node and using the npm hubspot package. Might be a good starting point.

Use it in the service like this:

Hope this helps others when it comes to solve this problem. Any recommendations or suggestions would be appreciated.

Hey, @TomiB :waving_hand: I’d suggest creating a new post and including an example request and response. — Jaycee