<?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: Get every contact associated with a company, regardless of whether the contact is primary or not in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Get-every-contact-associated-with-a-company-regardless-of/m-p/952660#M72392</link>
    <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/718707"&gt;@ChrisMagtoto&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might be a better solution, if we just had to deal with one Contact/Company,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It won't be an optimized way in my case, though, as I'll have to retrieve the Contact association for hundreds of Companies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way that we could use Batch Association and achieve the same?&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2024 11:25:34 GMT</pubDate>
    <dc:creator>SS0</dc:creator>
    <dc:date>2024-04-01T11:25:34Z</dc:date>
    <item>
      <title>Get every contact associated with a company, regardless of whether the contact is primary or not.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-every-contact-associated-with-a-company-regardless-of/m-p/952630#M72390</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could need to fetch all the contacts associated with a company, regardless of whether the contact is primary or not using&amp;nbsp;&lt;STRONG&gt;batch association API.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/crm/v3/associations/Companies/Contacts/batch/read" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/associations/Companies/Contacts/batch/read&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"inputs"&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"id"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"...."&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"id"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"...."&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This API fetch only the Primary Contacts of the Company.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;All the other Contacts are ignored.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there any way, I can get all the Contacts of Company through batch read Association API?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Apr 2024 09:39:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-every-contact-associated-with-a-company-regardless-of/m-p/952630#M72390</guid>
      <dc:creator>SS0</dc:creator>
      <dc:date>2024-04-01T09:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get every contact associated with a company, regardless of whether the contact is primary or not</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-every-contact-associated-with-a-company-regardless-of/m-p/952657#M72391</link>
      <description>&lt;P data-unlink="true"&gt;Hey, you need to make a call to the &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;/crm/v3/objects/companies/{companyId}?associations=contacts&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; then use the result to populate the ids for your batch call to contacts&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;/crm/v3/objects/contacts/batch/read&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;This way you'll be getting all the associated contacts of a company then you'll be retrieving the info of the contacts which is associated to the company.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 10:42:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-every-contact-associated-with-a-company-regardless-of/m-p/952657#M72391</guid>
      <dc:creator>ChrisMagtoto</dc:creator>
      <dc:date>2024-04-01T10:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get every contact associated with a company, regardless of whether the contact is primary or not</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-every-contact-associated-with-a-company-regardless-of/m-p/952660#M72392</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/718707"&gt;@ChrisMagtoto&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might be a better solution, if we just had to deal with one Contact/Company,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It won't be an optimized way in my case, though, as I'll have to retrieve the Contact association for hundreds of Companies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way that we could use Batch Association and achieve the same?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 11:25:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-every-contact-associated-with-a-company-regardless-of/m-p/952660#M72392</guid>
      <dc:creator>SS0</dc:creator>
      <dc:date>2024-04-01T11:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get every contact associated with a company, regardless of whether the contact is primary or not</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-every-contact-associated-with-a-company-regardless-of/m-p/952686#M72395</link>
      <description>&lt;P&gt;Yes. You can use the batch endpoint for the Associations but if you need to retrieve the properties of the contacts then you will still need to call the batch endpoint for the Contacts object. You'll still make 2 calls (Associations "&lt;SPAN&gt;associations/companies/contacts/batch/read&lt;/SPAN&gt;" &amp;amp; Contacts endpoints) in the API to retrieve the data of a batch contacts.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 12:27:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-every-contact-associated-with-a-company-regardless-of/m-p/952686#M72395</guid>
      <dc:creator>ChrisMagtoto</dc:creator>
      <dc:date>2024-04-01T12:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get every contact associated with a company, regardless of whether the contact is primary or not</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-every-contact-associated-with-a-company-regardless-of/m-p/952694#M72398</link>
      <description>&lt;P&gt;But that's the issue here&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/718707"&gt;@ChrisMagtoto&lt;/a&gt;&amp;nbsp;.&lt;BR /&gt;We don't get the non-primary associations in the batch association endpoint. ('&lt;SPAN&gt;associations/companies/contacts/batch/read'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 13:03:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-every-contact-associated-with-a-company-regardless-of/m-p/952694#M72398</guid>
      <dc:creator>SS0</dc:creator>
      <dc:date>2024-04-01T13:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get every contact associated with a company, regardless of whether the contact is primary or not</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-every-contact-associated-with-a-company-regardless-of/m-p/952700#M72400</link>
      <description>&lt;P&gt;I see. Then you can use v4 for that.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/crm/v4/associations/companies/contacts/batch/read&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 13:19:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-every-contact-associated-with-a-company-regardless-of/m-p/952700#M72400</guid>
      <dc:creator>ChrisMagtoto</dc:creator>
      <dc:date>2024-04-01T13:19:16Z</dc:date>
    </item>
  </channel>
</rss>

