<?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 Search for Secondary Email in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Search-for-Secondary-Email/m-p/532494#M49034</link>
    <description>&lt;P&gt;Currently we search for Primary and Secondary emails similar to the solution in&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Search-Contacts-for-Secondary-Mail/m-p/358756/highlight/true#M35307" target="_blank" rel="noopener"&gt;https://community.hubspot.com/t5/APIs-Integrations/Search-Contacts-for-Secondary-Mail/m-p/358756/highlight/true#M35307&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem we are having there is that we manually must filter the results IF the email was actually found. (as it will return entries that have only a partial match)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;We have 2 contacts:&lt;BR /&gt;A: &lt;A href="mailto:michael@example.com," target="_blank" rel="noopener"&gt;michael@example.com,&lt;/A&gt;&amp;nbsp;&lt;A href="mailto:mcl@something.else" target="_blank" rel="noopener"&gt;mcl@something.else&lt;/A&gt;&lt;BR /&gt;B: &lt;A href="mailto:michael.schramm@example.com" target="_blank" rel="noopener"&gt;michael.schramm@example.com&lt;/A&gt;, &lt;A href="mailto:michael@muha.at" target="_blank" rel="noopener"&gt;michael.schramm2@example.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We now want to find &lt;A href="mailto:michael@example" target="_blank" rel="noopener"&gt;michael@example.com&lt;/A&gt; and therefor execute the search request:&lt;/P&gt;&lt;PRE&gt;{
  "filterGroups": [
    {
      "filters": [
        {
          "value": "michael@example.com",
          "propertyName": "hs_additional_emails",
          "operator": "CONTAINS_TOKEN"
        }
      ]
    },
    {
      "filters": [
        {
          "value": "michael@example.com",
          "propertyName": "email",
          "operator": "EQ"
        }
      ]
    }
  ]
}&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Will now return both entries...&lt;BR /&gt;&lt;BR /&gt;is there a way to only return exact email matches?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Nov 2021 08:43:58 GMT</pubDate>
    <dc:creator>wodka</dc:creator>
    <dc:date>2021-11-26T08:43:58Z</dc:date>
  </channel>
</rss>

