<?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: Using contact property as filter query in the hubdb_table_rows() function in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Using-contact-property-as-filter-query-in-the-hubdb-table-rows/m-p/723043#M31597</link>
    <description>&lt;P&gt;it's showing syntax error for this&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2022 12:07:11 GMT</pubDate>
    <dc:creator>faizwaris</dc:creator>
    <dc:date>2022-11-25T12:07:11Z</dc:date>
    <item>
      <title>Using contact property as filter query in the hubdb_table_rows() function</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Using-contact-property-as-filter-query-in-the-hubdb-table-rows/m-p/722849#M31587</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a table (id =&amp;nbsp;5461277), two columns in the table are - 'trip_code' and 'trip_name'&lt;BR /&gt;&lt;BR /&gt;I have a contact property named 'drdestination1' which is equal to 'trip_code' value in the table above.&lt;BR /&gt;&lt;BR /&gt;I want to dynamically display 'trip_name' column value for every user with unique 'drdestination1' contact property. I'm not getting any value for 'trip_name' as the filter query passed is not correct. What's the right way to achieve this?&lt;BR /&gt;&lt;BR /&gt;This is the code I'm using -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;{% set abc = contact.drdestination1%}&lt;BR /&gt;Contact Property is: {{abc}}&lt;BR /&gt;{% for row in hubdb_table_rows(5461277, "trip_code=contact.drdestination1") %}&lt;BR /&gt;{{row.trip_name}}&lt;BR /&gt;{% endfor %}&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 22:46:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Using-contact-property-as-filter-query-in-the-hubdb-table-rows/m-p/722849#M31587</guid>
      <dc:creator>faizwaris</dc:creator>
      <dc:date>2022-11-24T22:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using contact property as filter query in the hubdb_table_rows() function</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Using-contact-property-as-filter-query-in-the-hubdb-table-rows/m-p/723018#M31596</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/482208"&gt;@faizwaris&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think that the contact property value is not rendered when you quering your hubdb.&lt;/P&gt;&lt;P&gt;Can you try the following code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% for row in hubdb_table_rows(5461277, "trip_code={{ contact.drdestination1|render }}") %}
    {{row.trip_name}}
{% endfor %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Matthieu&lt;/P&gt;&lt;P&gt;matthieu.berard@markentive.com&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 10:36:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Using-contact-property-as-filter-query-in-the-hubdb-table-rows/m-p/723018#M31596</guid>
      <dc:creator>MBERARD</dc:creator>
      <dc:date>2022-11-25T10:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using contact property as filter query in the hubdb_table_rows() function</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Using-contact-property-as-filter-query-in-the-hubdb-table-rows/m-p/723043#M31597</link>
      <description>&lt;P&gt;it's showing syntax error for this&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 12:07:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Using-contact-property-as-filter-query-in-the-hubdb-table-rows/m-p/723043#M31597</guid>
      <dc:creator>faizwaris</dc:creator>
      <dc:date>2022-11-25T12:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using contact property as filter query in the hubdb_table_rows() function</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Using-contact-property-as-filter-query-in-the-hubdb-table-rows/m-p/938509#M38216</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to filter hubDB rows based on the HubDB row id (hs_id) with in operator on contact property (recommended_courses) which is coma separate text field of ids. To get multiple rows. The constant values in the IN operator work but when contact.recommended_courses it doesn't fetch any data from the hubDB table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my module code. The module is used in the marketing email.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;table style="height: auto;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;font-family: Helvetica,Arial,sans-serif;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;font-weight: 800;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;justify-items: center;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;tr style="display: flex; gap: 12px;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{% set recommended_courses = "158525437772,158525437487,158183984040" %}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{% for courseCatalog in hubdb_table_rows("course_catalog", "hs_id__in="+(contact.recommended_courses || "158183984040,158525437772") |render) %}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;td style="display: grid; width: 33%; grid-template-rows: 110px 116px max-content; align-items: end; justify-items: center;" &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;h3 style="font-family: Helvetica,Arial,sans-serif;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;font-weight: 800;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;align-self: start;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;justify-self: start;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;height: 100px;" &amp;gt;{{ courseCatalog.course_title }}&amp;lt;/h3&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/td&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{% endfor %}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/tr&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/table&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 07:34:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Using-contact-property-as-filter-query-in-the-hubdb-table-rows/m-p/938509#M38216</guid>
      <dc:creator>KarrarJafri</dc:creator>
      <dc:date>2024-03-06T07:34:58Z</dc:date>
    </item>
  </channel>
</rss>

