<?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: Displaying data with multiple rows, in a template in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Displaying-data-with-multiple-rows-in-a-template/m-p/904716#M70286</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;- let me try this.&lt;BR /&gt;&lt;BR /&gt;What I'm trying, without success yet are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Changing the property type to Rich Text&lt;/LI&gt;&lt;LI&gt;Using the API to import data using the following format&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Topic one&amp;lt;br&amp;gt;Topic two&amp;lt;br&amp;gt;Topic three&amp;lt;br&amp;gt;Topic four​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I display the content within the template it display's the like the above code snipet... it doesn't know &amp;lt;br&amp;gt; is HTML.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2024 15:01:31 GMT</pubDate>
    <dc:creator>CraigWish</dc:creator>
    <dc:date>2024-01-12T15:01:31Z</dc:date>
    <item>
      <title>Displaying data with multiple rows, in a template</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Displaying-data-with-multiple-rows-in-a-template/m-p/859607#M67947</link>
      <description>&lt;P&gt;Hi everyone, I hope someone could help.&lt;BR /&gt;&lt;BR /&gt;I have my API bringing a number of values on one property. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Topic one 
Topic two
Topic three
Topic four&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I added them to an email template the display email looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Topic one Topic two Topic three Topic four&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you modify the email template to represent the line breaks?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 17:06:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Displaying-data-with-multiple-rows-in-a-template/m-p/859607#M67947</guid>
      <dc:creator>CraigWish</dc:creator>
      <dc:date>2023-10-04T17:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying data with multiple rows, in a template</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Displaying-data-with-multiple-rows-in-a-template/m-p/860440#M68004</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/209815"&gt;@CraigWish&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you looked into using the HubL filter `&lt;A href="https://developers.hubspot.com/docs/cms/hubl/filters#split" target="_blank" rel="noopener"&gt;split&lt;/A&gt;`? And using a for loop? The one issue I see is you are not using a separator for your values. For that, I do not have a filter option. Here's a quick simple example assuming commas were used:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{% set topics = "Topic one,Topic two,Topic three,Topic four"|split(',') %}
{% for topic in topics %}
   {{ topic }}&amp;lt;br/&amp;gt;
{% endfor %}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/61659"&gt;@Stephanie-OG&lt;/a&gt;, is there a better or different way you'd handle this type of challenge?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 20:29:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Displaying-data-with-multiple-rows-in-a-template/m-p/860440#M68004</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-10-05T20:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying data with multiple rows, in a template</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Displaying-data-with-multiple-rows-in-a-template/m-p/904716#M70286</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;- let me try this.&lt;BR /&gt;&lt;BR /&gt;What I'm trying, without success yet are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Changing the property type to Rich Text&lt;/LI&gt;&lt;LI&gt;Using the API to import data using the following format&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Topic one&amp;lt;br&amp;gt;Topic two&amp;lt;br&amp;gt;Topic three&amp;lt;br&amp;gt;Topic four​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I display the content within the template it display's the like the above code snipet... it doesn't know &amp;lt;br&amp;gt; is HTML.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 15:01:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Displaying-data-with-multiple-rows-in-a-template/m-p/904716#M70286</guid>
      <dc:creator>CraigWish</dc:creator>
      <dc:date>2024-01-12T15:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying data with multiple rows, in a template</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Displaying-data-with-multiple-rows-in-a-template/m-p/904737#M70288</link>
      <description>&lt;P&gt;I'm trying to figure out the. synctax for using Spilit on a property.&lt;BR /&gt;For example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set topics = {{comapany.property_name}}"|split('&amp;lt;br&amp;gt;') %}
{% for topic in topics %}
   {{ topic }}&amp;lt;br/&amp;gt;
{% endfor %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;what do you think?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 15:24:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Displaying-data-with-multiple-rows-in-a-template/m-p/904737#M70288</guid>
      <dc:creator>CraigWish</dc:creator>
      <dc:date>2024-01-12T15:24:31Z</dc:date>
    </item>
  </channel>
</rss>

