You can use placeholders to automatically
insert data into your email templates located
in Configuration --> Alerts --> New
Alert --> Message --> Add Placeholder.
When in use placeholder fields follow this format:
{{field}}Standard Fields
These fields return a single value and
can be used directly:
Recipient First Name
Recipient Last Name
Submitter First Name
Submitter Last Name
Approver First Name
Approver Last Name
Number of Employees Submitted
Comment
Comp Grid Link
Submission Date
Employee ID
First Name
Last Name
Comp Cycle
Example: Using Standard Fields in a
Message Template
Hello {{RecipientFirstName}}
{{RecipientLastName}},
Your compensation
submission for the {{CompCycle}} cycle has
been received.
Submitted by: {{SubmitterFirstName}}
{{SubmitterLastName}}
Reviewed by: {{ApproverFirstName}}
{{ApproverLastName}}
Number of Employees
Submitted: {{NumberOfEmployeesSubmitted}}
Comment: {{Comment}}
List Fields (Loop Required)
The following fields return a Dictionary with Items. To display their
contents, you’ll need to loop through them
using the
{{#each}} helper:SubmittedEmployees
ApprovedEmployees
RejectedEmployees
Accessing Data Within List Fields
The Dictionary would have multiple data points like first name,
last name, etc. To access individual
values, use the
this keyword.{
"EmployeeId": "E12345",
"FirstName": "Jane",
"LastName": "Doe",
"Title": "Senior Analyst",
"Department": "Finance"}
Example: Looping Through Approved
Employees
{{#each ApprovedEmployees}}
{{this.FirstName}}
{{this.LastName}}
{{/each}}
Explanation:
{{#each ApprovedEmployees}} – Starts a loop through all approved
employees.{{this.FirstName}}
{{this.LastName}} –
Displays each employee’s name.{{/each}} – Ends the
loop.Let us know if
you need help setting up or customizing
your templates!