Add an email notification for daily health verification
Add an Employee Readiness Surveys email notification to use for sending the survey link.
Vorbereitungen
Prozedur
- Navigate to All > System Notifications > Email > Notifications.
- Review the existing Daily Health Verification email notification to familiarize yourself with the scripts and other settings.
- Select New.
- In the Table field, select the Health Verification Acknowledgements [sn_imt_checkin_health_verification_acknowledgement] table.
-
On the When to send tab, set the conditions.
- In the Send when field, select Record inserted or updated from the drop-down list.
- Set the Conditions criteria to [User.Active][is][true] and [Acknowledgment Status][is not][Acknowledged]..
- In the Advanced condition script, enter the following code:
var employeeDailyHealthVerificationSysId = <your-sys_id> answer = current.employee_check_in.notification = employeeDailyHealthVerificationSysId;Replace the <your-sys_id> variable with the sys_id notification that you're adding by opening the additional actions menu, selecting Copy sys_id, and pasting the sys_id into the code line.
The following figure shows example settings for the Daily Health Verification base system notification.
- On the Who will receive tab, open Users/Groups in fields and select Assigned to.
- On the What it will contain tab, complete the remaining information.
- Select Submit.
- In the Notifications list, open the notification that you added and select Preview Notification.
- Review the notification and make any necessary modifications.
- Select Update.