<?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 Creating a new company via API works fine, but initial return company name is empty in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-new-company-via-API-works-fine-but-initial-return/m-p/430974#M42833</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been seeing this problem fairly regularly when creating new companies via API. I add the domain name (and HS fills in the rest upon creation)... that works fine, but the company object returned from the POST usually doesn't have any of the HS-filled properties filled in (e.g., Name). I have to re-query to get them. BTW, the new company ID comes back every time as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something, or is this by design?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dushan&lt;/P&gt;</description>
    <pubDate>Fri, 23 Apr 2021 15:26:16 GMT</pubDate>
    <dc:creator>DBilbija</dc:creator>
    <dc:date>2021-04-23T15:26:16Z</dc:date>
    <item>
      <title>Creating a new company via API works fine, but initial return company name is empty</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-new-company-via-API-works-fine-but-initial-return/m-p/430974#M42833</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been seeing this problem fairly regularly when creating new companies via API. I add the domain name (and HS fills in the rest upon creation)... that works fine, but the company object returned from the POST usually doesn't have any of the HS-filled properties filled in (e.g., Name). I have to re-query to get them. BTW, the new company ID comes back every time as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something, or is this by design?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dushan&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 15:26:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-new-company-via-API-works-fine-but-initial-return/m-p/430974#M42833</guid>
      <dc:creator>DBilbija</dc:creator>
      <dc:date>2021-04-23T15:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new company via API works fine, but initial return company name is empty</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-new-company-via-API-works-fine-but-initial-return/m-p/431341#M42834</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/184950"&gt;@DBilbija&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to tag some of our experts on this&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/111324"&gt;@frederic_Marken&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76423"&gt;@MichaelC&lt;/a&gt;&amp;nbsp;do you have any thoughts on this for &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/184950"&gt;@DBilbija&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;Tiphaine&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 13:06:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-new-company-via-API-works-fine-but-initial-return/m-p/431341#M42834</guid>
      <dc:creator>TitiCuisset</dc:creator>
      <dc:date>2021-04-26T13:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new company via API works fine, but initial return company name is empty</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-new-company-via-API-works-fine-but-initial-return/m-p/431362#M42837</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/184950"&gt;@DBilbija&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/89150"&gt;@TitiCuisset&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the API Documentation here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/companies" target="_blank"&gt;https://developers.hubspot.com/docs/api/crm/companies&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Endpoint create.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result should return some basic properties like: name, phone, state et cetera. BUT - you will only get back properties for properties you actually added in your post.&lt;/P&gt;&lt;P&gt;Since you only post the URL (domain name) the company actually does not have a name when you created it - it only has an ID and an URL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once the company is created (and you already got your first response) hubspot may add company information based on the URL. But this step does not happend upon creation. It happens a millisecond after you created the company and got your first response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So - to shortly answer your question: Yes, you are correct. You have to make a second GET request with the ID to get the company data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="56.22246611887686%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="84px"&gt;You&lt;/TD&gt;&lt;TD width="25%" height="84px"&gt;Hubspot&lt;/TD&gt;&lt;TD width="25%" height="84px"&gt;Data from third pary (where HS get data through url). It might also be located within hubspots own database.&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="30px"&gt;1. Creating company &amp;gt; (request)&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;lt; 2. Company Created (response)&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;3. Request company data &amp;gt; (request)&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;lt; 4. Company name and data (response)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="30px"&gt;What you want to have:&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="30px"&gt;1. Creating company --&amp;gt; (request)&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;2. Creating company&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;3. Request company data by URL &amp;gt; (request)&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%"&gt;&amp;lt; 4. Company name and data (response)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;lt; 5. Company Created (response) with data.&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would say that its very unlikely to get what you want in this case. You simply have to make a second call and hope that hubspot has completed step 3 and 4 in time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 13:33:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-new-company-via-API-works-fine-but-initial-return/m-p/431362#M42837</guid>
      <dc:creator>MichaelC</dc:creator>
      <dc:date>2021-04-26T13:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new company via API works fine, but initial return company name is empty</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-new-company-via-API-works-fine-but-initial-return/m-p/431370#M42838</link>
      <description>&lt;P&gt;Ok, cool. Odd that there isn't a 202 response, which can then let the requestor know it's in process.&amp;nbsp; I don't send the name (and other fields) since that would imply to HS that I want my name to be whatever I send (even if blank).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Easy enough tho... simple re-query will do the trick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx, Michael!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 13:44:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-new-company-via-API-works-fine-but-initial-return/m-p/431370#M42838</guid>
      <dc:creator>DBilbija</dc:creator>
      <dc:date>2021-04-26T13:44:55Z</dc:date>
    </item>
  </channel>
</rss>

