<?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 Betreff: Custom Object Search Filters dont seem to work in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Object-Search-Filters-dont-seem-to-work/m-p/760056#M61632</link>
    <description>&lt;P&gt;Hello Uther Ali,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Owner Id ist not set automatically if you create a record of a custom object.&lt;/P&gt;&lt;P&gt;You need to first set it in HubSpot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This search request worked for me. I created two custom objects, with two different owner, searched for one and only got one result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;POST https://api.hubapi.com/crm/v3/objects/{{ObjectType}}/search
Authorization: Bearer {{apiToken}}
Content-Type: application/json

{
  "properties": ["hubspot_owner_id"],
  "filterGroups":[
    {
      "filters":[
        {
          "propertyName": "hubspot_owner_id",
          "operator": "EQ",
          "value": "101010101"
        }
      ]
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The `hs_created_by_user_id` gets set automatically on object creation, if you can use this instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps, and if it does, please feel free to mark it as solution, so others can find it more easily &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2023 11:29:43 GMT</pubDate>
    <dc:creator>enrico_baskey</dc:creator>
    <dc:date>2023-02-23T11:29:43Z</dc:date>
    <item>
      <title>Custom Object Search Filters dont seem to work</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Object-Search-Filters-dont-seem-to-work/m-p/760039#M61628</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to filter out custom object records by the hubspot_owner_id.&lt;/P&gt;&lt;P&gt;First of all, it seems that the Owner property which HubSpot creates on each Custom object does not get filled when I receive the data. The 'hubspot_owner_id' just returns null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other issue is that the Search API supports filterGroups, but the filters do not seem to have an impact on the result. I tried filtering by hubspot_owner_id or anything else, but even if I filtered for nonsense, the API would just return the same record (I only created one record for testing purposes).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone had similar issues with custom objects and the API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Uther Ali&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Feb 2023 10:38:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Object-Search-Filters-dont-seem-to-work/m-p/760039#M61628</guid>
      <dc:creator>Uther</dc:creator>
      <dc:date>2023-02-23T10:38:58Z</dc:date>
    </item>
    <item>
      <title>Betreff: Custom Object Search Filters dont seem to work</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Object-Search-Filters-dont-seem-to-work/m-p/760056#M61632</link>
      <description>&lt;P&gt;Hello Uther Ali,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Owner Id ist not set automatically if you create a record of a custom object.&lt;/P&gt;&lt;P&gt;You need to first set it in HubSpot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This search request worked for me. I created two custom objects, with two different owner, searched for one and only got one result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;POST https://api.hubapi.com/crm/v3/objects/{{ObjectType}}/search
Authorization: Bearer {{apiToken}}
Content-Type: application/json

{
  "properties": ["hubspot_owner_id"],
  "filterGroups":[
    {
      "filters":[
        {
          "propertyName": "hubspot_owner_id",
          "operator": "EQ",
          "value": "101010101"
        }
      ]
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The `hs_created_by_user_id` gets set automatically on object creation, if you can use this instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps, and if it does, please feel free to mark it as solution, so others can find it more easily &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 11:29:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Object-Search-Filters-dont-seem-to-work/m-p/760056#M61632</guid>
      <dc:creator>enrico_baskey</dc:creator>
      <dc:date>2023-02-23T11:29:43Z</dc:date>
    </item>
    <item>
      <title>Betreff: Custom Object Search Filters dont seem to work</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Object-Search-Filters-dont-seem-to-work/m-p/760157#M61650</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`hs_created_by_user_id` is also null in my case&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Uther_0-1677162380739.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/86051iF5DF8A6F387FD5AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Uther_0-1677162380739.png" alt="Uther_0-1677162380739.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 14:26:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Object-Search-Filters-dont-seem-to-work/m-p/760157#M61650</guid>
      <dc:creator>Uther</dc:creator>
      <dc:date>2023-02-23T14:26:28Z</dc:date>
    </item>
    <item>
      <title>Betreff: Custom Object Search Filters dont seem to work</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Object-Search-Filters-dont-seem-to-work/m-p/760192#M61654</link>
      <description>&lt;P&gt;Also if i open the property settings it also clearly says that hubspot handles these properties and i cant modify or fill them. ( owner and created_by_user )&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 14:53:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Object-Search-Filters-dont-seem-to-work/m-p/760192#M61654</guid>
      <dc:creator>Uther</dc:creator>
      <dc:date>2023-02-23T14:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Object Search Filters dont seem to work</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Object-Search-Filters-dont-seem-to-work/m-p/760195#M61655</link>
      <description>&lt;P&gt;I've found a workaround using the associations api, i am pulling the ids from there and then batch read from the objects batch read endpoint, which works but the fields that hubspot should manage are still null&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 14:55:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Object-Search-Filters-dont-seem-to-work/m-p/760195#M61655</guid>
      <dc:creator>Uther</dc:creator>
      <dc:date>2023-02-23T14:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Object Search Filters dont seem to work</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Object-Search-Filters-dont-seem-to-work/m-p/760603#M61690</link>
      <description>&lt;P&gt;Bump&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 10:57:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-Object-Search-Filters-dont-seem-to-work/m-p/760603#M61690</guid>
      <dc:creator>Uther</dc:creator>
      <dc:date>2023-02-24T10:57:19Z</dc:date>
    </item>
  </channel>
</rss>

