Handlebars Helper Function: buildRowSetFromString

Creates a rowset by splitting a string at a specified delimiter.

Availability 

This helper is available in the Winter ’27 release of Marketing Cloud Next.

Syntax 

1{{buildRowSetFromString sourceData delimiter}}

Parameters 

ParameterTypeDescription
sourceDataStringRequired. The string to split into rows.
delimiterStringRequired. The delimiter that separates values in sourceData.

Return Value 

The function returns a rowset with one unnamed column. Each value separated by delimiter is a row in the result.

Usage Example 

This example creates a rowset from a pipe-delimited string and renders each value.

1{{#each (buildRowSetFromString "123|456|789" "|")}}
2  {{this}}
3{{/each}}

The example produces this output:

1123
2456
3789