Handlebars is the templating language of Marketing Cloud Next. This page lists every helper the language catalog knows about, where it came from, which Core API version introduced it, and whether AMPscript can express the same thing.

Rendered in a Marketing Cloud Next email

These rows come from the same language catalog that powers the SFMC Language Service and the ESLint rules. Every helper was tried in a Marketing Cloud Next email on 2026-11-22. Each name links to its page on this site, with the tested calls, what MCN actually rendered (or why the email could not be saved), and how that compares to the official Salesforce reference.

Origin tells you where a helper comes from: a Marketing Cloud Next helper is specific to the platform, a Handlebars built-in is part of the Handlebars language itself, and a Marketing Cloud Next platform entry is exposed by the runtime rather than by the templating layer.

Spell helper names exactly as listed

Helper names in Marketing Cloud Next are case-sensitive. AMPscript forgives propercase() for ProperCase(), but Handlebars does not: a helper name whose letter case differs from the catalog is not found, and the email is rejected when you save it, reported as an unsupported helper. Nothing tells you that the only problem is the capitalisation.

Most other helpers use camelCase, such as dateAdd, formatCurrency or isEmailAddress. Never guess the capitalisation from the AMPscript function name. Copy it from the table below or from the helper’s page.

The SFMC Language extension for VS Code flags a helper written in the wrong case and offers a quick fix with the correct spelling.

All helpers

Each helper name links to its page on this site, with the result of rendering it in a Marketing Cloud Next email on 2026-11-22: Works as documented, differs from the documentation, unsupported (the email cannot be saved), or not rendered yet. API version is the Marketing Cloud Next Core API version the helper became available in.

Helper API versionAMPscript Returns Description
adddiffers {{add value1 value2}} 65 Add number Returns the sum of two numbers, rounded to 2 decimal places.
and Works as documented {{and value1 [value2] [...valueN]}} 65 andkeyword boolean Returns true only when all operands are truthy.
assignCouponnot rendered yet {{assignCoupon list}} 68 — object Reserves a coupon for the current recipient from a coupon list stored in a marketing object and returns that row. Errors when no coupon can be assigned.
base64Decode Works as documented {{base64Decode encoded [...options]}} 68 Base64Decodeapproximate string Turns a Base64 string back into readable text.
base64Encode Works as documented {{base64Encode text [...options]}} 68 Base64Encodeapproximate string Turns readable text into a Base64 string.
buildRowSetFromString Works as documented {{buildRowSetFromString text delimiter}} 68 BuildRowSetFromString array Splits a string at a delimiter into a rowset with a single unnamed column, one row per value.
buildRowSetFromXml Works as documented {{buildRowSetFromXml xml xpath ...options}} 68 BuildRowSetFromXMLapproximate array Builds a rowset from the XML nodes an XPath expression selects; each row carries the node value, its XML, and its attributes.
buildUrl Works as documented {{buildUrl base [...options]}} 68 — string Composes a link from a base URL plus UTM and custom query parameters and wraps it for click tracking. Errors when the base URL is empty.
chardiffers {{char code [repeated]}} 65 Char string Returns the Unicode character for a character code, optionally repeated.
claimRownot rendered yet {{claimRow ...options}} 68 ClaimRowapproximate,ClaimRowValueapproximate object Takes the first row of a marketing object that nobody has claimed yet, marks it as claimed, and returns it. Errors when every row is already claimed.
compare Works as documented {{compare leftValue operator rightValue}} 65 !=operator,<operator,<=operator,>operator,>=operator boolean Compares two values using a specified operator.
concat Works as documented {{concat value1 [value2] [...valueN]}} 65 Concat string Combines multiple values into a single string. Null values are skipped.
dateAdddiffers {{dateAdd date number interval}} 67 DateAdd string Adds or subtracts an amount of time to a date.
dateDiff Works as documented {{dateDiff date1 date2 interval}} 67 DateDiff integer Calculates the time difference between two dates in a specified unit.
datePart Works as documented {{datePart date part}} 68 DatePart integer Returns one component of a date or timestamp, such as the year, as a number.
divide Works as documented {{divide dividend divisor}} 65 Divide number Returns the quotient of dividing the first value by the second.
domain Works as documented {{domain emailAddress}} 68 Domain string Returns everything behind the first @ of an email address, or null when the input has no @ or is not a string.
each Works as documentedblock {{#each collection}}…{{/each}} 65 forkeyword string Iterates over arrays, lists, and objects, rendering a block for each element.
encode Works as documented {{encode ...options}} 68 — string Hashes a string with an algorithm chosen by name and returns the digest as lowercase hex. Errors on a missing argument or an unknown algorithm or charset.
encodeURIdiffers {{encodeURI text [onlySpaces]}} 68 — string URL-encodes a whole string so it can be placed in a link. For only the part behind the address, such as a query string, use encodeURIComponent.
encodeURIComponent Works as documented {{encodeURIComponent text}} 68 URLEncodeapproximate string URL-encodes the part of a string that comes after the address, such as a query string. For a whole string, use encodeURI.
equalsdiffers {{equals value1 value2 [compareAs]}} 65 ==operator boolean Compares two values for equality, optionally by a comparison type.
fallback Works as documentedinline or block {{fallback value fallbackValue}} 65 — any Returns a fallback value when the first argument is null, empty, or throws an exception.
filterdiffers {{filter list fieldName comparisonOperator targetValue filterAs}} 65 — array Returns a list of items that match a field/operator/value condition.
flatten Works as documented {{flatten nestedList}} 65 — array Flattens a nested list of lists into a single list.
formatdiffers {{format subject formatString [type] [culture]}} 65 Formatapproximate,FormatDateapproximate string Formats output based on a format string and optional type specification.
formatCurrencydiffers {{formatCurrency number [cultureCode]}} 65 FormatCurrencyapproximate string Formats a number as a currency value for a locale.
formatNumber Works as documented {{formatNumber number formatType [cultureCode]}} 65 FormatNumber string Formats a number as a specific numeric type, such as decimal or percentage.
get Works as documented {{get collection indexOrKey}} 65 Fieldapproximate,Rowapproximate any Retrieves a value from a list or map by index or key.
getContentBlock Works as documented {{getContentBlock key}} 67 ContentBlockByKeyapproximate string Retrieves and renders a content block within a template.
guid Works as documented {{guid}} 68 GUID string Creates a new globally unique identifier (GUID). Takes no parameters; any that are passed are ignored.
hash Works as documentedsubexpression only (hash ...pairs) 67 — object Constructs an object from key-value pairs. Used only as a subexpression within other helpers.
if Works as documentedblock {{#if condition}}…{{/if}} 65 elsekeyword,elseifkeyword,ifkeyword string Conditionally renders a block based on whether a value evaluates to true.
iif Works as documented {{iif expression leftResult rightResult}} 65 IIf any Returns one of two values based on whether an expression is true or false.
impressionRegiondiffersblock {{#impressionRegion name}}…{{/impressionRegion}} 68 BeginImpressionRegionapproximate,EndImpressionRegionapproximate string Marks the enclosed part of a message as a named impression region for reporting on dynamic content. Adds no output of its own.
indexOf Works as documented {{indexOf subject search}} 65 IndexOfapproximate integer Returns the 1-based position of a substring within a string (case-insensitive).
isEmailAddress Works as documented {{isEmailAddress emailAddress}} 68 IsEmailAddress boolean Checks whether a value has the shape of an email address. It does not check that the mailbox or domain exists.
isEmpty Works as documented {{isEmpty input}} 65 Empty,IsNullapproximate boolean Returns true when a value is null, undefined, or an empty string.
isNullDefault Works as documented {{isNullDefault value defaultValue}} 68 IsNullDefault any Returns the first value, or the second one when the first is null.
jsonpath Works as documented {{jsonpath object expression}} 67 BuildRowsetFromJSONapproximate any Queries and filters JSON objects using a JSONPath expression.
length Works as documented {{length subject}} 65 Length,RowCountapproximate integer Returns the length of a string or the number of elements in an array.
lookupdiffers {{lookup object key}} 67 — any Dynamically accesses an object property or array element by a variable key.
lowercase Works as documented {{lowercase subject [culture]}} 65 Lowercase string Converts all letters in a string to lowercase.
map Works as documented {{map list fieldName}} 65 — array Extracts a specific field from each object in a list.
md5 Works as documented {{md5 text [...options]}} 68 MD5approximate string Returns the MD5 digest (128 bit) of a string as hex. One-way and not safe for protecting secrets.
modulo Works as documented {{modulo value1 value2}} 65 Mod number Returns the remainder after dividing the first value by the second.
multiply Works as documented {{multiply value1 value2}} 65 Multiply number Returns the product of two numbers, rounded to 2 decimal places.
not Works as documented {{not value}} 65 notkeyword boolean Returns true when the operand evaluates to false.
now Works as documented {{now}} 67 Nowapproximate string Returns the current server date and time in UTC. Takes no parameters.
or Works as documented {{or value1 [value2] [...valueN]}} 65 orkeyword boolean Returns true when at least one operand is truthy.
personalizationResult Works as documented {{personalizationResult key}} 65 AttributeValueapproximate any Retrieves a personalized value by key from the subscriber context.
propercasediffers {{propercase subject [culture]}} 65 ProperCase string Capitalizes the first letter of each word and lowercases the rest.
querydiffers {{query ...options}} 67 LookupOrderedRowsapproximate,LookupOrderedRowsCSapproximate,LookupRowsapproximate,LookupRowsCSapproximate,RetrieveSalesforceObjectsapproximate array Retrieves multiple records from Sales Cloud or marketing object data sources.
queryFirstdiffers {{queryFirst object type [...options]}} 67 Lookupapproximate object Retrieves the first record from Sales Cloud, marketing objects, or data graphs matching criteria.
raiseErrornot rendered yet {{raiseError errorMessage [errorCode]}} 67 RaiseErrorapproximate void Throws an exception with a message and optional error code, halting rendering.
random Works as documented {{random first second}} 65 Random integer Returns a random integer between two values (inclusive).
regExMatch Works as documented {{regExMatch subject pattern group [...options]}} 68 RegExMatchapproximate string Applies a regular expression (Java regex syntax) to a string and returns the matched text or one capture group. Returns an empty string when nothing matches.
repeat Works as documentedblock {{#repeat count}}…{{/repeat}} 65 — string Repeats a block a specified number of times, exposing index, first, and last loop variables.
replacediffers {{replace subject search replacement [culture]}} 65 Replaceapproximate string Replaces every occurrence of a substring with another (case-sensitive).
set Works as documentedblock {{#set ...assignments}}…{{/set}} 65 setkeyword,varkeyword,=operator string Performs local variable assignment within the block scope. Variables do not persist outside the block.
sha1 Works as documented {{sha1 text [...options]}} 68 SHA1approximate string Returns the SHA-1 digest (160 bit) of a string as hex. One-way and not safe for protecting secrets.
sha256 Works as documented {{sha256 text [...options]}} 68 SHA256approximate string Returns the SHA-256 digest of a string as hex. One-way and not safe for protecting secrets.
sha512 Works as documented {{sha512 text [...options]}} 68 SHA512approximate string Returns the SHA-512 digest of a string as hex. One-way and not safe for protecting secrets.
slice Works as documented {{slice list startIndex [endIndex]}} 65 — array Returns a portion of a list between two indices (end index exclusive).
sort Works as documented {{sort list fieldName sortOrder sortAs}} 65 — array Sorts a list of objects by a field, order, and type.
stringToHex Works as documented {{stringToHex subject [...options]}} 68 StringToHexapproximate string Returns the hexadecimal representation of the encoded characters of a string.
substringdiffers {{substring subject start [length]}} 65 Substring string Extracts a portion of a string starting from a 1-based position.
subtractdiffers {{subtract value1 value2}} 65 Subtract number Returns the difference of subtracting the second value from the first.
timezoneConversion Works as documented {{timezoneConversion date sourceTZ targetTZ}} 67 LocalDateToSystemDateapproximate,SystemDateToLocalDateapproximate string Converts a date from one time zone to another.
trim Works as documented {{trim subject}} 65 Trim string Removes leading and trailing whitespace from a string.
unless Works as documentedblock {{#unless condition}}…{{/unless}} 65 — string Conditionally renders a block based on whether a value evaluates to false.
uppercasediffers {{uppercase subject [culture]}} 65 Uppercase string Converts all letters in a string to uppercase.
with Works as documentedblock {{#with object}}…{{/with}} 65 — string Changes the block context to a specified object so properties can be accessed directly.