<?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: How to get all options from a select field from HubDB from within a module? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-options-from-a-select-field-from-HubDB-from/m-p/674366#M55428</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/417865"&gt;@LBenediktson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the &lt;A href="https://developers.hubspot.com/docs/cms/hubl/functions#hubdb-table-column" target="_blank" rel="noopener"&gt;hubdb_table_column&lt;/A&gt; function for this. You can simply pass it the Table ID and the Column ID (or name) and you can then access the options:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% set column_info = hubdb_table_column(&amp;lt;tableID&amp;gt;, &amp;lt;columnID&amp;gt;)  %} 
{{ column_info.options|pprinnt }}&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 02 Aug 2022 17:41:16 GMT</pubDate>
    <dc:creator>Teun</dc:creator>
    <dc:date>2022-08-02T17:41:16Z</dc:date>
    <item>
      <title>How to get all options from a select field from HubDB from within a module?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-options-from-a-select-field-from-HubDB-from/m-p/674328#M55424</link>
      <description>&lt;P&gt;Lets use an example to make it easier to understand&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list in hubdb. Each item in that list has a property called type which is then selected from the select list. Lets say it can be "Type A", "Type B" and "Type C". These are then intended to be filtered based on the type in a custom module I've created. I could create three buttons that will sort this with hardcoded type values.&lt;/P&gt;&lt;P&gt;The problem comes when this exact module are to be used with items in another list that has the types "Type D", "Type E" and "Type F".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i retrieve all possible options from this select?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 16:57:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-options-from-a-select-field-from-HubDB-from/m-p/674328#M55424</guid>
      <dc:creator>LBenediktson</dc:creator>
      <dc:date>2022-08-02T16:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all options from a select field from HubDB from within a module?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-options-from-a-select-field-from-HubDB-from/m-p/674366#M55428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/417865"&gt;@LBenediktson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the &lt;A href="https://developers.hubspot.com/docs/cms/hubl/functions#hubdb-table-column" target="_blank" rel="noopener"&gt;hubdb_table_column&lt;/A&gt; function for this. You can simply pass it the Table ID and the Column ID (or name) and you can then access the options:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% set column_info = hubdb_table_column(&amp;lt;tableID&amp;gt;, &amp;lt;columnID&amp;gt;)  %} 
{{ column_info.options|pprinnt }}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 02 Aug 2022 17:41:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-all-options-from-a-select-field-from-HubDB-from/m-p/674366#M55428</guid>
      <dc:creator>Teun</dc:creator>
      <dc:date>2022-08-02T17:41:16Z</dc:date>
    </item>
  </channel>
</rss>

