Filter and Variable Reference
Variables
The following table lists all of the built-in variables available within the template engine.
Variable | Description | Example | Output |
---|---|---|---|
Type: | The object from the data pipeline that was passed in from the previously run action. |
|
TEXT
|
Type: | A context object that provides information about the current workflow/run. | ⬇️ | ⬇️ |
Type: | The current Cloud ID. |
|
|
Type: | The current workflow ID. |
|
|
Type: | The current workflow name. |
|
|
Type: | The current workflow’s trigger type. Can be one of: |
|
|
Type: | The current run’s ID. Guaranteed to be unique across different runs. |
|
|
Type: | The timestamp at which the current workflow run started executing. |
|
|
Type: | Only used within the Select action when you provide an input array. Used to reference the current object when iterating over the array. |
|
|
Type: | The current UTC date (only) in ISO-8601 format. |
|
|
Type: | The current UTC date and time in ISO-8601 format. |
|
|
Type: | The current UTC date and time, as a |
|
|
Type: | Generates a new ULID. |
|
|
Type: | Generates a new GUID / UUIDv4. |
|
|
Type: | Generates a random number between the minimum (inclusive) and maximum (exclusive) numbers specified, each time the template is evaluated. min and max must be less than or equal to 2147483647. |
|
|
Filters
The following table lists all of the functions (filters) available within the template engine.
Filter | Returns | Description | Example | Output |
---|---|---|---|---|
|
| Converts an object to a JSON string. |
|
JSON
|
|
| Converts an object to a formatted JSON string. |
|
JSON
|
|
| Parses the string into a JSON object. |
|
JSON
|
|
| Strings: Gets the length of the string. |
|
|
|
| Converts a string to upper case. |
|
|
|
| Converts a string to lower case. |
|
|
|
| Capitalizes the first letter of a string. |
|
|
|
| Selects a property from an object with a complex name. (Properties cannot be dot-indexed if they contain special characters.) | |
|
|
| Takes the first n items, or takes only the first one if the count is omitted. Works on arrays, objects, and strings. For arrays, when count=1, returns the item by itself, otherwise returns a new |
|
|
|
| Gets the type of the input object. Will return one of: |
|
|
|
| Formats the input according to .NET formatting rules. Allows you to format numbers, dates, times, etc. For more information, refer to the .NET formatting overview. |
|
|
|
| Converts the input into a string. If the input is already a string, does nothing. Equivalent to calling |
|
|
|
| Attempts to convert the input to an integer. Returns 0 if the conversion failed or the input is invalid. |
|
|
|
| Attempts to convert the input to a floating point number. Returns 0 if the conversion failed or the input is invalid. |
|
|
|
| Attempts to convert the input into a date/time object. |
|
|
|
| Attempts to convert the input to a boolean. Case-insensitive. Accepted truthy values are |
|
|
|
| Converts the input to a Base64-encoded string. |
|
|
|
| Converts the input from a Base64-encoded string back into a (UTF-8) string. |
|
|
|
| Converts the input to a Base64-encoded URL safe string. |
|
|
|
| Converts the input from a Base64-encoded URL-safe string back into a (UTF-8) string. |
|
|
|
| Retrieves a list of the keys present in an object/dictionary. |
|
JSON
|
|
| Null-coalescing function. Equivalent to |
|
|
This list does not encompass all filters available to the Liquid language. For a full filter reference, please refer to the Liquid filter documentation.