<?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: Can't get HUBL Split function working properly in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/184490#M5446</link>
    <description>&lt;P&gt;If your resource's would using Hubspots blog system you could simply use a blogs by topic function, passing the related topic to the topic to filter by part of the function.&amp;nbsp; I've done similar before.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Apr 2018 18:27:35 GMT</pubDate>
    <dc:creator>Jsum</dc:creator>
    <dc:date>2018-04-04T18:27:35Z</dc:date>
    <item>
      <title>Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20162#M1902</link>
      <description>&lt;P&gt;I'm a noob with HUBL so I'm probably missing something obvious. I'm trying to split out a contact property into an array. I can get it to work when passing a string to the split(..) filter, but it fails when I put that string in the contact property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{% set string_to_split = contact.industry %}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;string to split: &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{{string_to_split}}&amp;lt;br /&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{% set names = string_to_split|split(';', 9) %}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Names: {{names}}&amp;lt;br /&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;ul&amp;gt;{% for name in names %}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;li&amp;gt;{{ name }}&amp;lt;/li&amp;gt;{% endfor %}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;/ul&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{% set string_to_split = "Stephen; David; Cait; Nancy; Mike; Joe; Niall; Tim; Amanda" %}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;string to split: &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{{string_to_split}}&amp;lt;br /&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{% set names = string_to_split|split(';', 9) %}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Names: {{names}}&amp;lt;br /&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;ul&amp;gt;{% for name in names %}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;li&amp;gt;{{ name }}&amp;lt;/li&amp;gt;{% endfor %}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;/ul&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first section doesn't work: the split function doesn't create multiple rows on the array, and just puts the whole string into one variable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&lt;FONT size="3"&gt;string to split: Stephen; David; Cait; Nancy; Mike; Joe; Niall; Tim; Amanda&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;SPAN&gt;Names: [Stephen; David; Cait; Nancy; Mike; Joe; Niall; Tim; Amanda]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier" size="3"&gt;Stephen; David; Cait; Nancy; Mike; Joe; Niall; Tim; Amanda&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i set the variable with a constant value, everything works as expected:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;string to split: Stephen; David; Cait; Nancy; Mike; Joe; Niall; Tim; Amanda&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Names: [Stephen, David, Cait, Nancy, Mike, Joe, Niall, Tim, Amanda]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Stephen&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;David&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Cait&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Nancy&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Mike&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Joe&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Niall&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Tim&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Amanda&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just can't see why the split function doesn't work the first time as the variable I'm passing is (on the face of it) the same both times. So why does the split function work on one, but not the other?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd really appreciate any help you can give&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 10:16:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20162#M1902</guid>
      <dc:creator>mikemaynard</dc:creator>
      <dc:date>2017-06-23T10:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20179#M1903</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/11550"&gt;@mikemaynard&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It might help if you told us what you are trying to accomplish. Are you wanting to list out all industries that are tied to your contacts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have much experience dealing with contacts or contact properties but I think that, while you can use contact.property to customize a page for the contact viewing it, you cannot use the contact variable to access your contacts database. For instance, I don't believe that you could output a list of all of the names of your contacts or other information onto a page. I did test this and it doesn't seam to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hubspot does have an api that includes the contacts api but their api's main purpose is for outside websites so it isn't easily integrateable into your portal and it also is not available by default. I believe there is an extra charge.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me ask you this, does {{ &lt;SPAN&gt;contact.industry&lt;/SPAN&gt;&amp;nbsp;}} output anything to your page? If it works how I think you are wanting it to work then it would list all industries in you contacts list. if it works like I think it works then it will only output the industry tied to your contact profile, provided that you are a contact with the property "industry" filled out in your contact profile.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:30:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20179#M1903</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2017-06-23T14:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20183#M1904</link>
      <description>&lt;P&gt;Good point&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/3688"&gt;@Jsum&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just a test, not what I am ultimately aiming to do. The ultimate goal is to be able to pass a large number of parameters from Salesforce to HubSpot - more parameters that we have fields available in Salesforce (probably around 100, but the exact number doesn't matter). These parameters are information about products that are related to something the contact has just bought online, so there are many, many combinations (ie. we have to pass them all as parameters, it's impractical to pass a code and then use workflows to do a lookup).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is why I'm trying to split up a string of parameters. We can use a different separator (i.e. not ";"), and really any other approach that would work to split out a string into separate parameters held in an array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what I want to do is pass a large number of parameters and then split them up in the email design. I can do this with a constant string, but when I pass the same data via a contact property, the split filter doesn't work. I've literally cut and pasted the data from the string to the property, so I assume there is something going on when the data is either stored in the contact property or passed from a property to a variable, which means that split stops seeing ";" as ";". and therefore it fails to split the string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:32:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20183#M1904</guid>
      <dc:creator>mikemaynard</dc:creator>
      <dc:date>2017-06-23T14:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20185#M1905</link>
      <description>&lt;P&gt;In response to the question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me ask you this, does {{ &lt;SPAN&gt;contact.industry&lt;/SPAN&gt;&amp;nbsp;}} output anything to your page? If it works how I think you are wanting it to work then it would list all industries in you contacts list. if it works like I think it works then it will only output the industry tied to your contact profile, provided that you are a contact with the property "industry" filled out in your contact profile.&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you look at the outputs, I'm outputing the variable {{string_to_split}} in both cases and they look exactly the same, but in one case split(..) works and in the other it doesn't do anything. I'm guessing there may be something hidden that I'm not seeing, but on the face of it the variable has&amp;nbsp;&lt;EM&gt;EXACTLY&lt;/EM&gt; the same contents, but the result of the split function is completely different.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:35:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20185#M1905</guid>
      <dc:creator>mikemaynard</dc:creator>
      <dc:date>2017-06-23T14:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20186#M1906</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/11550"&gt;@mikemaynard&lt;/a&gt;&amp;nbsp;can you share the output?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:43:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20186#M1906</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2017-06-23T14:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20187#M1907</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/11550"&gt;@mikemaynard&lt;/a&gt;&lt;BR /&gt;Maybe before the |split filter, I have had success in the past with others to squeeze in the |string filter first. Could look like this&lt;/P&gt;&lt;PRE&gt;string_to_split|string|split(';', 9)&lt;/PRE&gt;&lt;P&gt;Maybe that will work?&lt;BR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/3688"&gt;@Jsum&lt;/a&gt;&amp;nbsp;I can see he already showed the example output in the initial question.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:48:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20187#M1907</guid>
      <dc:creator>EricSalvi</dc:creator>
      <dc:date>2017-06-23T14:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20188#M1908</link>
      <description>&lt;P&gt;When using&amp;nbsp;&lt;SPAN&gt;{% set string_to_split = contact.industry %}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&lt;FONT size="3"&gt;string to split: Stephen; David; Cait; Nancy; Mike; Joe; Niall; Tim; Amanda&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;SPAN&gt;Names: [Stephen; David; Cait; Nancy; Mike; Joe; Niall; Tim; Amanda]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier" size="3"&gt;Stephen; David; Cait; Nancy; Mike; Joe; Niall; Tim; Amanda&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using&amp;nbsp;&lt;SPAN&gt;{% set string_to_split = "Stephen; David; Cait; Nancy; Mike; Joe; Niall; Tim; Amanda" %}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;string to split: Stephen; David; Cait; Nancy; Mike; Joe; Niall; Tim; Amanda&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Names: [Stephen, David, Cait, Nancy, Mike, Joe, Niall, Tim, Amanda]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Stephen&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;David&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Cait&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Nancy&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Mike&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Joe&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Niall&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Tim&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;Amanda&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, {{string_to_split}} looks to be identical in both cases, but when I create {{names}} using split(...), the first time it's just a string and isn't split, whereas the second time (setting the text as a constant) I've created an array by splitting the string with the ";"s.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did cut and paste the string into contact.industry for this contact that I'm testing with, so it should be the same. And the output looks the same. But presumably there is some difference that i just can't see!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:48:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20188#M1908</guid>
      <dc:creator>mikemaynard</dc:creator>
      <dc:date>2017-06-23T14:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20189#M1909</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/11550"&gt;@mikemaynard&lt;/a&gt;, that is confusing me. Why does the contact.industry variable print out a list of names?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:49:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20189#M1909</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2017-06-23T14:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20191#M1911</link>
      <description>&lt;P&gt;Thanks for helping&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5280"&gt;@EricSalvi&lt;/a&gt;. Unfortunately it didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{% set names = string_to_split|string|split(';', 9) %}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and unfortunately the behaviour is still exactly the same. it splits string_to_split when it's assigned with a constant value, but not with the contact.industry property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:52:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20191#M1911</guid>
      <dc:creator>mikemaynard</dc:creator>
      <dc:date>2017-06-23T14:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20194#M1912</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/3688"&gt;@Jsum&lt;/a&gt;&amp;nbsp;you are reading too much into the property and the values. This is just a test. I will create a new custom field, and the contents will be completely different once I get this to work. I just used a convenient string (the one used in example HS code) and convenient property (something I display for all contacts so it's easy to change) for the test. The name and content are irrelevant&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:55:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20194#M1912</guid>
      <dc:creator>mikemaynard</dc:creator>
      <dc:date>2017-06-23T14:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20196#M1913</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/11550"&gt;@mikemaynard&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No I don't believe that I am because I as attempted to explain to you several times, you probably won't be able to use the contact variable the way that you are attempting to use it. And besides, your code example above clearly states that you ARE using the contact.industry variable and it is printing out a list of names. Unless you have assigned a bunch of names to the industry fields of your contacts profiles, or you overwrote the variable with the names and didn't show this, then your output makes absolutely no sense. There is no other way that you could be retrieving a list of names from that variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason I am so concerned about your output is that you seam to think that your issue is with the filter you are using while I think your issue is related to the above. Without understanding what you are trying to do, and what you have already tried, I can't very well help you find a solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I can say is that if it is an array you output the contents with a for loop and so filtering it is not necessary. If it's a string then splting will work.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;li&amp;gt;{{ array.property[0] }}&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;{{ array.property[1] }}&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;{{ array.property[2] }}&amp;lt;/li&amp;gt;&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;{% for item in array.property %}
    &amp;lt;li&amp;gt;{{ item }}&amp;lt;/li&amp;gt;
{% endfor %}&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Jun 2017 15:10:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20196#M1913</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2017-06-23T15:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20199#M1914</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/3688"&gt;@Jsum&lt;/a&gt;&amp;nbsp;I'm not being clear, and so I'm really sorry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's change the string to a list of industries:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{% set string_to_split = "Media; Marketing; Advertising; Sales; Digital; Web; PR; CPC; SEO" %}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to&amp;nbsp;display the list of industries as a bulleted list in the email. If I assign string_to_split as above then it displays as:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Media&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Marketing&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Advertising&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Digital&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Web&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;PR&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;CPC&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;SEO&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;If I cut and paste the same string into contact.industry, &amp;nbsp;and assign the string like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{% set string_to_split = contact.industry&amp;nbsp;%}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then the split(...) filter does not work, and the industries are all on the same bullet:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Media; Marketing; Advertising; Sales; Digital; Web; PR; CPC; SEO&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Yet it appears that the variable string_to_split is assigned exactly the same value.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does this make more sense to you now?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Mike&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 15:13:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20199#M1914</guid>
      <dc:creator>mikemaynard</dc:creator>
      <dc:date>2017-06-23T15:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20201#M1915</link>
      <description>&lt;P&gt;Just to share my test on my own account. I set up this code on a landing page template in a HubL module. Converted the existing industry property to &lt;STRONG&gt;multi-checkbox&lt;/STRONG&gt;. Went into a test contact and selected the options I wanted. Then when I viewed the page as a specific contact I noticed the string was not separated by (;) but instead (,)&lt;/P&gt;&lt;P&gt;Changed the split to look for a comma instead of the semicolon and it worked.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-06-23 at 11.15.08 AM.png" style="width: 199px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/3883iCDBEF940FFA0A735/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-06-23 at 11.15.08 AM.png" alt="Screen Shot 2017-06-23 at 11.15.08 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 15:15:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20201#M1915</guid>
      <dc:creator>EricSalvi</dc:creator>
      <dc:date>2017-06-23T15:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20202#M1916</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/3688"&gt;@Jsum&lt;/a&gt;&amp;nbsp;- replying separately to the comment about arrays:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In both cases I am creating a string called string_to_split and then creating an array using split(...). When I assign the string using "...." it works perfectly. When i assign the string using the contact property it does not. In both cases I have *definitely* assigned a string (checked using pprint) and in both cases the string *definitely* looks the same (again checked using pprint as well as displaying the variable). But in one case the split(...) produces an array and in the other it does not. If I could produce an array when using the contact property I completely agree that displaying the elements is trivial.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 15:16:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20202#M1916</guid>
      <dc:creator>mikemaynard</dc:creator>
      <dc:date>2017-06-23T15:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20205#M1918</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/11550"&gt;@mikemaynard&lt;/a&gt;, I still don't understand where the contact.industry is coming from. If you are constructing it yourself or if it is an actual system variable outputting actual system information, but here is the deal:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason split is not working on your first example is because it is an ARRAY, not a string. I just tested it and this is 100% a fact. You cannot, nor do you need to, use the split filter on an array. You can use it on an item of an array, but not on the array itself.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you are attempting to do with the split filter is fake an array out of a string. This works in your second example because it is a string but is NOT necessary in your first example because it is already a 100% real array. You don't need to split it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I took the list of industries you gave me and I created an array:&lt;/P&gt;&lt;PRE&gt;{% set string_to_split = ["Media", "Marketing", "Advertising", "Sales", "Digital", "Web", "PR", "CPC", "SEO"] %}&lt;/PRE&gt;&lt;P&gt;I then loop through the array:&lt;/P&gt;&lt;PRE&gt; &amp;lt;ul&amp;gt;
{% for industry in string_to_split %}
         &amp;lt;li&amp;gt;{{ industry }}&amp;lt;/li&amp;gt;
{% endfor %}
&amp;lt;/ul&amp;gt;&lt;/PRE&gt;&lt;P&gt;and the output is this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;ul&amp;gt;
          &amp;lt;li&amp;gt;Media&amp;lt;/li&amp;gt;
          &amp;lt;li&amp;gt;Marketing&amp;lt;/li&amp;gt;
          &amp;lt;li&amp;gt;Advertising&amp;lt;/li&amp;gt;
          &amp;lt;li&amp;gt;Sales&amp;lt;/li&amp;gt;
          &amp;lt;li&amp;gt;Digital&amp;lt;/li&amp;gt;
          &amp;lt;li&amp;gt;Web&amp;lt;/li&amp;gt;
          &amp;lt;li&amp;gt;PR&amp;lt;/li&amp;gt;
          &amp;lt;li&amp;gt;CPC&amp;lt;/li&amp;gt;
          &amp;lt;li&amp;gt;SEO&amp;lt;/li&amp;gt;
 &amp;lt;/ul&amp;gt;&lt;/PRE&gt;&lt;P&gt;while this:&lt;/P&gt;&lt;PRE&gt;{% set names = string_to_split|split(';', 9) %}
&amp;lt;ul&amp;gt;
{% for name in names %}
         &amp;lt;li&amp;gt;{{ name }}&amp;lt;/li&amp;gt;
 {% endfor %}
  &amp;lt;/ul&amp;gt;&lt;/PRE&gt;&lt;P&gt;produced this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;ul&amp;gt;
         &amp;lt;li&amp;gt;[Media, Marketing, Advertising, Sales, Digital, Web, PR, CPC, SEO]&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;If you are playing with data coming from the Hubspot system, chances are the data is set up to be an array, not a string, while the values of the array keys could be strings, ints, etc. This being the case, if content.industry is in fact hubspot system data, just treat it as a array, not a string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if contact.industry is your own creation, make it an array. there is no point in going through the trouble of filtering a string to act like an array when you can just use an array from the start. I have created very in depth and complicated dict arrays in hubspot that work wonderfully in terms of output so the sky is the limit if you treat your data right.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 15:37:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20205#M1918</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2017-06-23T15:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20207#M1919</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5280"&gt;@EricSalvi&lt;/a&gt;. I should have tested a LP earlier, but never thought the results would be different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been working on an email. So I cut and pasted my code into a landing page. IT WORKED. (FWIW the separator makes no difference, my original code with the semicolon separator works fine on a landing page too).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So: GOOD NEWS - my code is OK&lt;/P&gt;&lt;P&gt;BAD NEWS: there appears to be a bug when using HubL to create emails. Is there a way to get this fixed asap?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 15:39:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/20207#M1919</guid>
      <dc:creator>mikemaynard</dc:creator>
      <dc:date>2017-06-23T15:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/24082#M2309</link>
      <description>&lt;P&gt;I just ran into this issue myself, spending way too much time trying to figure out why split(..) would just silently fail and always return a string. &amp;nbsp;For anyone else stumbling across this, I then found this bug report saying it is not a bug, but that the feature does not exist for emails: &amp;nbsp;&lt;A href="https://community.hubspot.com/t5/COS-Design-Support/Split-filter-bug-report-in-Email-Module/m-p/20318/thread-id/1926" target="_blank"&gt;https://community.hubspot.com/t5/COS-Design-Support/Split-filter-bug-report-in-Email-Module/m-p/20318/thread-id/1926&lt;/A&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like the ability to create any kind of custom dynamic emails based on customer properties is essentially impossible with HubSpot without this functionality, unless you're just using a simple string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/11550"&gt;@mikemaynard&lt;/a&gt;&amp;nbsp;Where you ever able to find a work around? &amp;nbsp;I'm trying to do the same thing as you... work with a simple array of data from a&amp;nbsp;customer property (which btw you explained very clearly in your original post)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 18:54:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/24082#M2309</guid>
      <dc:creator>ryan3</dc:creator>
      <dc:date>2017-07-26T18:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/24099#M2312</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13875"&gt;@ryan3&lt;/a&gt;&lt;/P&gt;&lt;P&gt;We're looking at using Scribe (&lt;A href="https://www.scribesoft.com/" target="_blank"&gt;https://www.scribesoft.com/&lt;/A&gt;). It is more than capable of doing what we need, although it is reletively expensive if this is all we use it for. I've heard some good things about the team, and apparently support is very good.&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 20:23:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/24099#M2312</guid>
      <dc:creator>mikemaynard</dc:creator>
      <dc:date>2017-07-26T20:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/180104#M4939</link>
      <description>&lt;P&gt;Holy&amp;nbsp;cow I am not crazy - I have been troubleshooting the exact same thing&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/11550"&gt;@mikemaynard&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the use case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a library of resources on a site. A user can fill out a form to access a resource. The pages we have the resources living on are built on WordPress and have some nifty dynamic php behind the scene that outputs 3 related resources to the current resource on the page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The marketing team wants to output these resources inside the emails sent via HubSpot's workflows. The way I was envisioning this working would be to send a blob of CSV data through a hidden text area (a custom contact property) on the form submission and then parse it using a custom HubL email module and loop through it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;There are 2 really screwy things about HubL:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You can't parse or typecast&amp;nbsp;a variable into any other type than a string UNLESS you manually parse the string using |split (no filters exist to my knowledge)&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;That HubSpot magically removes&amp;nbsp;all filter capabilities for email.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was so pumped that I thought I could get this to work... HubSpot - please allow the use of some filters in email... This is stopping us from making our drip campaigns truely "automated" with how our CMS organizes content.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 21:36:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/180104#M4939</guid>
      <dc:creator>derekcavaliero</dc:creator>
      <dc:date>2018-03-01T21:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get HUBL Split function working properly</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/183783#M5347</link>
      <description>&lt;P&gt;This is unfortunate,&lt;/P&gt;&lt;P&gt;we have a very similar use case&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2599"&gt;@derekcavaliero&lt;/a&gt;&amp;nbsp;did you come up with any other ideas to near your goal?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The wound of learning this is not possible with Hubl i&lt;EM&gt;n an email&lt;/EM&gt; is still fresh for me!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 03:47:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-get-HUBL-Split-function-working-properly/m-p/183783#M5347</guid>
      <dc:creator>GBSchris</dc:creator>
      <dc:date>2018-03-30T03:47:28Z</dc:date>
    </item>
  </channel>
</rss>

