Step 5: Build Actions
Actions manage how data is processed and actions are triggered. The LeaveMaster app relies on several actions to handle leave request submission, approval, and rejection.
Key Workflow Actions for my Leave Request App
SubmitRequest
Allows an employee to submit a leave request. It first checks the employee’s leave balance and, if sufficient, creates the leave request and sends notifications to both the employee and their manager.
ApproveRequest:
A manager can approve a leave request, which updates the request's status, the employee's leave balance, and sends a notification to the employee.
RejectRequest
Similar to approval, but it updates the request status to rejected and notifies the employee.
These workflows automate the leave request process, ensuring that every step is properly validated and executed.
Last updated