<?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: How to associate Contacts with Companies in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-associate-Contacts-with-Companies/m-p/878138#M69000</link>
    <description>&lt;P&gt;Apologies for the "is your computer turned on?" response and thank you for the clarification.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Company Property you want is num_associated_contacts&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
...
    "name": "num_associated_contacts",
    "label": "Number of Associated Contacts",
    "type": "number",
    "description": "The number of contacts associated with this company",
    "groupName": "companyinformation",
    ...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use the &lt;A href="https://developers.hubspot.com/docs/api/crm/search#search-through-associations" target="_blank" rel="noopener"&gt;Associations via the Search API&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I recommend you check the new (version 4) &lt;A href="https://developers.hubspot.com/docs/api/crm/associations" target="_blank" rel="noopener"&gt;Associations API&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 22:42:32 GMT</pubDate>
    <dc:creator>Mike_Eastwood</dc:creator>
    <dc:date>2023-11-10T22:42:32Z</dc:date>
    <item>
      <title>How to associate Contacts with Companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-associate-Contacts-with-Companies/m-p/878121#M68997</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We use the Company object to store information about individuals rather than actual companies (so each Company should be associated to just one Contact)&lt;/SPAN&gt;, and we are facing the problem that there are 43,000 companies that do not have an associated contact (meaning we cannot send marketing emails to these companies).&lt;/P&gt;&lt;P&gt;Therefore, I need to know if there is any way to do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Find companies that do not have an associated contact.&lt;/LI&gt;&lt;LI&gt;Once this list is identified, take the email addresses and search the contact list to see if there is any contact with the same email address, and that this contact is not associated with another company or one of our custom objects.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I know it's a very specific question, but at least I need to know if it's possible to filter companies by the number of associated contacts.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 21:48:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-associate-Contacts-with-Companies/m-p/878121#M68997</guid>
      <dc:creator>MGranadosAria</dc:creator>
      <dc:date>2023-11-10T21:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to associate Contacts with Companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-associate-Contacts-with-Companies/m-p/878125#M68998</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/644677"&gt;@MGranadosAria&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First I would try &lt;A href="https://knowledge.hubspot.com/crm-setup/automatically-create-and-associate-companies-with-contacts#turn-on-automatic-association-between-contacts-and-companies" target="_blank" rel="noopener"&gt;HubSpot's Automatic Contact Association&lt;/A&gt; that automatically associates Companies to Contacts via the Domain Name (Company) and the email address (Contact). You may find this has been disabled in your HubSpot Portal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have multiple companies that share a domain name (where each Company Office has it's own Company in HubSpot) then the automatic Contact to Company Association will make a mess (which could be why it's turned off) because HubSpot will associate all Contacts to one Company where the domain name and email match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have lots of Contacts, without Companies, that have a Gmail address (or similar email address) then HubSpot won't know how to make the association. Which means you have to manually associate them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a &lt;A href="https://knowledge.hubspot.com/crm-setup/create-customize-and-manage-your-saved-views" target="_blank" rel="noopener"&gt;Company Filter&lt;/A&gt; where "Number of Associated Contacts" is less than one. I would sort the list to show newest companies first, assuming they are the most relevant.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-size: 0.8rem;"&gt;Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of &lt;A href="https://www.webalite.com?utm_campaign=community-forum&amp;amp;utm_source=community&amp;amp;utm_content=signature" target="_blank"&gt;Webalite&lt;/A&gt; a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of &lt;STRONG&gt;Portal-iQ&lt;/STRONG&gt; the world's first automated &lt;A href="https://portal-iq.com?utm_campaign=community-forum&amp;amp;utm_source=community-forum&amp;amp;utm_content=signature" target="_blank"&gt;HubSpot Portal Audit&lt;/A&gt; that helps you work smarter with HubSpot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 21:42:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-associate-Contacts-with-Companies/m-p/878125#M68998</guid>
      <dc:creator>Mike_Eastwood</dc:creator>
      <dc:date>2023-11-10T21:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to associate Contacts with Companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-associate-Contacts-with-Companies/m-p/878128#M68999</link>
      <description>&lt;P&gt;Hi thanks for your reply.&amp;nbsp; I can't activate the automatic Contact Association, because it would create a mess, as you said. I know I can filter by that property (that's how I know there are 43000 Contacts not associated to their Company). The thing is&amp;nbsp; I need to know if that property is available to use in the search endpoint of the API&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 21:52:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-associate-Contacts-with-Companies/m-p/878128#M68999</guid>
      <dc:creator>MGranadosAria</dc:creator>
      <dc:date>2023-11-10T21:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to associate Contacts with Companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-associate-Contacts-with-Companies/m-p/878138#M69000</link>
      <description>&lt;P&gt;Apologies for the "is your computer turned on?" response and thank you for the clarification.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Company Property you want is num_associated_contacts&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
...
    "name": "num_associated_contacts",
    "label": "Number of Associated Contacts",
    "type": "number",
    "description": "The number of contacts associated with this company",
    "groupName": "companyinformation",
    ...
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use the &lt;A href="https://developers.hubspot.com/docs/api/crm/search#search-through-associations" target="_blank" rel="noopener"&gt;Associations via the Search API&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I recommend you check the new (version 4) &lt;A href="https://developers.hubspot.com/docs/api/crm/associations" target="_blank" rel="noopener"&gt;Associations API&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 22:42:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-associate-Contacts-with-Companies/m-p/878138#M69000</guid>
      <dc:creator>Mike_Eastwood</dc:creator>
      <dc:date>2023-11-10T22:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to associate Contacts with Companies</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-associate-Contacts-with-Companies/m-p/878597#M69019</link>
      <description>&lt;P&gt;Hi! Thank you for your reply. I'll check the links, I'll let you know if it worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 14:15:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-associate-Contacts-with-Companies/m-p/878597#M69019</guid>
      <dc:creator>MGranadosAria</dc:creator>
      <dc:date>2023-11-13T14:15:44Z</dc:date>
    </item>
  </channel>
</rss>

