<?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: Passing hubdb foreign ID response into custom module using HubDB row field in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Passing-hubdb-foreign-ID-response-into-custom-module-using-HubDB/m-p/524976#M26097</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/185932"&gt;@jonflynnh2o&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the solution you're looking for.&amp;nbsp; We found your post trying to do the exact same thing, and our dude's figure it out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using a module that has a HubDB row field in it, and then try to programmatically pass a selection from that field inside the module itself, you will likely struggle to figure out how to reference the selection of a hubDB row.&amp;nbsp; Why?&amp;nbsp; Because the &lt;A href="https://developers.hubspot.com/en/docs/cms/building-blocks/modules/using-modules-in-templates" target="_blank" rel="noopener"&gt;page that shows how to reference fields inside module&lt;/A&gt;s has every other conceivable field other than a HubDB Row.&amp;nbsp; Has the UbDB Table, but not a row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's how you pass a hubDB row field selection inside a module that is referencing a table using a foreign key:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hubDB_row_selection_field_being_passed_to_custom_module={id={{hubDB_foreign_key_field_in_table.hs_id}}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Nov 2021 20:35:51 GMT</pubDate>
    <dc:creator>CP-BWG</dc:creator>
    <dc:date>2021-11-11T20:35:51Z</dc:date>
    <item>
      <title>Passing hubdb foreign ID response into custom module using HubDB row field</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Passing-hubdb-foreign-ID-response-into-custom-module-using-HubDB/m-p/437657#M23082</link>
      <description>&lt;P&gt;We have a custom module using the new HubDB row as a field. As part of a dynamic page template, we're grabbing some rows from a hubdb table using the foreign ID field and then attempting to pass it into the module in hopes it will fill the hubdb row field, like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% module "services" path="../modules/U3M Reusable HubDB Page Card", 
service_picker={{ dynamic_page_hubdb_row.services_offered }} %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 'service_picker' is the hubdb row field within the module and what we're trying to pass through is the response from the hubdb foreign ID field. Both fields give a different hubl dictionary in the response so this doesn't work, how could we manipulate the response so they can be compatible with each other?&lt;/P&gt;</description>
      <pubDate>Sat, 15 May 2021 16:33:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Passing-hubdb-foreign-ID-response-into-custom-module-using-HubDB/m-p/437657#M23082</guid>
      <dc:creator>jonflynnh2o</dc:creator>
      <dc:date>2021-05-15T16:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Passing hubdb foreign ID response into custom module using HubDB row field</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Passing-hubdb-foreign-ID-response-into-custom-module-using-HubDB/m-p/437783#M23095</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/138846"&gt;@kierana&lt;/a&gt; , &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73772"&gt;@Kevin-C&lt;/a&gt;&amp;nbsp; any thoughts here?&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 19:42:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Passing-hubdb-foreign-ID-response-into-custom-module-using-HubDB/m-p/437783#M23095</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-05-14T19:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Passing hubdb foreign ID response into custom module using HubDB row field</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Passing-hubdb-foreign-ID-response-into-custom-module-using-HubDB/m-p/440253#M23232</link>
      <description>&lt;P&gt;I ended up creating a dummy hubdb table field inside the module and passing in the foreign IDs via that. However, not really ideal, I also mutated the foreign ID dictionary to be identical to that of the response of the hubdb rows and it still did not accept it.&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 09:43:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Passing-hubdb-foreign-ID-response-into-custom-module-using-HubDB/m-p/440253#M23232</guid>
      <dc:creator>jonflynnh2o</dc:creator>
      <dc:date>2021-05-24T09:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Passing hubdb foreign ID response into custom module using HubDB row field</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Passing-hubdb-foreign-ID-response-into-custom-module-using-HubDB/m-p/524976#M26097</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/185932"&gt;@jonflynnh2o&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the solution you're looking for.&amp;nbsp; We found your post trying to do the exact same thing, and our dude's figure it out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using a module that has a HubDB row field in it, and then try to programmatically pass a selection from that field inside the module itself, you will likely struggle to figure out how to reference the selection of a hubDB row.&amp;nbsp; Why?&amp;nbsp; Because the &lt;A href="https://developers.hubspot.com/en/docs/cms/building-blocks/modules/using-modules-in-templates" target="_blank" rel="noopener"&gt;page that shows how to reference fields inside module&lt;/A&gt;s has every other conceivable field other than a HubDB Row.&amp;nbsp; Has the UbDB Table, but not a row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's how you pass a hubDB row field selection inside a module that is referencing a table using a foreign key:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hubDB_row_selection_field_being_passed_to_custom_module={id={{hubDB_foreign_key_field_in_table.hs_id}}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 20:35:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Passing-hubdb-foreign-ID-response-into-custom-module-using-HubDB/m-p/524976#M26097</guid>
      <dc:creator>CP-BWG</dc:creator>
      <dc:date>2021-11-11T20:35:51Z</dc:date>
    </item>
  </channel>
</rss>

