Runtime verified Test scripts included

Splits a string at a delimiter into a rowset with a single unnamed column, one row per value.

Syntax

{{buildRowSetFromString text delimiter}}

Returns array.

Parameters

Name Type Required Description
text string Yes The string to split.
delimiter string Yes The text that separates values.

Example

Tested in a Marketing Cloud Next email on 2026-11-22:

  • {{length (buildRowSetFromString "a|b|c" "|")}} renders 3, as documented.
  • {{#each (buildRowSetFromString "x|y" "|")}}{{@index}}{{/each}} renders 01, as documented.
Show Next test script
<!-- Marketing Cloud Next test script for the buildRowSetFromString helper. Paste it into the HTML component of a
     Next email and open the preview. Each line prints the result Next gave when the call
     was rendered on its own (expect) next to the result of this run (got).
     Assembled from single-call test emails (dates on the page); it has not been
     run as one email. Calls that make Next fail are listed separately. -->
<p>c1 expect=[3] got=[{{length (buildRowSetFromString "a|b|c" "|")}}]</p>
<p>c2 expect=[01] got=[{{#each (buildRowSetFromString "x|y" "|")}}{{@index}}{{/each}}]</p>

Marketing Cloud Next

Works as documented

Every tested call rendered the documented result. Tested 2026-11-22 by rendering in a Marketing Cloud Next email.

See also