general.md
1.11 KB
General notification templatization
Notification subject and message fields support templatization. The list of available templatization parameters depends on the template type. See the available types and parameters below:
Available template parameters:
-
recipientTitle- title of the recipient (first and last name if specified, email otherwise); -
recipientEmail- email of the recipient; -
recipientFirstName- first name of the recipient; -
recipientLastName- last name of the recipient;
Parameter names must be wrapped using ${...}. For example: ${recipientFirstName}.
You may also modify the value of the parameter with one of the suffixes:
-
upperCase, for example -${recipientFirstName:upperCase} -
lowerCase, for example -${recipientFirstName:lowerCase} -
capitalize, for example -${recipientFirstName:capitalize}
Examples
Let's assume the notification recipient user John Doe. The following template:
Hi, ${recipientFirstName}!
{:copy-code}
will be transformed to:
Hi, John!