<?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 Web module linked to CRM Object in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635589#M28765</link>
    <description>&lt;P&gt;Has anyone had any experience creating web modules that pull the data directly from a CRM object instead of HubDB?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used &lt;A href="https://developers.hubspot.com/docs/cms/guides/dynamic-pages/crm-objects" target="_blank" rel="noopener"&gt;this guide&lt;/A&gt; that works, but it makes no mention of select list items. I can only get it to pull in data that are stored in text boxes for example&amp;nbsp;&lt;STRONG&gt;{{ event.name }}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When data is set within an object select list for example&amp;nbsp;&lt;STRONG&gt;{{ event.region }}&amp;nbsp;&lt;/STRONG&gt;the results are blank! I assume I need to add something to this code snippet?&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2022 12:33:24 GMT</pubDate>
    <dc:creator>ben-duchy</dc:creator>
    <dc:date>2022-05-19T12:33:24Z</dc:date>
    <item>
      <title>Web module linked to CRM Object</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635589#M28765</link>
      <description>&lt;P&gt;Has anyone had any experience creating web modules that pull the data directly from a CRM object instead of HubDB?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used &lt;A href="https://developers.hubspot.com/docs/cms/guides/dynamic-pages/crm-objects" target="_blank" rel="noopener"&gt;this guide&lt;/A&gt; that works, but it makes no mention of select list items. I can only get it to pull in data that are stored in text boxes for example&amp;nbsp;&lt;STRONG&gt;{{ event.name }}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When data is set within an object select list for example&amp;nbsp;&lt;STRONG&gt;{{ event.region }}&amp;nbsp;&lt;/STRONG&gt;the results are blank! I assume I need to add something to this code snippet?&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 12:33:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635589#M28765</guid>
      <dc:creator>ben-duchy</dc:creator>
      <dc:date>2022-05-19T12:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Web module linked to CRM Object</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635680#M28770</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/60000"&gt;@ben-duchy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume you're having problems pulling values from dropdown select fields, is that correct ?&lt;/P&gt;
&lt;P&gt;You can try, instead of querying the whole object, to specify the properties you want to return like this :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMeert_0-1652970196860.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/66762i374B6C4316B89F0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="LMeert_0-1652970196860.png" alt="LMeert_0-1652970196860.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've just tried it and it works, when querying your object, specify the properties by adding them in the crm_object() function. You have to list the properties' internal name, between quotes and separated by commas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps !&lt;BR /&gt;If it does, please consider marking this answer as a solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Ludwig&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 14:25:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635680#M28770</guid>
      <dc:creator>LMeert</dc:creator>
      <dc:date>2022-05-19T14:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Web module linked to CRM Object</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635721#M28779</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/257487"&gt;@LMeert&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help with this.&lt;/P&gt;&lt;P&gt;It has indeed worked, however is it possible to format it better?&lt;/P&gt;&lt;P&gt;Current code below...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="object.jpg" style="width: 615px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/66767i378DF1D000755253/image-size/large?v=v2&amp;amp;px=999" role="button" title="object.jpg" alt="object.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 15:24:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635721#M28779</guid>
      <dc:creator>ben-duchy</dc:creator>
      <dc:date>2022-05-19T15:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Web module linked to CRM Object</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635747#M28781</link>
      <description>&lt;P&gt;No worries&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/60000"&gt;@ben-duchy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The design can of course be improved, but that's a matter of CSS I'd say.&lt;/P&gt;
&lt;P&gt;What would you like to improve ?&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 15:46:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635747#M28781</guid>
      <dc:creator>LMeert</dc:creator>
      <dc:date>2022-05-19T15:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Web module linked to CRM Object</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635754#M28782</link>
      <description>&lt;P&gt;You're right CSS can take care of any styling issues, but at the moment my goal is to learn the basics and remove any excess content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your pprint method has allowed me to show everything including the select list data (the 'yes' on the last item), but I only need to show the event name and attendance fields and not the ID's etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything similar to pprint but only for specific fields? It's like I need something along the lines of the hubdb equivalent&amp;nbsp;&lt;STRONG&gt;{{ row["event_attendance"].name }}&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 15:55:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635754#M28782</guid>
      <dc:creator>ben-duchy</dc:creator>
      <dc:date>2022-05-19T15:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Web module linked to CRM Object</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635771#M28785</link>
      <description>&lt;P&gt;I don't understand, isn't your for loop doing so ?&lt;/P&gt;
&lt;P&gt;By invoking the crm_object function, you created a list of events with name and attendance properties.&lt;BR /&gt;&lt;BR /&gt;Then you loop on your event object and display, for each item, both properties :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMeert_0-1652977402138.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/66773i72CBF1EA88839EB7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LMeert_0-1652977402138.png" alt="LMeert_0-1652977402138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If the attendance isn't showing it's because you made a typo on "attendance".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LMeert_1-1652977449085.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/66774iDAC537199DD0E0AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LMeert_1-1652977449085.png" alt="LMeert_1-1652977449085.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simply remove the pprint portion and the ******* line, and change "attandance" for "attendance" and you're all set &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 16:24:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635771#M28785</guid>
      <dc:creator>LMeert</dc:creator>
      <dc:date>2022-05-19T16:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Web module linked to CRM Object</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635843#M28789</link>
      <description>&lt;P&gt;Ah, great spot with the typo! I've corrected the spelling and it now works. Thanks very much... it's been a long day!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 18:46:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635843#M28789</guid>
      <dc:creator>ben-duchy</dc:creator>
      <dc:date>2022-05-19T18:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Web module linked to CRM Object</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635857#M28791</link>
      <description>&lt;P&gt;And off goes my favorite gorilla to code another module.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":gorilla:"&gt;🦍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 19:05:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635857#M28791</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2022-05-19T19:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Web module linked to CRM Object</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635888#M28792</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;my work is never done! Eveytime I complete one project, I find another feature in HubSpot that I need to learn&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 19:55:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635888#M28792</guid>
      <dc:creator>ben-duchy</dc:creator>
      <dc:date>2022-05-19T19:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Web module linked to CRM Object</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635890#M28793</link>
      <description>&lt;P&gt;You and me both, friend.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 19:56:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Web-module-linked-to-CRM-Object/m-p/635890#M28793</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2022-05-19T19:56:55Z</dc:date>
    </item>
  </channel>
</rss>

