Creating Notification E-Mail Templates
Use
For the Social Benefits Distribution process, you need to create e-mail templates for approval and rejection. You use these templates in the last notification step of the process, where a notification is sent by e-mail to the employee.
Prerequisites
You have the appropriate rights to work with the GP Administration workset.
More information: Authorizations
Procedure
- In the portal, navigate to Guided Procedures → Administration.
- Choose General → Maintain E-Mail Templates.
- Under New, choose HTML Template.
- Provide the following basic data:
- Master Language- English
- Technical Name- approve or reject
- Language- English
- Title- Social Benefits Approval or Social Benefits Rejection
- Content Type- HTML document
- In the Content text area, enter the contents of the notification.
You may copy the examples provided in the Example section below and paste them in the text area.
- To check the syntax of the HTML document, choose Check.
- Finally, choose Create.
Example
The examples use replacements for a set of context and system parameters:
- ctxt.firstname - employee's first name
- ctxt.lastname - employee's last name
- role.initiator.lastname - initiator's last name
- sy.currenttime - current date and time of the system
Example of Approval Notification Template <html>
<head>
<title>Social Benefits Approval</title>
</head>
<body>
<p> Dear Mr/Ms
`{ writeln(ctxt.firstname); write(ctxt.lastname); }`,</p>
<p>The social benefits distribution that you requested was <b>approved</b> on `{ writeln(sy.currenttime); }`.
</p>
<p>Best regards,</p>
<p><i> `{ writeln(role.initiator.lastname); }`
</i></p>
</body>
</html>
| Example of Rejection Notification Template |
|---|
|
<html> <head> <title>Social Benefits Rejection</title> </head> <body> <p> Dear Mr/Ms `{ writeln(ctxt.firstname); write(ctxt.lastname); }`,</p> <p>The social benefits distribution that you requested was <b>rejected</b> on `{ writeln(sy.currenttime); }`. </p> <p>Best regards,</p> <p><i> `{ writeln(role.initiator.lastname); }` </i></p> </body> </html> |
More Information