CMS Development

Luke-Simp
Participant

Linking HubDB table + CRM object by matching values

SOLVE

Hi all,

 

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).

 

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.

 

 

<h2>Jeff's Visible Book Chapters</h2>
{% for row in hubdb_table_rows(5643545, "type_of_publication=Book chapter&visible=yes&orderBy=-year_published") %}
{% if row.name == "module.person.properties.preferred_full_name" %}
{{row.name_of_authors}} ({{ row.year_published }}). <em>{{ row.publication_title}}</em>. {{row.booksbook_chaptersmusic_publisher_name_and_place}} <br>
{% endif %}
{% endfor %}

 

 

LukeSimp_0-1673914808577.png

 

0 Upvotes
1 Accepted solution
alyssamwilie
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Linking HubDB table + CRM object by matching values

SOLVE

I believe if you remove the quotations in the following line it should work:

{% if row.name == "module.person.properties.preferred_full_name" %}

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.

View solution in original post

2 Replies 2
Luke-Simp
Participant

Linking HubDB table + CRM object by matching values

SOLVE

Thanks again. Really appreciate it.

0 Upvotes
alyssamwilie
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Linking HubDB table + CRM object by matching values

SOLVE

I believe if you remove the quotations in the following line it should work:

{% if row.name == "module.person.properties.preferred_full_name" %}

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.