Stage 6 of 17

Stage 6 of 17

Solution Design

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?

Designing before building prevents rework. A screen design that takes 30 minutes to draw saves hours of rebuilding controls that were placed in the wrong order or connected to the wrong data source. Design is also a communication tool — you can show the design to stakeholders before writing a single formula.

Microsoft Lists — Column Build Specification

The following table specifies exactly how each column should be configured in Microsoft Lists. Use this as your build checklist in Stage 7.

Column NameTypeRequiredDefaultChoices / Notes
TitleSingle line of textYes—Rename display label to "Request Reference". Do not delete.
EmployeeNameSingle line of textYes—Display label: "Employee Name"
EmployeeEmailSingle line of textYes—Display label: "Employee Email"
ManagerNameSingle line of textYes—Display label: "Manager Name"
ManagerEmailSingle line of textYes—Display label: "Manager Email"
LeaveTypeChoiceYes—Choices: Annual Leave; Sick Leave; Other. Fill-in choices: OFF.
StartDateDate and TimeYes—Date only (no time). Display label: "Start Date"
EndDateDate and TimeYes—Date only (no time). Display label: "End Date"
WorkingDaysNumberNo0Display label: "Working Days". Decimal places: 0.
EmployeeCommentsMultiple lines of textNo—Display label: "Employee Comments". Plain text.
StatusChoiceYesDraftChoices: Draft; Submitted; Approved; Rejected; Cancelled. Fill-in choices: OFF.
SubmittedDateDate and TimeNo—Date and time. Display label: "Submitted Date"
DecisionDateDate and TimeNo—Date and time. Display label: "Decision Date"
ApproverSingle line of textNo—Display label: "Approver"
ApproverCommentsMultiple lines of textNo—Display label: "Approver Comments". Plain text.

Microsoft Lists — View Designs

All Requests

HR and administrators. Shows all requests from all employees.
Columns: Title, EmployeeName, LeaveType, StartDate, EndDate, WorkingDays, Status, SubmittedDate, Approver
Sort: SubmittedDate descending
Filter: None
Group by: None

Pending Requests

HR and administrators. Shows all requests awaiting a decision.
Columns: Title, EmployeeName, ManagerName, LeaveType, StartDate, EndDate, WorkingDays, SubmittedDate
Sort: SubmittedDate ascending (oldest first)
Filter: Status equals Submitted
Group by: None

Approved Requests

HR reporting. Shows all approved requests.
Columns: Title, EmployeeName, LeaveType, StartDate, EndDate, WorkingDays, DecisionDate, Approver
Sort: StartDate ascending
Filter: Status equals Approved
Group by: None

Requests by Employee

HR reporting. Shows all requests grouped by employee.
Columns: Title, LeaveType, StartDate, EndDate, WorkingDays, Status, SubmittedDate
Sort: SubmittedDate descending
Filter: None
Group by: EmployeeName

Requests by Status

HR reporting. Shows all requests grouped by status.
Columns: Title, EmployeeName, LeaveType, StartDate, EndDate, WorkingDays, SubmittedDate
Sort: SubmittedDate descending
Filter: None
Group by: Status

Power Apps — Screen Designs

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.

ControlTypePurpose
App title labelLabelDisplays "Leave Request App" and the organisation name.
Welcome labelLabelDisplays "Welcome, [User().FullName]" — personalised greeting using the logged-in user's name.
New Request buttonButtonNavigates to the New Request screen.
My Requests buttonButtonNavigates to the My Requests screen.
Admin buttonButtonNavigates to the Administration screen. Visible only to HR and IT Admin users (controlled by a condition on the Visible property).
Pending count labelLabelDisplays 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).

ControlTypePurpose
Back buttonButtonNavigates back to the Home screen.
Screen title labelLabelDisplays "My Leave Requests".
New Request buttonButtonNavigates to the New Request screen.
Requests galleryGallery (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 tapGallery OnSelectNavigates to the Request Details screen, passing the selected request as context.
Empty state labelLabelDisplayed 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).

ControlTypePurpose
Back buttonButtonNavigates back to the Home screen. Warns the user if they have unsaved changes.
Screen title labelLabelDisplays "New Leave Request".
Leave Type dropdownDropdownAllows the employee to select the leave type. Items: Annual Leave, Sick Leave, Other.
Start Date pickerDate pickerAllows the employee to select the start date.
End Date pickerDate pickerAllows the employee to select the end date.
Working Days labelLabelDisplays the calculated working days (weekends excluded). Updates automatically when dates change.
Manager Name inputText inputEmployee enters their manager's display name.
Manager Email inputText inputEmployee enters their manager's email address. Validated to contain "@" and ".".
Comments inputText input (multiline)Optional free-text comments from the employee.
Validation error labelsLabels (hidden by default)Shown when validation fails. One label per validation rule. Hidden when the rule passes.
Save as Draft buttonButtonCreates a record in the list with Status = Draft. Does not trigger the flow.
Submit buttonButtonValidates 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.

ControlTypePurpose
Back buttonButtonNavigates back to the My Requests screen.
Screen title labelLabelDisplays the Request Reference of the selected request.
Status badgeLabelColour-coded status indicator (same colours as the gallery).
Request details labelsLabelsRead-only display of: Leave Type, Start Date, End Date, Working Days, Employee Comments, Submitted Date.
Decision sectionContainer (visible when status is Approved or Rejected)Shows: Decision Date, Approver, Approver Comments. Hidden when status is Draft, Submitted, or Cancelled.
Cancel Request buttonButtonVisible 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.

ControlTypePurpose
Back buttonButtonNavigates back to the Home screen.
Screen title labelLabelDisplays "Administration — All Requests".
Filter dropdownDropdownFilters the gallery by Status. Options: All, Draft, Submitted, Approved, Rejected, Cancelled.
Search inputText inputFilters the gallery by employee name (searches the EmployeeName field).
All requests galleryGallery (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 tapGallery OnSelectNavigates to the Request Details screen for the selected request.
Record count labelLabelDisplays 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).

Power Automate Flow Design — DToDLab002-LeaveApproval

The flow has nine actions. Each action is documented with its type, configuration, and purpose.

1

Trigger: When an item is created

SharePoint trigger

Configuration

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.

2

Condition: Is the status Submitted?

Condition

Configuration

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).

3

Start and wait for an approval

Approvals action

Configuration

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.

4

Condition: Was the request approved?

Condition

Configuration

Condition: Outcome equals "Approve".

Purpose

Routes the flow to the Approved branch or the Rejected branch based on the manager's response.

5

Yes branch: Update item — Approved

SharePoint — Update item

Configuration

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.

6

Yes branch: Send email — Approved notification

Office 365 Outlook — Send an email

Configuration

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.

7

No branch: Update item — Rejected

SharePoint — Update item

Configuration

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.

8

No branch: Send email — Rejected notification

Office 365 Outlook — Send an email

Configuration

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.

9

Terminate (in the No branch of action 2)

Terminate

Configuration

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

Action 3 ("Start and wait for an approval") pauses the flow until the manager responds. If the manager never responds, the flow waits indefinitely. Power Automate has a maximum run duration (currently 30 days for standard flows). After 30 days, the flow will time out and the request will remain in Submitted status forever. The reminder flow (FR-016) helps mitigate this but does not solve the timeout problem.

Try It Yourself — Design Review

  1. 1.The Home screen shows a "Pending count" label. Write the Power Apps formula that would count the number of the current user's requests with Status = Submitted. (Hint: use CountIf() and Filter().)
  2. 2.The Administration screen uses client-side visibility to restrict access. Why is this not sufficient security on its own? What additional security measure is needed?
  3. 3.Action 2 in the flow checks if Status = "Submitted". What would happen if an employee submitted a request, the flow started, and then the employee cancelled the request before the manager responded? Would the flow still send the approval email?
  4. 4.The flow design does not include a step to handle the case where the manager's email address is invalid (e.g. the employee typed it incorrectly). What would happen in this case? How would you detect it?

Stage Complete — What You Now Have

  • ✓A complete column build specification for the Leave Requests list (15 columns)
  • ✓Five list view designs with columns, sort, filter, and group-by settings
  • ✓Five Power Apps screen designs with all controls, types, and purposes
  • ✓A nine-action Power Automate flow design with configuration and purpose for each action
  • ✓Key design notes covering security, refresh behaviour, and flow timeout
NextPrepare

Need more help with the concepts?

Visit DosToDigital for guides, templates, and deeper explanations.

DosToDigital
DToD Labs

Learn it. Build it. Make it work.

A DosToDigital Project

About DToD Labs

Practical technology learning for Microsoft 365 and Power Platform. Build real business solutions from real business problems.

Learn the concepts at DosToDigital. Put them into practice at DToD Labs.

DToD Labs provides practical learning projects for educational purposes. Microsoft services, interfaces, licensing and product capabilities change over time. Always check current Microsoft documentation and licensing before implementing a solution in a production environment. All organisations, business scenarios and data used in DToD Labs are fictional. Learners should not use confidential employer, customer or personal information when following DToD Labs exercises.

© 2026 DToD Labs — A DosToDigital Project