<?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 Linking HubDB table + CRM object by matching values in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Linking-HubDB-table-CRM-object-by-matching-values/m-p/742179#M32338</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking to match CRM object "people" selected in module field to table column value. If match, then show the row info associated with that person. i.e. if "preferred_full_name" in CRM record is "Jeff Aernie" and "name" in HubDB table is "Jeff Aernie", then display listings of books associated with this author (with a few other filters applied).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is what I've got so far. Code works without trying to refer to CRM object but would like to be able to do this. Appreciate the help.&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;&amp;lt;h2&amp;gt;Jeff's Visible Book Chapters&amp;lt;/h2&amp;gt;
{% for row in hubdb_table_rows(5643545, "type_of_publication=Book chapter&amp;amp;visible=yes&amp;amp;orderBy=-year_published") %}
{% if row.name == "module.person.properties.preferred_full_name" %}
{{row.name_of_authors}} ({{ row.year_published }}). &amp;lt;em&amp;gt;{{ row.publication_title}}&amp;lt;/em&amp;gt;. {{row.booksbook_chaptersmusic_publisher_name_and_place}} &amp;lt;br&amp;gt;
{% endif %}
{% endfor %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LukeSimp_0-1673914808577.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/83173i94CC20085E9BB9E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LukeSimp_0-1673914808577.png" alt="LukeSimp_0-1673914808577.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2023 00:26:23 GMT</pubDate>
    <dc:creator>Luke-Simp</dc:creator>
    <dc:date>2023-01-17T00:26:23Z</dc:date>
    <item>
      <title>Linking HubDB table + CRM object by matching values</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Linking-HubDB-table-CRM-object-by-matching-values/m-p/742179#M32338</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking to match CRM object "people" selected in module field to table column value. If match, then show the row info associated with that person. i.e. if "preferred_full_name" in CRM record is "Jeff Aernie" and "name" in HubDB table is "Jeff Aernie", then display listings of books associated with this author (with a few other filters applied).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is what I've got so far. Code works without trying to refer to CRM object but would like to be able to do this. Appreciate the help.&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;&amp;lt;h2&amp;gt;Jeff's Visible Book Chapters&amp;lt;/h2&amp;gt;
{% for row in hubdb_table_rows(5643545, "type_of_publication=Book chapter&amp;amp;visible=yes&amp;amp;orderBy=-year_published") %}
{% if row.name == "module.person.properties.preferred_full_name" %}
{{row.name_of_authors}} ({{ row.year_published }}). &amp;lt;em&amp;gt;{{ row.publication_title}}&amp;lt;/em&amp;gt;. {{row.booksbook_chaptersmusic_publisher_name_and_place}} &amp;lt;br&amp;gt;
{% endif %}
{% endfor %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LukeSimp_0-1673914808577.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/83173i94CC20085E9BB9E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LukeSimp_0-1673914808577.png" alt="LukeSimp_0-1673914808577.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 00:26:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Linking-HubDB-table-CRM-object-by-matching-values/m-p/742179#M32338</guid>
      <dc:creator>Luke-Simp</dc:creator>
      <dc:date>2023-01-17T00:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Linking HubDB table + CRM object by matching values</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Linking-HubDB-table-CRM-object-by-matching-values/m-p/742562#M32346</link>
      <description>&lt;P&gt;I believe if you remove the quotations in the following line it should work:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% if row.name == "module.person.properties.preferred_full_name" %}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 Jan 2023 14:19:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Linking-HubDB-table-CRM-object-by-matching-values/m-p/742562#M32346</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2023-01-17T14:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Linking HubDB table + CRM object by matching values</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Linking-HubDB-table-CRM-object-by-matching-values/m-p/742945#M32356</link>
      <description>&lt;P&gt;Thanks again. Really appreciate it.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 00:39:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Linking-HubDB-table-CRM-object-by-matching-values/m-p/742945#M32356</guid>
      <dc:creator>Luke-Simp</dc:creator>
      <dc:date>2023-01-18T00:39:55Z</dc:date>
    </item>
  </channel>
</rss>

