Using the api client merge endpoint in custom code
SOLVE
Hi,
I am trying to use the new merge endpoint from the api client within a custom code block of a workflow but can't seem to figure out how to do it, if it is even possible.
I have called vairous other endpoints from the client like so:
There's the nodeJs example that matches what you've done so far. You're basically passing two variables : the primary Id as well as the object Id to merge with.
Hope this helps ! If it does, please consider marking this answer as a solution 🙂
Best,
Ludwig
CTO @ Mi4 Hubspot Platinum Partner and Integration Expert
Passionate human, very curious about everything data and automation.
If this search returned more than 1 company I would merge all of the companies into the one that I identified as being the main company (this is based on our own company logic, so you will need to decide your own). For each company that is returned and is not idenfied as the main one I used this endpoint to merge them into the main company:
Depending on how many companies you have in your Hubpot this could take a long time, I used a stand alone script and ran it on my machine for a day. But I had 100k duplicates.
Also please be aware that the code samples above include methods like hubspotRequest that are my own methods that call my Hubspot api.
There's the nodeJs example that matches what you've done so far. You're basically passing two variables : the primary Id as well as the object Id to merge with.
Hope this helps ! If it does, please consider marking this answer as a solution 🙂
Best,
Ludwig
CTO @ Mi4 Hubspot Platinum Partner and Integration Expert
Passionate human, very curious about everything data and automation.
Using the api client merge endpoint in custom code
SOLVE
Hi, @JHowardAdapt👋 Thanks for reaching out. Let's see if our community has any experience here — @JBeatty@LMeert, do you have any insight into how @JHowardAdapt can accomplish their goal?