Travel Expense: Approved/ Rejected (per hour)
Summary | The task fetches employees when the Travel Expense has been approved or rejected. The notification is sent each hour. |
---|---|
Keywords | Employee Portal, Travel Expense, Approved/ Rejected |
Description
The notification task sends out an automatic email to employees when the Travel Expense has been approved or rejected. The notification is sent each hour.
Main data selection
All the persons whose travel expense has been approved or rejected within the last hour.
SQL Statement
Field Specification
#FIRSTNAME
- the first name of the person from the Personal Details.
#DOCUMENT_ID
- the ID of the Travel Expense document that was either approved or rejected.
#DATEFROM
- start date of the Travel Expense document.
#DATETO
- end date of the Travel Expense document.
#STATE
- document state: approved/ rejected.
#APPROVER_NAME
- full name of the approver.
#EMAIL
- e-mail address of the person from the Personal Details. The e-mail with the highest priority is taken.
Sample E-mail Output
Hello [#FIRSTNAME],
This e-mail is to inform that your document [#DOCUMENT_ID] for the period [#DATEFROM] - [#DATETO] has been [#STATE] by the manager [#APPROVER_NAME].
For more details connect to the portal:
Best regards,
Daria
Other
Recipients can be modified depending on the customer. It can be:
a fixed list of emails;
or dynamic list retrieved from the database.
Schedule: Hourly, every 60 minutes.