<?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 Get the company Id in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Get-the-company-Id/m-p/235879#M14775</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to add a new deal to the contacts of a company, but first it is required to set the 'associatedcompanyid' property to the contact so you can create a deal and associate that deal to the contact.&lt;BR /&gt;
I tried to set that 'associatedcompanyid' but I think I am using the wrong companyId, since the request returns me a 400 error with the following message 'XXXX is not a valid company'. I realised I was using the hub-id instead of a company Id, but I have no idea which is the company id or where to find it.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2018 10:02:23 GMT</pubDate>
    <dc:creator>german1</dc:creator>
    <dc:date>2018-09-13T10:02:23Z</dc:date>
    <item>
      <title>Get the company Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-the-company-Id/m-p/235879#M14775</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to add a new deal to the contacts of a company, but first it is required to set the 'associatedcompanyid' property to the contact so you can create a deal and associate that deal to the contact.&lt;BR /&gt;
I tried to set that 'associatedcompanyid' but I think I am using the wrong companyId, since the request returns me a 400 error with the following message 'XXXX is not a valid company'. I realised I was using the hub-id instead of a company Id, but I have no idea which is the company id or where to find it.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 10:02:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-the-company-Id/m-p/235879#M14775</guid>
      <dc:creator>german1</dc:creator>
      <dc:date>2018-09-13T10:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get the company Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-the-company-Id/m-p/235880#M14776</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;companyID and associatedcompanyid can accessed via API.&lt;/P&gt;
&lt;P&gt;companyID can be found here on the company object. &lt;A href="https://developers.hubspot.com/docs/methods/companies/get_company_contacts" rel="nofollow noopener"&gt;https://developers.hubspot.com/docs/methods/companies/get_company_contacts&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;associatedcompanyID can be found here: &lt;A href="https://developers.hubspot.com/docs/methods/companies/get_company_contacts" rel="nofollow noopener"&gt;https://developers.hubspot.com/docs/methods/companies/get_company_contacts&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best,&lt;BR /&gt;
Flora&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 19:00:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-the-company-Id/m-p/235880#M14776</guid>
      <dc:creator>Flora</dc:creator>
      <dc:date>2018-09-13T19:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get the company Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-the-company-Id/m-p/235881#M14777</link>
      <description>&lt;P&gt;Thanks for your help! I end up doing another query to add the deal to the contact, without any companyId.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 15:07:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-the-company-Id/m-p/235881#M14777</guid>
      <dc:creator>german1</dc:creator>
      <dc:date>2018-11-21T15:07:09Z</dc:date>
    </item>
  </channel>
</rss>

