Stage 6 of 17
Solution design translates the requirements and data model into a concrete specification for what you will build. In this stage you will design the Microsoft Lists column configuration, the five Power Apps screens, the list views, and the Power Automate flow structure.
Why Are We Doing This?
The following table specifies exactly how each column should be configured in Microsoft Lists. Use this as your build checklist in Stage 7.
| Column Name | Type | Required | Default | Choices / Notes |
|---|---|---|---|---|
| Title | Single line of text | Yes | — | Rename display label to "Request Reference". Do not delete. |
| EmployeeName | Single line of text | Yes | — | Display label: "Employee Name" |
| EmployeeEmail | Single line of text | Yes | — | Display label: "Employee Email" |
| ManagerName | Single line of text | Yes | — | Display label: "Manager Name" |
| ManagerEmail | Single line of text | Yes | — | Display label: "Manager Email" |
| LeaveType | Choice | Yes | — | Choices: Annual Leave; Sick Leave; Other. Fill-in choices: OFF. |
| StartDate | Date and Time | Yes | — | Date only (no time). Display label: "Start Date" |
| EndDate | Date and Time | Yes | — | Date only (no time). Display label: "End Date" |
| WorkingDays | Number | No | 0 | Display label: "Working Days". Decimal places: 0. |
| EmployeeComments | Multiple lines of text | No | — | Display label: "Employee Comments". Plain text. |
| Status | Choice | Yes | Draft | Choices: Draft; Submitted; Approved; Rejected; Cancelled. Fill-in choices: OFF. |
| SubmittedDate | Date and Time | No | — | Date and time. Display label: "Submitted Date" |
| DecisionDate | Date and Time | No | — | Date and time. Display label: "Decision Date" |
| Approver | Single line of text | No | — | Display label: "Approver" |
| ApproverComments | Multiple lines of text | No | — | Display label: "Approver Comments". Plain text. |
All Requests
HR and administrators. Shows all requests from all employees.Pending Requests
HR and administrators. Shows all requests awaiting a decision.Approved Requests
HR reporting. Shows all approved requests.Requests by Employee
HR reporting. Shows all requests grouped by employee.Requests by Status
HR reporting. Shows all requests grouped by status.The canvas app has five screens. Each screen is designed for a specific user task. The design specifies the controls on each screen, their type, and their purpose. Formula logic is covered in Stage 8 (Build).
Screen 1 — Home
Landing screen. Shown to all users on app open. Provides navigation to the main functions.
| Control | Type | Purpose |
|---|---|---|
| App title label | Label | Displays "Leave Request App" and the organisation name. |
| Welcome label | Label | Displays "Welcome, [User().FullName]" — personalised greeting using the logged-in user's name. |
| New Request button | Button | Navigates to the New Request screen. |
| My Requests button | Button | Navigates to the My Requests screen. |
| Admin button | Button | Navigates to the Administration screen. Visible only to HR and IT Admin users (controlled by a condition on the Visible property). |
| Pending count label | Label | Displays the number of the current user's requests with Status = Submitted. Provides at-a-glance status. |
Design note: The Admin button uses the Visible property to show or hide based on the logged-in user's email address. This is a simple approach for a small number of admins — a more scalable approach would use a SharePoint list of admin users.
Screen 2 — My Requests
Shows the logged-in employee's own leave requests. Provides status visibility (FR-011).
| Control | Type | Purpose |
|---|---|---|
| Back button | Button | Navigates back to the Home screen. |
| Screen title label | Label | Displays "My Leave Requests". |
| New Request button | Button | Navigates to the New Request screen. |
| Requests gallery | Gallery (vertical) | Displays all requests where EmployeeEmail equals the logged-in user's email. Each row shows: Request Reference, Leave Type, Start Date, End Date, Working Days, Status. |
| Status badge (in gallery) | Label (in gallery) | Colour-coded status indicator. Green = Approved, Red = Rejected, Blue = Submitted, Grey = Draft/Cancelled. |
| Gallery row tap | Gallery OnSelect | Navigates to the Request Details screen, passing the selected request as context. |
| Empty state label | Label | Displayed when the gallery has no items: "You have no leave requests yet." |
Design note: The gallery filter uses: Filter(LeaveRequests, EmployeeEmail = User().Email). This ensures employees only see their own requests (SEC-001). The gallery must be refreshed when the screen is navigated to — use the OnVisible property to call Refresh(LeaveRequests).
Screen 3 — New Request
Form for submitting a new leave request. Validates input before creating a record (FR-001 to FR-004).
| Control | Type | Purpose |
|---|---|---|
| Back button | Button | Navigates back to the Home screen. Warns the user if they have unsaved changes. |
| Screen title label | Label | Displays "New Leave Request". |
| Leave Type dropdown | Dropdown | Allows the employee to select the leave type. Items: Annual Leave, Sick Leave, Other. |
| Start Date picker | Date picker | Allows the employee to select the start date. |
| End Date picker | Date picker | Allows the employee to select the end date. |
| Working Days label | Label | Displays the calculated working days (weekends excluded). Updates automatically when dates change. |
| Manager Name input | Text input | Employee enters their manager's display name. |
| Manager Email input | Text input | Employee enters their manager's email address. Validated to contain "@" and ".". |
| Comments input | Text input (multiline) | Optional free-text comments from the employee. |
| Validation error labels | Labels (hidden by default) | Shown when validation fails. One label per validation rule. Hidden when the rule passes. |
| Save as Draft button | Button | Creates a record in the list with Status = Draft. Does not trigger the flow. |
| Submit button | Button | Validates the form. If valid, creates a record with Status = Submitted. Triggers the Power Automate flow. |
Design note: The Submit button must be disabled (DisplayMode = Disabled) when any required field is blank or any validation rule fails. This prevents partial submissions. The working days calculation runs in the label's Text property — it does not need to be a separate variable.
Screen 4 — Request Details
Read-only view of a single leave request. Shows all fields including approval decision and comments.
| Control | Type | Purpose |
|---|---|---|
| Back button | Button | Navigates back to the My Requests screen. |
| Screen title label | Label | Displays the Request Reference of the selected request. |
| Status badge | Label | Colour-coded status indicator (same colours as the gallery). |
| Request details labels | Labels | Read-only display of: Leave Type, Start Date, End Date, Working Days, Employee Comments, Submitted Date. |
| Decision section | Container (visible when status is Approved or Rejected) | Shows: Decision Date, Approver, Approver Comments. Hidden when status is Draft, Submitted, or Cancelled. |
| Cancel Request button | Button | Visible only when Status = Submitted. Allows the employee to cancel the request. Prompts for confirmation before cancelling. |
Design note: All fields on this screen are read-only. The Cancel Request button uses the Visible property: ThisItem.Status = 'Submitted'. When the employee confirms cancellation, the app updates the Status field to Cancelled using Patch().
Screen 5 — Administration
HR and administrator view. Shows all requests from all employees. Visible only to authorised users.
| Control | Type | Purpose |
|---|---|---|
| Back button | Button | Navigates back to the Home screen. |
| Screen title label | Label | Displays "Administration — All Requests". |
| Filter dropdown | Dropdown | Filters the gallery by Status. Options: All, Draft, Submitted, Approved, Rejected, Cancelled. |
| Search input | Text input | Filters the gallery by employee name (searches the EmployeeName field). |
| All requests gallery | Gallery (vertical) | Displays all requests from all employees, filtered by the dropdown and search input. Shows: Request Reference, Employee Name, Leave Type, Start Date, End Date, Status. |
| Gallery row tap | Gallery OnSelect | Navigates to the Request Details screen for the selected request. |
| Record count label | Label | Displays the number of records currently shown in the gallery. |
Design note: The Administration screen is accessible from the Home screen only when the logged-in user's email is in the admin list. However, this is client-side security only — it does not prevent a determined user from navigating directly to the screen. True data security is enforced by the SharePoint permissions (Stage 10).
The flow has nine actions. Each action is documented with its type, configuration, and purpose.
Trigger: When an item is created
SharePoint triggerConfiguration
Site: IT Team SharePoint site. List: Leave Requests.
Purpose
Fires every time a new item is created in the Leave Requests list. Note: this fires for ALL new items, including Drafts. The next action filters to Submitted only.
Condition: Is the status Submitted?
ConditionConfiguration
Condition: Status equals "Submitted".
Purpose
Prevents the flow from running for Draft records. Only Submitted requests should trigger the approval process. If No: Terminate (Succeeded).
Start and wait for an approval
Approvals actionConfiguration
Approval type: Approve/Reject — First to respond. Title: "Leave Request — [EmployeeName] — [StartDate] to [EndDate]". Assigned to: [ManagerEmail]. Details: include all request fields.
Purpose
Sends an approval email to the manager with Approve and Reject buttons. The flow pauses here until the manager responds.
Condition: Was the request approved?
ConditionConfiguration
Condition: Outcome equals "Approve".
Purpose
Routes the flow to the Approved branch or the Rejected branch based on the manager's response.
Yes branch: Update item — Approved
SharePoint — Update itemConfiguration
Status: Approved. Approver: [Approver name from approval response]. Decision Date: [utcNow()]. Approver Comments: [Comments from approval response].
Purpose
Updates the list record with the approval decision. Fulfils FR-008 and FR-013.
Yes branch: Send email — Approved notification
Office 365 Outlook — Send an emailConfiguration
To: [EmployeeEmail]. Subject: "Your leave request has been approved". Body: include dates, working days, approver name, and approver comments.
Purpose
Notifies the employee that their request was approved. Fulfils FR-009 and FR-010.
No branch: Update item — Rejected
SharePoint — Update itemConfiguration
Status: Rejected. Approver: [Approver name from approval response]. Decision Date: [utcNow()]. Approver Comments: [Comments from approval response].
Purpose
Updates the list record with the rejection decision.
No branch: Send email — Rejected notification
Office 365 Outlook — Send an emailConfiguration
To: [EmployeeEmail]. Subject: "Your leave request has been rejected". Body: include dates, approver name, and approver comments (especially important for rejections — DF-004).
Purpose
Notifies the employee that their request was rejected, including the manager's comments.
Terminate (in the No branch of action 2)
TerminateConfiguration
Status: Succeeded.
Purpose
Gracefully ends the flow for non-Submitted records (Drafts). Using Succeeded rather than Failed prevents false failure alerts in the run history.
Common Mistake
Need more help with the concepts?
Visit DosToDigital for guides, templates, and deeper explanations.