Skip to main content

Build an Overtime Timesheet App in Power Apps

Replace an Excel overtime timesheet with a Power Apps app on SharePoint: staff log overtime, hours are calculated and totalled for them, each department's approvers approve it in Teams or Outlook, and payroll gets a monthly Excel workbook and a Power BI report.

21 parts · 10 h 30 min read

Start with Part 1
  1. Plan the App and Set Up the Demo Organization

    · 24 min read

    Start a series that replaces an Excel overtime timesheet with a Power Apps app on SharePoint: what it does, how it's designed, what it costs, the demo organization, and the old Excel timesheet it replaces.

  2. Create the SharePoint Site and Lists

    · 22 min read

    Create the SharePoint site behind the Overtime Timesheet app: UK dates and London time, a Departments list with approvers, an OvertimeEntries list with a validation rule and indexes, and a library for payroll's workbooks.

  3. Keep Overtime Private with SharePoint Permissions

    · 19 min read

    Make SharePoint enforce the Overtime Timesheet's privacy: staff see only their own entries and can't delete them, an edited entry goes back for approval, and payroll's library is for payroll only. Then sign in as four people to prove it.

  4. Create the Solution, Environment Variables and Canvas App

    · 17 min read

    Create the Overtime Timesheet solution, four environment variables for the SharePoint site, lists and payroll library, and a responsive canvas app with modern controls, connected to the lists and to Microsoft 365 profiles.

  5. Build the Home Screen

    · 26 min read

    Build the Overtime Timesheet app's Home screen: named formulas that work out who is an approver, payroll or admin from SharePoint and Microsoft Entra groups, a responsive layout of tiles that wrap on phones, and a green theme.

  6. Build the Log Overtime Screen

    · 30 min read

    Build the Log Overtime screen: a UK date picker, searchable start and finish times, an unpaid break, hours worked out live across midnight and clock changes, checks for overlaps and unfinished shifts, and a Patch that saves each shift to SharePoint.

  7. Build the My Overtime Screen

    · 42 min read

    Build the My Overtime screen: a month of each person's overtime with status badges, the month's total and Monday-to-Sunday weekly totals, previous and next month buttons, and editing an entry on the Log Overtime screen until it's approved.

  8. Build the Approval Flow for Teams and Outlook

    · 38 min read

    Build the overtime approval flow in Power Automate: each pending entry goes to its department's approvers in Teams and Outlook, or to the person's manager, and the decision is saved on the entry, approves or rejects it in SharePoint, and is emailed to the employee.

  9. Show Approvers What's Waiting

    · 35 min read

    Give approvers a screen in the overtime app that lists every entry waiting for their decision: a Power Apps flow finds who's asking, reads the pending entries they can't open in SharePoint, and returns only their departments' entries as JSON for a gallery.

  10. Build the Departments Screen

    · 35 min read

    Build the screens where admins manage departments in the overtime app: a list with each department's approvers and status, and one screen that adds or edits a department, with a people picker, an Active toggle and a check for duplicate names.

  11. Build the Reports Screen

    · 45 min read

    Build the overtime app's Reports screen: a flow that returns one month's approved overtime that the person may see, every department for payroll and their own departments for approvers, and a screen with the month's total, a column chart by department and each person's hours.

  12. Import the Old Excel Timesheet

    · 33 min read

    Import an old Excel overtime timesheet into a SharePoint list with a Power Automate flow: rows read with ISO dates, UK times converted to UTC across the clock change, departments and people matched, duplicates skipped, entries created and approved, and a summary of what was left out.

  13. Create the Monthly Payroll Workbook with Office Scripts

    · 38 min read

    Give payroll a monthly Excel workbook of approved overtime: a template in a restricted SharePoint library, an Office Script that fills a copy in one call, a child flow that makes it for any month, and a scheduled flow that emails the link on the 1st.

  14. Create the Payroll Workbook from the App

    · 18 min read

    Let payroll make the overtime workbook for any month from the Reports screen: a flow Power Apps runs that calls the payroll child flow, a Create button that waits for it, and an Open button that launches the new workbook.

  15. Build the Power BI Overtime Report

    · 29 min read

    Report approved overtime in Power BI from the app's SharePoint lists, in the browser: a semantic model with Power Query, relationships, measures and row-level security, so approvers see their departments and payroll sees everything.

  16. Share the App and Add It to Microsoft Teams

    · 27 min read

    Give the Overtime Timesheet app to its staff: share it and its flows with the app's security groups instead of test people, and publish it to the organization's Teams app catalog, installed for the staff group.

  17. Manage Joiners, Movers and Leavers

    · 23 min read

    Run the joiner, mover and leaver process for a Power Apps app in Microsoft 365: a new starter gets the app through one security group, a department move changes where their overtime goes, and a leaver is removed without losing a single approved hour.

  18. Build a Setup Flow That Creates the Lists

    · 40 min read

    Build one Power Automate flow that creates the Overtime Timesheet app's SharePoint lists, library, columns, list settings, settings items and folder on any site, from a JSON description, without creating anything twice.

  19. Set SharePoint Permissions from the Setup Flow

    · 32 min read

    Extend the Overtime Timesheet setup flow so it also sets Part 3's SharePoint permissions: a custom permission level, the users group in Visitors, each list's own permissions, own-items-only and content approval, safe to run twice.

  20. Run the Solution Checker and Export the Solutions

    · 22 min read

    Get both Overtime Timesheet solutions ready to install: check what each holds, run the solution checker and find the controls it flags, give the connection references clear names, export 1.0.0.0 as managed and unmanaged, and take this tenant's values out with the CLI.

  21. Install the App in a New Environment

    · 35 min read

    Install the Overtime Timesheet app from its release zips into a new trial environment and a new SharePoint site: environment, group team, users, setup flow, template and script, the app import, the payroll script picked again, sharing, and a first entry, approval and payroll workbook.