Skip to main content

Templatevariable

A variable available for use in a notification template. Variables can be template-specific (from domain events) or global (available to all templates like __recipient, __global, __util). Template variables provide self-documenting metadata about what variables are available when customizing notification templates.

Properties

NameTypeDescriptionNotes
keystrThe variable name as used when rendering context in templates.[optional]
typeEnum [ 'string', 'boolean', 'number', 'object', 'array', 'function' ]The data type for this variable. Use JSON Schema-like names for values (string, boolean, number, object, array) or "function" for template utility/helper functions (e.g. __dateTool.format(), __esc.html()).[optional]
descriptionstrHuman-readable description explaining what this variable represents.[optional]
exampleobjectExample value demonstrating the format and usage. For type "function", often a Velocity-style call (e.g. $__esc.html($value)). Can be a string, number, boolean, object, array, or null when no example is defined.[optional]
}

Example

from sailpoint.notifications.models.templatevariable import Templatevariable

templatevariable = Templatevariable(
key='recipientDisplayName',
type='string',
description='Display name of the notification recipient',
example=John Doe
)

[Back to top]