Stage 4 of 17

Stage 4 of 17

Process Design

Process design maps the flow of work through the system — who does what, in what order, and what happens at each decision point. In this stage you will document the current-state process, the future-state process, the status lifecycle, and the solution architecture.

Why Are We Doing This?

A process map makes the system's behaviour visible before you build anything. It reveals decision points, edge cases, and handoffs between actors that are easy to miss when thinking about the system abstractly. A well-drawn process map is also a communication tool — you can walk a stakeholder through it to confirm you have understood the requirement correctly.

Current-State Process

The current process has seven steps across three actors: Employee, Manager, and HR. The key problems are highlighted in red.

Current State — Email-Based Leave Request Process

Employee

Manager

HR

Decides to take leave. Checks own calendar.

Sends email to manager with dates and leave type.

Receives email (may be buried in inbox).

P-001: Requests lost in email

Checks team calendar (often out of date). Decides to approve or reject.

P-007: Calendar conflicts

Replies to email with decision. No standard format.

P-003: Inconsistent process

Receives reply. If approved, manually updates own calendar and team calendar.

P-004: Unclear status; P-002: No central record

Emails all managers monthly to collect leave data. Compiles spreadsheet manually.

P-005: Difficult reporting; P-006: No audit trail

Future-State Process

The future-state process introduces the Power Apps app and the Power Automate approval flow. The key improvements over the current state are highlighted in green.

Future State — Power Apps Leave Request Process

Employee

Power Apps

Power Automate

Manager

Opens Power Apps app. Selects New Request.

Enters leave type, start date, end date, and optional comments. App calculates working days.

✓ Structured data entry; validation prevents invalid dates

Selects Submit. App validates the form and creates a record in Microsoft Lists with Status = Submitted.

✓ Central record created immediately; no email required

Trigger fires on new Submitted record. Sends approval email to the manager specified in the request.

✓ Automated; manager receives a clear, structured notification

Receives approval email with Approve/Reject buttons and request details. Adds optional comments.

✓ One-click decision; no need to open the app

Receives manager's response. Updates the list record: Status, Approver, Decision Date, Approver Comments.

✓ Automatic update; no manual data entry required

Sends notification email to employee with the decision and manager's comments.

✓ Employee notified immediately; no chasing required

Receives notification email. Opens app to view updated request status and comments.

✓ Full visibility of request status at any time

Status Lifecycle

Every leave request has a Status field. The status changes as the request moves through the process. Understanding the valid status transitions is essential for building the flow and the app correctly.

Status Lifecycle — Valid Transitions

Draft

Saved but not yet submitted

Submitted

Submitted; awaiting manager decision

Approved

Manager approved

Rejected

Manager rejected

Cancelled

Employee cancelled before decision

Valid Transitions

Draft→Submittedby Employee: Employee selects Submit in the app
Draft→Cancelledby Employee: Employee deletes the draft (or selects Cancel)
Submitted→Approvedby Power Automate: Manager selects Approve in the approval email
Submitted→Rejectedby Power Automate: Manager selects Reject in the approval email
Submitted→Cancelledby Employee: Employee cancels before the manager responds (FR-015)

Invalid Transitions

  • ✗Approved → Rejected (a decision cannot be reversed in v1)
  • ✗Rejected → Approved (same)
  • ✗Cancelled → Submitted (a cancelled request cannot be resubmitted; a new request must be created)
  • ✗Approved → Cancelled (leave that has been approved cannot be cancelled through the app in v1)

Cancellation Process

Cancellation is handled separately from the main approval flow because it can happen at different points and involves different actors.

Employee cancels a Draft

The employee deletes the draft record in the app. No notification is sent. The record is removed from the list (or status set to Cancelled).

Employee cancels a Submitted request (before decision)

The employee selects Cancel in the app. The status is updated to Cancelled. The Power Automate approval is cancelled (if the flow supports this). The manager receives a notification that the request has been withdrawn.

Employee wants to cancel an Approved request

This is out of scope for v1. The employee must contact HR directly. This is a known limitation documented in the support guide.

Common Mistake

Cancelling a Power Automate approval that is already in progress is technically possible but complex. The flow must be designed to handle cancellation gracefully — for example, by checking the request status at the start of the approval action and terminating if the status is already Cancelled. This is covered in Stage 9 (Automate).

Solution Architecture

The solution has four components. Understanding how they connect is essential before building any of them.

Microsoft Lists — Leave Requests

Data store

Stores all leave request records. Every request is a row in the list. The Power Apps app reads from and writes to this list. The Power Automate flow also reads from and writes to this list.

Technology: SharePoint / Microsoft Lists

Power Apps Canvas App

User interface

The app employees use to submit requests and view their status. Connects directly to the Microsoft Lists data store via the SharePoint connector. Enforces client-side validation before creating records.

Technology: Power Apps (canvas app)

Power Automate — DToDLab002-LeaveApproval

Approval workflow

Triggered when a new record is created in the Leave Requests list with Status = Submitted. Sends an approval email to the manager. Updates the list record with the decision. Sends a notification email to the employee.

Technology: Power Automate (automated cloud flow)

Microsoft Outlook / Teams

Notification channel

Approval emails are sent to managers via Outlook. Notification emails are sent to employees via Outlook. The app can optionally be added as a tab in a Microsoft Teams channel.

Technology: Microsoft Outlook / Microsoft Teams

Design Decisions

Design Decision

DD-001: Use Power Apps canvas app rather than a model-driven app

Rationale

A canvas app gives full control over the user interface and is simpler to build for a beginner. A model-driven app would require Dataverse, which requires a premium licence. The canvas app can connect directly to Microsoft Lists using the standard SharePoint connector.

Trade-off: Canvas apps require more manual UI work. Model-driven apps provide more built-in functionality (views, forms, business rules) but at higher cost and complexity.

Design Decision

DD-002: Store manager email in the request, not look it up from Azure AD

Rationale

Looking up the manager from Azure AD requires the Azure AD connector, which is a premium connector. Storing the manager's email in the request is simpler and within the standard licence.

Trade-off: If a manager changes, existing requests still reference the old manager. The employee must enter the correct manager email — there is no validation against a directory. This is a known limitation documented in the support guide.

Design Decision

DD-003: Use Power Automate approval action rather than a custom approval screen in the app

Rationale

The built-in Power Automate approval action sends an email with Approve/Reject buttons. The manager can respond without opening the app. This meets DF-002 (frictionless approval) and requires no additional development.

Trade-off: The approval email format is controlled by Microsoft and cannot be fully customised. The manager cannot add rich formatting to their comments.

Design Decision

DD-004: Use Microsoft Lists rather than Dataverse as the data store

Rationale

Microsoft Lists is included in Microsoft 365 Business Standard. Dataverse requires a Power Apps premium licence. For a simple leave request application with a small number of records, Microsoft Lists is sufficient.

Trade-off: Microsoft Lists has limitations: no complex relationships, no calculated columns in flows, limited business logic. If the solution grows significantly, migration to Dataverse may be needed.

Design Decision

DD-005: Working days calculation excludes weekends only

Rationale

Calculating working days accurately requires a bank holiday calendar, which varies by country and region. For v1, the calculation will exclude weekends only. The displayed value is informational — it is not used for leave balance deduction.

Trade-off: The displayed working days count will be incorrect for requests that span bank holidays. This is documented as a known limitation.

Try It Yourself — Process Analysis

  1. 1.The status lifecycle shows that Approved → Cancelled is an invalid transition in v1. Why might an employee need to cancel approved leave? How would you handle this in a real HR system?
  2. 2.DD-002 says the manager's email is entered by the employee. What would happen if an employee entered their own email address as the manager? How could you prevent this?
  3. 3.The future-state process has Power Automate updating the list record after the manager responds. What would happen to the request if the Power Automate flow failed at this step? How would you detect and recover from this?
  4. 4.Draw the cancellation process for "Employee cancels a Submitted request" as a simple flow diagram with decision points.

Stage Complete — What You Now Have

  • ✓A seven-step current-state process map with pain points identified
  • ✓An eight-step future-state process map showing the role of each component
  • ✓A complete status lifecycle with valid and invalid transitions
  • ✓A cancellation process covering three scenarios
  • ✓A four-component solution architecture
  • ✓Five documented design decisions with rationale and trade-offs

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