find the associated company of a workspace (custom object)
look if this company has an associated open deal
If so, associate the workspace to the deal
On paper, this is straight forward but I can’t find the function of the nodeJs library to lookup association on a custom object and to create an association on a custom object
{"errorType":"TypeError","errorMessage":"Cannot read property 'getAll' of undefined","stack":["TypeError: Cannot read property 'getAll' of undefined"," at Object.exports.main
I tried doing the call via HTTP in Postman and the endpoint work.
Can someone tell me the function to lookup associated objects and the function to create an association with a custom object, please?
Hello, I am in a similar situation as @Sylg. And this solution is not working for me.
I am creating a workflow with custom code actions that needs to look up associations for one custom object to another custom object.
So I have tested and confirmed this endpoint is working from the docs:
And brought the relevant code into the custom code action in my workflow. But I ran into same error as mentioned above.
{"errorType":"TypeError","errorMessage":"Cannot read property 'getAll' of undefined","stack":[ ...
And then I found this thread! So I have updated my script within the custom code action to include hubspotClient.crm.objects.associationsApi.getAll(…), as seen below.
Gah! Just discovered, I need to utilize V4 API documentation as seen here Accounts Dashboard | HubSpot to get this working. I’ve updated my custom code in workflow, and it is working now with V4 formatted request:
Hey @Sylg,
I know this thread is a bit old but have you heard of Associ8? It associates objects (Custom Objects included) via workflow based off criteria you set!