Send Email Regarding HR Status Activity – Workflow Event Handler

Use this event handler to automatically email certain people when a new employee record is added, or an employee’s status is updated, on the Employees form through a BOD from an external HR application.

Notification Text

This is the text of the notification that is sent for an added employee:


To: recipient
From: originator
Subject: Employee HR Status Change for Employee: Emp_NumEmployee_Name
Body: The HR Status for Employee Emp_NumEmployee_Name has been changed from previous_status to new_status.

This is the text of the notification that is sent for an employee with a status change:


To: recipient
From: originator
Subject: New Employee Notification for: Emp_NumEmployee_Name
Body: Employee Emp_NumEmployee_Name has been added with status new_status.

Variable Information

Variable Description
recipient For an external email, this is the email address you specify in the Email Users field on the Workflow Event Handler Activation form. You can specify multiple names separated by a semicolon.
originator

This is usually the email address associated with the SyteLine user who performed the action that generated the message.

However, if the user does not have an associated email address in the Users form, or if the system cannot determine a user associated with the action, a default address or name is used. In some cases, this default is the email address for the SMTP User Name associated with the intranet entered on the Site/Entities form for the site.

Emp_Num This is the employee number that was added or updated on the Employees form.
Emp_Name This is the employee name that was added or updated on the Employees form.
Prev_statu This is the old status.
New_statu This is the new status.

Global Constants

This global constant is created by the event handler, based on the entries you make in the Workflow Event Handler Activation form:

Global constant Contains
HRSendHRChangeStatusEmail Contents of the Email Users field.

Associated Event and IDO

The workflow is triggered on the database level through the employee table update, when a record is added through a BOD or when external_hr_status is updated by a BOD.