<?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 Meaning of &amp;quot;in&amp;quot;, &amp;quot;nin&amp;quot; query operators of crm_objects function in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Meaning-of-quot-in-quot-quot-nin-quot-query-operators-of-crm/m-p/1126989#M42509</link>
    <description>&lt;P&gt;The full list of query operators for the crm_objects function can be found here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/reference/cms/hubl/functions#crm_objects" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/reference/cms/hubl/functions#crm_objects&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, there is no clear explanation of what the more advanced operators actually do (i.e. in, nin, etc.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read (somewhere) that the "in" operator only operates on options properties, but I can't seem to locate a definitive answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My use case is this in hubl email template:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;{% set properties_list = "stringa,stringb,stringc" %}&lt;BR /&gt;{% set objects = crm_objects("CUST_OBJECT", "PROPERTY__in=" + properties_list, "propertya,propertyb,propertyc") %}&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However this results zero results. If I clear the __in suffix and use a single property value, everything works as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize &lt;STRONG&gt;crm_objects&lt;/STRONG&gt; query is "ANDed", so this my attempt at querying CUST_OBJECT by multiple string values.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Mar 2025 04:27:53 GMT</pubDate>
    <dc:creator>jskowronek</dc:creator>
    <dc:date>2025-03-25T04:27:53Z</dc:date>
    <item>
      <title>Meaning of "in", "nin" query operators of crm_objects function</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Meaning-of-quot-in-quot-quot-nin-quot-query-operators-of-crm/m-p/1126989#M42509</link>
      <description>&lt;P&gt;The full list of query operators for the crm_objects function can be found here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/reference/cms/hubl/functions#crm_objects" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/reference/cms/hubl/functions#crm_objects&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, there is no clear explanation of what the more advanced operators actually do (i.e. in, nin, etc.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read (somewhere) that the "in" operator only operates on options properties, but I can't seem to locate a definitive answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My use case is this in hubl email template:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;{% set properties_list = "stringa,stringb,stringc" %}&lt;BR /&gt;{% set objects = crm_objects("CUST_OBJECT", "PROPERTY__in=" + properties_list, "propertya,propertyb,propertyc") %}&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However this results zero results. If I clear the __in suffix and use a single property value, everything works as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize &lt;STRONG&gt;crm_objects&lt;/STRONG&gt; query is "ANDed", so this my attempt at querying CUST_OBJECT by multiple string values.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 04:27:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Meaning-of-quot-in-quot-quot-nin-quot-query-operators-of-crm/m-p/1126989#M42509</guid>
      <dc:creator>jskowronek</dc:creator>
      <dc:date>2025-03-25T04:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Meaning of "in", "nin" query operators of crm_objects function</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Meaning-of-quot-in-quot-quot-nin-quot-query-operators-of-crm/m-p/1127339#M42520</link>
      <description>&lt;P&gt;Hey, &lt;SPAN style="color:var(--ck-color-mention-text);"&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/78689"&gt;@jskowronek&lt;/a&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your post.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had a few questions to help give our community members more information.&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;Are you trying to query records where a &lt;STRONG&gt;single property&lt;/STRONG&gt; might match any of multiple values? (For example, finding contacts where `status` is either "lead," "customer," or "partner")&lt;/LI&gt;
 &lt;LI&gt;Or are you trying to query records that match &lt;STRONG&gt;multiple properties&lt;/STRONG&gt;, each with their own value? (For example, finding contacts where `firstname` = "John" AND `email` contains "company.com")&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the operators:&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;`in`: Returns objects where the property value matches ANY of the given values (is IN the list)&lt;/LI&gt;
 &lt;LI&gt;`nin`: Returns objects where the property value does NOT match ANY of the given values (is NOT IN the list)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;My read of the &lt;A href="https://developers.hubspot.com/docs/reference/cms/hubl/functions#crm_objects:~:text=What%20is%20the%20difference%20between,all%20of%20the%20given%20values." target="_blank"&gt;&lt;STRONG&gt;documentation&lt;/STRONG&gt;&lt;/A&gt;:&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;`in` checks if the property value matches ANY of the given values&lt;/LI&gt;
 &lt;LI&gt;`contains` checks if a multi-select property contains ALL of the given values&lt;BR /&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks for the additional information! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 17:11:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Meaning-of-quot-in-quot-quot-nin-quot-query-operators-of-crm/m-p/1127339#M42520</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-03-25T17:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Meaning of "in", "nin" query operators of crm_objects function</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Meaning-of-quot-in-quot-quot-nin-quot-query-operators-of-crm/m-p/1127454#M42521</link>
      <description>&lt;P&gt;Thank you for the quick response and for the evidence of my hypothesis. Any ideas on the second part of my question then? If I do an exact match query "property__eq=VALUE" (expected results) as opposed to "property__in=VALUE,VALUEB" (zero results). Does the in operator only apply to dropdown/picklists? Or does it apply to string properties as well?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UPDATE:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just noticed your link is to "crm_object" and not "crm_objects". Would that matter?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 20:47:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Meaning-of-quot-in-quot-quot-nin-quot-query-operators-of-crm/m-p/1127454#M42521</guid>
      <dc:creator>jskowronek</dc:creator>
      <dc:date>2025-03-25T20:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Meaning of "in", "nin" query operators of crm_objects function</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Meaning-of-quot-in-quot-quot-nin-quot-query-operators-of-crm/m-p/1127538#M42522</link>
      <description>&lt;P&gt;FWIW, unless anyone corrects this, my assumption is that the HubL crm_object(s) function queries behave as the HubDB API docs in that "in" and "nin" apply only to number, select, and multiselect (as I has stated earlier but couldn't find where I'd seen this):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/guides/api/cms/hubdb#filter-returned-rows" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/guides/api/cms/hubdb#filter-returned-rows&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 01:09:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Meaning-of-quot-in-quot-quot-nin-quot-query-operators-of-crm/m-p/1127538#M42522</guid>
      <dc:creator>jskowronek</dc:creator>
      <dc:date>2025-03-26T01:09:03Z</dc:date>
    </item>
  </channel>
</rss>

