Step 4: Set up Notifications
Notifications are critical for keeping users informed about important events related to employee leave requests. These notifications are predefined before the actions are executed and triggered as part of the workflow.
Notifications ensure that both employees and managers receive timely updates about the status of requests and approvals.
Notifications used in the Leave Request app
EmployeeRequestSubmitted
Upon submitting the leave request, the system should send the EmployeeRequestSubmitted notification to the requester for reference.
NewLeaveRequestWaitingApproval
This notification should be sent to the relevant manager when a new request is submitted. It ensures that the manager is notified promptly of pending actions.
RequestApproved
Once the manager approves a leave request, the RequestApproved notification is triggered to notify the employee of the approval and to update the system's status.
RequestRejected
If the manager rejects a leave request, the system sends a RequestRejected notification to the employee.
By defining these notifications, the system can use them within action workflows to ensure real-time updates and communication between employees and managers.
Last updated