We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Nov 25, 2022 11:03 AM
Solved! Go to Solution.
Nov 30, 2022 10:43 PM
Hi @Jaycee_Lewis thanks for the tag, definitely can chime in on this.
@BPegenaute could you help me understand this a little more:
I'm assuming your system has means to push data into HS whenever you catch a chang. You have already created this custom property in your Contact and Company objects (called "company_id"), and successfully update them whenever you catch a change in your database.
And your missing piece is, how to associate them right? Aside from what Jaycee provided (which is the association bit), I'm guessing that you want to do a search of contacts by that company_id right? If so, you can use this endpoint - https://developers.hubspot.com/docs/api/crm/search
From here you can do a filter of the property name, and then do a batch association to it.
Is this what you're looking for?
Cheers
WL
Nov 30, 2022 10:43 PM
Hi @Jaycee_Lewis thanks for the tag, definitely can chime in on this.
@BPegenaute could you help me understand this a little more:
I'm assuming your system has means to push data into HS whenever you catch a chang. You have already created this custom property in your Contact and Company objects (called "company_id"), and successfully update them whenever you catch a change in your database.
And your missing piece is, how to associate them right? Aside from what Jaycee provided (which is the association bit), I'm guessing that you want to do a search of contacts by that company_id right? If so, you can use this endpoint - https://developers.hubspot.com/docs/api/crm/search
From here you can do a filter of the property name, and then do a batch association to it.
Is this what you're looking for?
Cheers
WL
Nov 30, 2022 12:23 PM
Hi, @BPegenaute 👋 Thanks for reaching out! To confirm, you are not missing a documented option.
Hey, @Chriso-mwx @weiliang_lee, do you have any thoughts on workarounds or other ways @BPegenaute might think about this project?
Best,
Jaycee
Nov 30, 2022 12:42 PM
Hi there
Thanks for your answer
We found a way around by injecting HS's tracking code into our SPA, but now we're facing a different issue as all forms are reconverting data from the original contact created and associated to the record.
Thanks tho