https://github.com/ofentse-sithole/automation_leave_request_system
https://github.com/ofentse-sithole/automation_leave_request_system
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ofentse-sithole/automation_leave_request_system
- Owner: ofentse-sithole
- License: mit
- Created: 2025-05-13T10:03:06.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-05-13T10:11:32.000Z (5 months ago)
- Last Synced: 2025-05-13T11:25:13.392Z (5 months ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π οΈ Automation_Leave_Request_System
## π Project Overview
**Automation_Leave_Request_System** is a mini project that automates the employee leave request process using Microsoft 365 tools. It removes manual workflows and integrates Microsoft Forms, Power Automate, SharePoint, and Outlook to streamline the leave request and approval process.
---
## π Platforms & Technologies Used
| Tool | Purpose |
|-------------------|-------------------------------------------------------------------------|
| Microsoft Forms | To collect leave requests from employees |
| SharePoint | To store and track leave request data |
| Power Automate | To automate the request approval process and notifications |
| Microsoft Outlook | To send automated approval/rejection emails to employees and managers |---
## π Steps to Build the System
### β Step 1: Create the Leave Request Form
1. Go to [Microsoft Forms](https://forms.microsoft.com).
2. Click **New Form** and name it **Leave Request Form**.
3. Add the following fields:
- **Full Name** (Short answer)
- **Email Address** (Short answer)
- **Leave Type** (Dropdown: Annual, Sick, Study)
- **Start Date** (Date)
- **End Date** (Date)
- **Reason for Leave** (Long answer)---
### π Step 2: Set Up SharePoint List
1. Open your **SharePoint** site.
2. Create a **new blank list** and name it **Leave Requests**.
3. Add the following columns:
- **Full Name** (Text)
- **Email Address** (Text)
- **Leave Type** (Choice)
- **Start Date** (Date)
- **End Date** (Date)
- **Reason** (Multiple lines of text)
- **Status** (Choice: Pending, Approved, Rejected)---
### βοΈ Step 3: Create a Flow in Power Automate
1. Open [Power Automate](https://flow.microsoft.com).
2. Click **Create > Automated cloud flow**.
3. Name the flow: `Leave Request Approval Flow`.
4. Choose trigger: **When a new response is submitted** (Microsoft Forms).---
### π§ Step 4: Configure the Flow
#### A. Get Form Response Details
- **Action**: Get response details
- **Form ID**: Select your form
- **Response ID**: Use dynamic content#### B. Add to SharePoint List
- **Action**: Create item
- **Site Address**: Your SharePoint site
- **List Name**: Leave Requests
- **Map form responses** to corresponding SharePoint columns#### C. Start Approval
- **Action**: Start and wait for an approval
- **Approval Type**: Approve/Reject - First to respond
- **Title**: `Leave request from [Full Name]`
- **Assigned To**: Managerβs email
- **Details**: Include leave type, reason, start and end dates#### D. Condition Based on Outcome
- **Condition**: If Outcome is **Approve**
- Send email to requester (Approved)
- Update SharePoint item status to **Approved**
- **Else** (Rejected)
- Send email to requester (Rejected)
- Update SharePoint item status to **Rejected**---
### π§ͺ Step 5: Test the Workflow
- Submit a leave request via the form.
- Verify:
- Item appears in SharePoint list with **Pending** status
- Manager receives an approval email
- Upon decision:
- Requester receives email
- SharePoint list updates to **Approved** or **Rejected**---
## β Benefits
- No manual intervention
- Instant email notifications
- Centralized request tracking
- Fast approvals with a complete audit trail---
## π Author
**Mini Project Contributor Team**
Automation with Microsoft 365 Tools