Inside of a custom code action the included hubspot api client is version 3.4.1. The PublicObjectApi was added in version 6.0.1.
If you want to access this endpoint I would recommend using an http client like axios or request, and just manually calling the api: "/crm/v3/objects/{objectType}/merge". Or if you absolutely must use the HubSpot client you can set up a build system and manually build in the correct version of the client using someting like esbuild. I would not recommend doing this though as it makes your custom code unreadable and quite large to someone without access to the original code.
Best,
✔️ Was I able to help answer your question? Help the community by marking it as a solution.
Inside of a custom code action the included hubspot api client is version 3.4.1. The PublicObjectApi was added in version 6.0.1.
If you want to access this endpoint I would recommend using an http client like axios or request, and just manually calling the api: "/crm/v3/objects/{objectType}/merge". Or if you absolutely must use the HubSpot client you can set up a build system and manually build in the correct version of the client using someting like esbuild. I would not recommend doing this though as it makes your custom code unreadable and quite large to someone without access to the original code.
Best,
✔️ Was I able to help answer your question? Help the community by marking it as a solution.
Public object api merge endpoint undefined in Hubspot client
解決
Hey, @JHowardAdapt. It looks like @LMeert had some insight on your original post here. @JBeatty@Kevin-C, do you have any thoughts on using this in a workflow custom coded action?