<?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 Filter by custom field of a company in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-by-custom-field-of-a-company/m-p/800486#M64453</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to filter companies by their values of a custom field. For this I use the /crm/v3/objects/companies/search endpoint and add the following body:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "helloHQSystemUrl",
          "operator": "EQ",
          "value": "hq.hellohq.io"
        }
      ]
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;helloHQSystemUrl is a custom field.&amp;nbsp;&lt;BR /&gt;I get and error back:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
	"status": "error",
	"message": "There was a problem with the request.",
	"correlationId": "e9004514-cfa0-419b-9c54-7a90ee311ea6"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I change&amp;nbsp;helloHQSystemUrl to name for example, then the request works...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2023 12:58:27 GMT</pubDate>
    <dc:creator>Svenson</dc:creator>
    <dc:date>2023-05-30T12:58:27Z</dc:date>
    <item>
      <title>Filter by custom field of a company</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-by-custom-field-of-a-company/m-p/800486#M64453</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to filter companies by their values of a custom field. For this I use the /crm/v3/objects/companies/search endpoint and add the following body:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "helloHQSystemUrl",
          "operator": "EQ",
          "value": "hq.hellohq.io"
        }
      ]
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;helloHQSystemUrl is a custom field.&amp;nbsp;&lt;BR /&gt;I get and error back:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
	"status": "error",
	"message": "There was a problem with the request.",
	"correlationId": "e9004514-cfa0-419b-9c54-7a90ee311ea6"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I change&amp;nbsp;helloHQSystemUrl to name for example, then the request works...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 12:58:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-by-custom-field-of-a-company/m-p/800486#M64453</guid>
      <dc:creator>Svenson</dc:creator>
      <dc:date>2023-05-30T12:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filter by custom field of a company</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-by-custom-field-of-a-company/m-p/800845#M64469</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/576427"&gt;@Svenson&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Did you get this worked out? If not, I have a few questions and a suggestion.&lt;/P&gt;
&lt;P&gt;Questions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Can you navigate to Settings &amp;gt; Properties &amp;gt; Companies and search for your property, please?&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI-CODE lang="javascript"&gt;helloHQSystemUrl&lt;/LI-CODE&gt;
&lt;UL&gt;
&lt;LI&gt;From there, click on the “&lt;STRONG&gt;&amp;lt;/&amp;gt;&lt;/STRONG&gt;” icon and note the internal value for the property. Is it &lt;EM&gt;lowercase&lt;/EM&gt;? (screenshot from my portal and quick test)&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2023-05-30 at 18.57.09@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/91986iFE30F92D13569B21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2023-05-30 at 18.57.09@2x.png" alt="CleanShot 2023-05-30 at 18.57.09@2x.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;If so, can you re-try your request using the all&amp;nbsp;&lt;EM&gt;lowercase&lt;/EM&gt; value, please?&lt;/LI&gt;
&lt;LI&gt;If not, will you add a screenshot like mine showing the internal value in &lt;EM&gt;mixed case&lt;/EM&gt;, please?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example using my portal:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I used the custom Company property from above and assigned it to one of my test Companies — Bob's Burger's&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2023-05-30 at 19.01.09@2x.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/91989i81E1AF18C2758CB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2023-05-30 at 19.01.09@2x.png" alt="CleanShot 2023-05-30 at 19.01.09@2x.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;I used Postman to make a similar request to your example:&lt;BR /&gt;Request&lt;BR /&gt;&lt;LI-CODE lang="javascript"&gt;POST https://api.hubapi.com/crm/v3/objects/companies/search​&lt;/LI-CODE&gt;&lt;BR /&gt;Body&lt;BR /&gt;&lt;LI-CODE lang="javascript"&gt;{"filterGroups":[{
    "filters":[
        {
    "propertyName":"hellohqsystemurl",
     "operator":"EQ",
      "value":"hq.hellohq.io"
        }
]
}
]
}​&lt;/LI-CODE&gt;&lt;BR /&gt;Response (success!)&lt;BR /&gt;&lt;LI-CODE lang="javascript"&gt;{
    "total": 1,
    "results": [
        {
            "id": "10202231613",
            "properties": {
                "createdate": "2022-11-29T19:11:33.392Z",
                "domain": "bobsburgers.com",
                "hs_lastmodifieddate": "2023-05-31T00:50:43.511Z",
                "hs_object_id": "10202231613",
                "name": "Bob's Burgers"
            },
            "createdAt": "2022-11-29T19:11:33.392Z",
            "updatedAt": "2023-05-31T00:50:43.511Z",
            "archived": false
        }
    ]
}​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks for the additional information! — Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 01:07:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-by-custom-field-of-a-company/m-p/800845#M64469</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-05-31T01:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter by custom field of a company</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-by-custom-field-of-a-company/m-p/800923#M64476</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;works ;). Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Sven&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 06:35:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-by-custom-field-of-a-company/m-p/800923#M64476</guid>
      <dc:creator>Svenson</dc:creator>
      <dc:date>2023-05-31T06:35:00Z</dc:date>
    </item>
  </channel>
</rss>

