<?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 Retrieve company by domain in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-company-by-domain/m-p/752039#M61141</link>
    <description>&lt;P&gt;Looking at the &lt;A href="https://developers.hubspot.com/docs/api/crm/companies" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;&amp;nbsp;it is (should be) possible to use the &amp;amp;idProperty={unique_field} parameter in the query string, when getting a company. Thus:&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;/crm/v3/objects/companies/microsoft.com?idProperty=domain&lt;/STRONG&gt; should return the company with the domain "microsoft.com".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, it returns 404 in all cases. I also tried without "." and URL encoding the "." charaters - with same result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;Excerpt from the API documentation:&lt;/U&gt;&lt;BR /&gt;Read an Object identified by&amp;nbsp;{companyId}.&amp;nbsp;{companyId}&amp;nbsp;refers to the internal object ID by default, or optionally any unique property value as specified by the&amp;nbsp;idProperty&amp;nbsp;query param. Control what is returned via the&amp;nbsp;properties&amp;nbsp;query param.&lt;BR /&gt;&lt;BR /&gt;Is this a bug?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 11:39:16 GMT</pubDate>
    <dc:creator>michaelrandrup</dc:creator>
    <dc:date>2023-02-06T11:39:16Z</dc:date>
    <item>
      <title>Retrieve company by domain</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-company-by-domain/m-p/752039#M61141</link>
      <description>&lt;P&gt;Looking at the &lt;A href="https://developers.hubspot.com/docs/api/crm/companies" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;&amp;nbsp;it is (should be) possible to use the &amp;amp;idProperty={unique_field} parameter in the query string, when getting a company. Thus:&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;/crm/v3/objects/companies/microsoft.com?idProperty=domain&lt;/STRONG&gt; should return the company with the domain "microsoft.com".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, it returns 404 in all cases. I also tried without "." and URL encoding the "." charaters - with same result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;Excerpt from the API documentation:&lt;/U&gt;&lt;BR /&gt;Read an Object identified by&amp;nbsp;{companyId}.&amp;nbsp;{companyId}&amp;nbsp;refers to the internal object ID by default, or optionally any unique property value as specified by the&amp;nbsp;idProperty&amp;nbsp;query param. Control what is returned via the&amp;nbsp;properties&amp;nbsp;query param.&lt;BR /&gt;&lt;BR /&gt;Is this a bug?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 11:39:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-company-by-domain/m-p/752039#M61141</guid>
      <dc:creator>michaelrandrup</dc:creator>
      <dc:date>2023-02-06T11:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve company by domain</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-company-by-domain/m-p/752924#M61204</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/516641"&gt;@michaelrandrup&lt;/a&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; I do not believe this is a bug. It appears to work as designed, but not as we expect.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There is no documentation for this, so I am extrapolating a bit here.&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;Domain is an “old” property in HubSpot&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;Domain is a “unique identifier” for deduplication of the Company object&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;The ability to set a Property as “has unique value” is a much newer feature&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;If we query the Company property — Domain, in the&lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/properties" target="_blank"&gt; &lt;SPAN&gt;Properties API&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;, we can see the “hasUniqueValue” flag is set to &lt;/SPAN&gt;&lt;STRONG&gt;false&lt;/STRONG&gt;&lt;SPAN&gt; — "hasUniqueValue": false&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="notU.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/84875iCA5707FD7191893D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="notU.png" alt="notU.png" /&gt;&lt;/span&gt;
&lt;P&gt; &lt;/P&gt;
&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;This seems to be the root issue, the missing flag&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;One question, for testing purposes, have you tried creating a custom single-line-text property, adding an example URL to a Company, and then trying to use the custom property in your query?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Best,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jaycee&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 18:23:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-company-by-domain/m-p/752924#M61204</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-02-07T18:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve company by domain</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-company-by-domain/m-p/752934#M61207</link>
      <description>Thanks for your reply Jaycee!&lt;BR /&gt;&lt;BR /&gt;No, creating a unique custom property would be the next test (Which would probably work as per your explanation). As a workaround I am simply using the “Search API” instead - but, I just find it strange since “domain” is inherently a unique property, like “email” on the Contact object, that it cannot be used in the newest Company API.&lt;BR /&gt;Regards&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Feb 2023 18:45:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-company-by-domain/m-p/752934#M61207</guid>
      <dc:creator>michaelrandrup</dc:creator>
      <dc:date>2023-02-07T18:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve company by domain</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-company-by-domain/m-p/752940#M61208</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/516641"&gt;@michaelrandrup&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; I agree on weirdness. I expected it to work as well. And you already addressed my other suggestion, the Search API &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the update. Have a great day! — Jaycee&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 18:52:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-company-by-domain/m-p/752940#M61208</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-02-07T18:52:18Z</dc:date>
    </item>
  </channel>
</rss>

