Supported Transformation Functions
Every function available in a Transform Data formula, grouped by the kind of value it works on. The rules that apply to all of them, including naming, types and option values, are on the Transform data in a playbook page.
Name functions
Two functions handle personal names and joining text.
| Function | What it does |
|---|---|
SPLIT_FULL_NAME(full_name) | Breaks a full name into first, middle and last name. On its own it gives the first name; add .middle_name or .last_name to get the other parts. |
CONCAT(param1, param2) | Joins exactly two pieces of text, in order. To join three or more, put CONCAT inside CONCAT. |
SPLIT_FULL_NAME returns the first name on its own. Add .middle_name or .last_name to read the other parts. A two-word name returns empty text for the middle name, and a one-word name returns empty text for the last name.
Text functions
Nineteen functions change the shape, case and encoding of text.
| Function | What it does |
|---|---|
UPPERCASE(field) | Makes every letter capital. |
LOWERCASE(field) | Makes every letter small. |
TITLE_CASE(value) | Capitalises the first letter of every word and makes the rest small. |
TRIM(field) | Removes spaces from both ends and squeezes any run of spaces, tabs or line breaks inside the text into one space (same as JSONata $trim). |
REPLACE(field, pattern, replacement) | Replaces every place a piece of text appears with another piece of text. It matches the text literally, it is not a regex. The text to find cannot be empty. |
SUBSTRING(field, start, length?) | Takes part of the text. The start position counts from 0. Leave out the length to go to the end; a negative start counts from the end. |
SLUGIFY(value, separator = "-") | Turns text into a URL-friendly slug: lower case, accents removed, anything that is not a letter or digit becomes the separator ("-" unless you choose another). |
STRIP_ACCENTS(value) | Removes accents (é → e, ç → c) and leaves everything else as it is. |
PAD(value, length, pad_string = " ", direction = "start") | Adds characters to reach a fixed length, at the start (default) or the end. The default pad character is a space. |
TEXT_LENGTH(field) | Counts the characters in a text. An emoji counts as one. |
BASE64_ENCODE(field) | Encodes plain (ASCII) text as Base64. Fails on accented or other non-ASCII characters. |
BASE64_DECODE(field) | Decodes Base64 back to plain text. Characters outside Base64 are ignored; fails if the result is not plain text. |
URL_ENCODE(field) | Encodes a whole URL but keeps the characters that give it structure (/ ? & = :). |
URL_DECODE(field) | Decodes a whole URL, but leaves encoded structure characters (like %2F) as they are. Fails on a broken escape. |
URL_ENCODE_COMPONENT(field) | Encodes text for one part of a URL (like a query value), including / ? & and =. |
URL_DECODE_COMPONENT(field) | Decodes text from one part of a URL, including encoded / ? & and =. Fails on a broken escape. |
SUBSTRING_BEFORE(field, separator) | Gives the text before the first separator. If the separator is not there, gives the whole text. |
SUBSTRING_AFTER(field, separator) | Gives the text after the first separator. If the separator is not there, gives the whole text. |
CONTAINS(field, search) | true if the text contains the search text. Exact match, case matters, not a regex. |
List functions
Eighteen functions build lists, read items out of them, and run totals across them.
| Function | What it does |
|---|---|
ARRAY_JOIN(values, separator = ",") | Joins the items of a list into one text, with "," between them unless you choose another separator. Every item must be text. |
SPLIT(field, delimiter) | Cuts text into a list wherever the delimiter appears. Empty pieces are kept. |
STRING_TO_ARRAY(value, separator = ",") | Like SPLIT, but trims spaces around each item. Uses a comma unless you give another separator. |
ARRAY_FILTER(values, operator, comparand?) | Keeps only the items that pass a test. Tests: contains, not_contains, equals, not_equals, starts_with, ends_with, is_empty, is_not_empty (the last two need no comparand). |
ARRAY_AT(values, index) | Gives the item at a position, counting from 0. |
ARRAY_FIRST(values) | Gives the first item of a list. |
ARRAY_LAST(values) | Gives the last item of a list. |
ARRAY_UNIQUE(values) | Removes duplicates and keeps the first one of each, in the original order. Case matters. |
CSV_PARSE(value, delimiter = ",", quote = "\"") | Reads one CSV row into a list of fields. A value in quotes may contain the delimiter. Spaces are not trimmed. |
ARRAY_LENGTH(values) | Counts the items in a list. A single text counts as one item (same as JSONata $count). |
ARRAY_PLUCK(values, key) | From a list of objects, takes one field from each. Objects without that field are skipped. |
ARRAY_SUM(values) | Adds up a list of numbers (or text that holds numbers). An empty list gives 0. |
ARRAY_MAX(values) | Gives the largest number in a list, or "" for an empty list. |
ARRAY_MIN(values) | Gives the smallest number in a list, or "" for an empty list. |
ARRAY_AVERAGE(values) | Gives the average of a list of numbers, or "" for an empty list. |
ARRAY_REVERSE(values) | Turns a list around, last item first. |
ARRAY_SORT(values) | Sorts a list from low to high. Numbers sort by value (9 before 100); text sorts by character code, so capitals come before small letters and é comes after z. |
ARRAY_APPEND(values, others) | Puts the second list after the first. Duplicates are kept. |
ARRAY_FILTER takes one of eight tests: contains, not_contains, equals, not_equals, starts_with, ends_with, is_empty and is_not_empty. The last two take no comparison value.
ARRAY_AT, ARRAY_FIRST, ARRAY_LAST, ARRAY_UNIQUE, ARRAY_LENGTH, ARRAY_REVERSE and ARRAY_APPEND read lists of objects as well as lists of text. ARRAY_JOIN takes text only.
Date and time functions
Seven functions convert, format and compare dates.
| Function | What it does |
|---|---|
TZ_CONVERT(date, timezone, format?) | Converts a UTC time into a named timezone, with daylight saving. Optional format uses DD/MM/YYYY-style tokens. Only full IANA names work (any letter case). |
DATE_FORMAT(date, format) | Formats a date with DD/MM/YYYY-style tokens (moment style). Picture strings like [D01] are not allowed here. |
DATE_ADD(date, amount, unit) | Adds time to a date (years, months, weeks, days, hours, minutes, seconds). Use a negative amount to go back. Month-end dates move to the last valid day. |
DATE_DIFF(start_date, end_date, unit = "days") | Counts whole units between two dates (days by default). Months and years only count when the end date reaches the same day of the month. |
DATETOMILLIS(dateValue, currentFormat) | Reads a date using a picture like [Y0001]-[M01]-[D01] and returns milliseconds since 1 Jan 1970. DD/MM/YYYY-style formats are not allowed here. |
ISOTOMILLIS(isoDate) | Turns an ISO timestamp (2025-11-11T00:00:00Z) into milliseconds since 1 Jan 1970. |
MILLISTODATEFORMAT(millisData, updatedFormat) | Turns milliseconds since 1 Jan 1970 into a date, using a picture like [Y0001]/[M01]/[D01]. DD-MM-YYYY-style formats are not allowed here. |
DATE_ADD and DATE_DIFF both take one of seven units: years, months, weeks, days, hours, minutes and seconds. DATE_DIFF uses days when the formula omits the unit.
TZ_CONVERT accepts full IANA timezone names in any letter case, such as Asia/Kolkata or America/Santiago, and resolves aliases such as Asia/Calcutta. Abbreviations such as IST and PST, and numeric offsets such as +05:30, return an error.
Number functions
Ten functions round, convert and format numbers.
| Function | What it does |
|---|---|
FLOOR(field) | Rounds down to a whole number (−7.6 becomes −8). |
ABS(field) | Removes the minus sign. |
CEIL(field) | Rounds up to a whole number (−4.9 becomes −4). |
SQRT(field) | Square root. Fails for a negative number. |
ROUND(field, precision = 0) | Rounds to a number of decimal places (0 if left out). An exact half goes to the even number (2.5 → 2, 3.5 → 4), this differs from Excel / Google Sheets. |
POWER(field, exponent) | Raises a number to a power. Fails if the answer is too big or not a real number. |
FORMAT_NUMBER(field, picture) | Formats a number with a picture such as #,##0.00 (0 = required digit, # = optional digit, % = percent). The picture cannot be empty. |
FORMAT_INTEGER(field, picture) | Writes a whole number as words (w), Roman numerals (I) or zero-padded (001). |
FORMAT_BASE(field, radix = 10) | Writes a whole number in another base, from 2 to 36 (10 if left out). Letters come out in lower case. |
PARSE_INTEGER(field, picture) | Reads a whole number written as words, Roman numerals or padded digits (the reverse of FORMAT_INTEGER). |
Utility functions
Eighteen functions convert between types, supply fallbacks, read email addresses, generate secrets, and run custom expressions.
| Function | What it does |
|---|---|
DEFAULT_IF_EMPTY(value?, fallback) | Gives the value, or the fallback when the value is missing, blank (only spaces), an empty list or an empty object. 0 and false are real values. The value keeps its type: a list stays a list and a number stays a number. |
COALESCE(values) | From one list, gives the first item that is not empty. Items with only spaces count as empty; "0" counts as a value. Returns "" if all are empty. |
NUMBER(field) | Turns text into a number. Fails if the text is not a clean number (no spaces, no commas). Empty text passes through as "". |
PASSWORD(length = 16, classes = "lower,upper,digits,symbols", exclude = "") | Makes a secure random password with at least one character of each chosen class (lower, upper, digits, symbols). Different every run. |
RANDOM_STRING(length, alphabet?) | Makes a cryptographically secure random string of the given length, different on every run. The default alphabet is abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789, which leaves out the look-alike characters 0, O, 1, l and I. |
STRING(field) | Turns a value into text. |
TO_NUMBER(value) | Like NUMBER, but allows spaces around the number. |
TO_STRING(value) | Turns any value into text; lists and objects become JSON text. |
JSON_PARSE(value) | Reads JSON text into a real object or list that other functions can use. |
JSON_STRINGIFY(value) | Writes any value as JSON text. |
EMAIL_LOCAL_PART(email) | Gives the part of an email before the @. Fails if it is not an email address. |
EMAIL_DOMAIN(email) | Gives the part of an email after the @, keeping the letter case. Fails if it is not an email address. |
BOOLEAN(value) | Reads a value as true or false. False: empty text, 0, an empty list, an empty object, null. Everything else is true, even the text "false" and "0". |
NOT(value) | The opposite of BOOLEAN. |
TYPE_OF(value) | Names the type of a value: string, number, boolean, array, object or null. A null or missing variable shows as "string", because it arrives as "". |
OBJECT_KEYS(record) | Lists the field names of an object, in order. Gives "" (empty) when there are none, the same as JSONata. |
OBJECT_GET(record, name) | Gives one field of an object, or "" if it does not have that field. Exact field name only (case matters, no dotted paths). |
JSONATA("program", ...inputs) | Runs your own JSONata code for things the function list cannot do: maths, conditions (a ? b : c), mapping over lists, reading inside objects. You do not need this wrapper — type the expression straight into the formula field and Zluri recognises it. The wrapper still works if you want to pass values in positionally, as $arg0, $arg1… or $b0 for the formula's variables. |
You do not need to wrap an expression in JSONATA — type it straight into the formula field. Inside an expression, the functions in this catalogue are available as $NAME, so $uppercase($TRIM(" ada ")) returns ADA. JSONata's own functions work under their usual names in the same way, and the two sets do not collide.
Zluri refuses these when you save a formula: $eval, regular expressions and $match, $now, $millis, $random, $shuffle, and an expression that calls itself. Use PASSWORD or RANDOM_STRING in the formula itself rather than inside an expression.
Updated 12 minutes ago
