<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Association between companies contacts and deals in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Association-between-companies-contacts-and-deals/m-p/725098#M59218</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;thanks for the tag, definitely can chime in on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/482495"&gt;@BPegenaute&lt;/a&gt;&amp;nbsp;could you help me understand this a little more:&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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 -&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank"&gt;https://developers.hubspot.com/docs/api/crm/search&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From here you can do a filter of the property name, and then do a batch association to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this what you're looking for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;WL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 03:43:13 GMT</pubDate>
    <dc:creator>weiliang_lee</dc:creator>
    <dc:date>2022-12-01T03:43:13Z</dc:date>
    <item>
      <title>Association between companies contacts and deals</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-between-companies-contacts-and-deals/m-p/723161#M59056</link>
      <description>&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;Ee're creating a private app to exchange data from our database to HS and we're trying to create custom relations between companies and contacts.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;I have studied the documentation on association labels, but it seems it does not serve my purpose. F&lt;SPAN&gt;rom our database, we're injecting data to a new property we created in HS called company_id which is the same for the company and all the employees (contacts) working there.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I can't figure out how to instruct HS to look for that data point and use it to relate contacts to companies (and later on, to deals), is that something possible?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Nov 2022 16:03:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-between-companies-contacts-and-deals/m-p/723161#M59056</guid>
      <dc:creator>BPegenaute</dc:creator>
      <dc:date>2022-11-25T16:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Association between companies contacts and deals</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-between-companies-contacts-and-deals/m-p/724877#M59179</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/482495"&gt;@BPegenaute&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out! To confirm, you are not missing a documented option.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/associations" target="_blank" rel="noopener"&gt;Associations v4&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://knowledge.hubspot.com/crm-setup/create-and-use-association-labels" target="_blank" rel="noopener"&gt;Create and use association labels&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/241684"&gt;@ChrisoKlepke&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/155264"&gt;@weiliang_lee&lt;/a&gt;,&amp;nbsp;do you have any thoughts on workarounds or other ways&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/482495"&gt;@BPegenaute&lt;/a&gt;&amp;nbsp;might think about this project?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 17:23:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-between-companies-contacts-and-deals/m-p/724877#M59179</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-11-30T17:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Association between companies contacts and deals</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-between-companies-contacts-and-deals/m-p/724888#M59181</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks tho&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 17:42:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-between-companies-contacts-and-deals/m-p/724888#M59181</guid>
      <dc:creator>BPegenaute</dc:creator>
      <dc:date>2022-11-30T17:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Association between companies contacts and deals</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-between-companies-contacts-and-deals/m-p/725098#M59218</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;thanks for the tag, definitely can chime in on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/482495"&gt;@BPegenaute&lt;/a&gt;&amp;nbsp;could you help me understand this a little more:&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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 -&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank"&gt;https://developers.hubspot.com/docs/api/crm/search&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From here you can do a filter of the property name, and then do a batch association to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this what you're looking for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;WL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 03:43:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-between-companies-contacts-and-deals/m-p/725098#M59218</guid>
      <dc:creator>weiliang_lee</dc:creator>
      <dc:date>2022-12-01T03:43:13Z</dc:date>
    </item>
  </channel>
</rss>

