<?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 Re: Filter read contacts on custom field in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-read-contacts-on-custom-field/m-p/854824#M67703</link>
    <description>&lt;P&gt;Actually, what about paging there?&lt;BR /&gt;I did a test with limit = 1 (had only 2 items with said field)&lt;BR /&gt;&lt;BR /&gt;And it returns&amp;nbsp;&lt;/P&gt;&lt;P&gt;"paging":{"next":{"after":"1"}}}&lt;BR /&gt;&lt;BR /&gt;what is the next call to make for next page then?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 14:24:45 GMT</pubDate>
    <dc:creator>KimS</dc:creator>
    <dc:date>2023-09-25T14:24:45Z</dc:date>
    <item>
      <title>Filter read contacts on custom field</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-read-contacts-on-custom-field/m-p/854713#M67695</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I need to query contacts that have a specific custom field filled. How can I do this?&lt;/P&gt;&lt;P&gt;I found this in the documentation ( &lt;A href="https://developers.hubspot.com/docs/api/crm/contacts" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/contacts&lt;/A&gt;&amp;nbsp;) but it's not clear what each field is for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --request POST \
  --url 'https://api.hubapi.com/crm/v3/objects/contacts/batch/read?archived=false' \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'content-type: application/json' \
  --data '{
  "properties": [
    "string"
  ],
  "propertiesWithHistory": [
    "string"
  ],
  "idProperty": "string",
  "inputs": [
    {
      "id": "string"
    }
  ]
}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 10:55:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-read-contacts-on-custom-field/m-p/854713#M67695</guid>
      <dc:creator>KimS</dc:creator>
      <dc:date>2023-09-25T10:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Filter read contacts on custom field</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-read-contacts-on-custom-field/m-p/854755#M67697</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/636939"&gt;@KimS&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;You can use `/crm/v3/objects/contact/search` endpoint instead (to search contacts by any of their properties). It should be more understandable. Here is a callback example:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl 'https://api.hubapi.com/crm/v3/objects/contact/search' \
  -H 'authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'content-type: application/json' \
  --data '{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "PROPERTY_NAME_TO_FILTER/SEARCH",
          "operator": "EQ",
          "value": "YOUR_VALUE_TO_SEARCH_IN_THE_PROPERTY"
        }
      ]
    }
  ],
  "properties": [
    "property_name1_to_include_in_the_results_for_all_found_contacts",
    "property_name2_to_include_in_the_results_for_all_found_contacts"
  ],
  "limit": 10
}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 12:48:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-read-contacts-on-custom-field/m-p/854755#M67697</guid>
      <dc:creator>bohart</dc:creator>
      <dc:date>2023-09-25T12:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter read contacts on custom field</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-read-contacts-on-custom-field/m-p/854763#M67698</link>
      <description>&lt;P&gt;Thank you very much, works like a charm.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 12:57:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-read-contacts-on-custom-field/m-p/854763#M67698</guid>
      <dc:creator>KimS</dc:creator>
      <dc:date>2023-09-25T12:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filter read contacts on custom field</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Filter-read-contacts-on-custom-field/m-p/854824#M67703</link>
      <description>&lt;P&gt;Actually, what about paging there?&lt;BR /&gt;I did a test with limit = 1 (had only 2 items with said field)&lt;BR /&gt;&lt;BR /&gt;And it returns&amp;nbsp;&lt;/P&gt;&lt;P&gt;"paging":{"next":{"after":"1"}}}&lt;BR /&gt;&lt;BR /&gt;what is the next call to make for next page then?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 14:24:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Filter-read-contacts-on-custom-field/m-p/854824#M67703</guid>
      <dc:creator>KimS</dc:creator>
      <dc:date>2023-09-25T14:24:45Z</dc:date>
    </item>
  </channel>
</rss>

