Custom Helpers Reference
Collate provides 23 custom helpers to format and manipulate event data. These are in addition to standard Handlebars features. Use these helpers to transform data in your notification templates.Data Extraction
pluck - Extract properties from objects
Extracts a specific property from each object in an array.
Syntax:
tagFQN property from each tag object, resulting in a simple list of tag names.
filter - Filter lists by property value
Filters array items based on property values.
Syntax:
split - Split strings into arrays
Splits a string by a delimiter into an array of parts.
Syntax:
database.schema.table into individual parts for display.
Advanced Example - Nested Field Parsing:
When parsing hierarchical field names like columns.columnName.tags, combine with lookup:
limit - Limit array items
Limits the number of items displayed from an array.
Syntax:
lookup - Access array element by index
Accesses a specific element in an array by its index (0-based).
Syntax:
split helper to parse hierarchical names.
String Operations
camelCaseToTitle - Convert camelCase to Title Case
Converts camelCase strings to Title Case format.
Syntax:
testCase to Test Case, dataAsset to Data Asset.
startsWith - Check string prefix
Checks if a string starts with a specific prefix.
Syntax:
endsWith - Check string suffix
Checks if a string ends with a specific suffix.
Syntax:
textDiff - Show text differences
Displays the difference between old and new text with strikethrough and highlighting.
Syntax:
insTag: HTML tag for inserted text (default:"b")delTag: HTML tag for deleted text (default:"s")
Comparison & Logic
eq - Equality check
Checks if two values are equal.
Syntax:
gt - Greater than
Checks if first value is greater than the second.
Syntax:
and - Logical AND
Combines multiple conditions with logical AND.
Syntax:
or - Logical OR
Combines multiple conditions with logical OR.
Syntax:
not - Logical NOT
Inverts a condition.
Syntax:
Collection Operations
groupEventChanges - Group changes into categories
Organizes field changes into separate categories: updates, additions, and deletions.
Syntax:
hasFieldInChanges - Check if field was modified
Checks if a specific field was modified in the change description.
Syntax:
Must be used with changes from
groupEventChangeslength - Get array/string length
Returns the number of items in an array or characters in a string.
Syntax:
Formatting
formatDate - Format timestamps
Converts timestamps to human-readable date and time format.
Syntax:
2025-11-13 14:30:00
buildEntityUrl - Generate UI links
Creates a clickable URL that opens the entity in Collate UI.
Syntax:
https://your-Collate/entity/table/database.schema.table
parseEntityLink - Extract entity from link strings
Extracts entity information from entity link strings.
Syntax:
processMentions - Convert mentions to links
Converts @mention syntax to clickable user profile links. Typically used with user-entered descriptions or comments that may contain @mentions to team members.
Syntax:
@john.doe in text to a link to that user’s profile.
Use three curly braces
{{{ to render HTML output without escaping.resolveDomain - Resolve domain references
Displays domain names even when passed as object references.
Syntax:
This helper gracefully handles multiple input types:
- Domain object references:
{{resolveDomain domain}} - Already-resolved domain strings:
{{resolveDomain "domain-name"}} - Null/undefined values: Returns empty string
Math Operations
math - Perform calculations
Performs mathematical operations on numbers.
Syntax:
+- Addition-- Subtraction*- Multiplication/- Divisionround- Round to decimal places
Next Steps
- Learn Handlebars basics → Handlebars Templating Guide
- Understand available data → Template Context Reference