Skip to main content

Build an Overtime Timesheet App in Power Apps — Part 22: Recap, Production Checklist and Next Steps

· 103 min read
Jagdish Kumawat
Founder @ Dewiride

Twenty-one parts planned, built, secured, packaged and installed the Overtime Timesheet app. This last part tours the finished app as each person who uses it, then gives you a checklist for running it for real, its limits, ideas for what to build next, and every guide in the series in one place.

This is Part 22 of a 22-part series.

  1. Part 1: Plan the App and Set Up the Demo Organization
  2. Part 2: Create the SharePoint Site and Lists
  3. Part 3: Keep Overtime Private with SharePoint Permissions
  4. Part 4: Create the Solution, Environment Variables and Canvas App
  5. Part 5: Build the Home Screen
  6. Part 6: Build the Log Overtime Screen
  7. Part 7: Build the My Overtime Screen
  8. Part 8: Build the Approval Flow for Teams and Outlook
  9. Part 9: Show Approvers What's Waiting
  10. Part 10: Build the Departments Screen
  11. Part 11: Build the Reports Screen
  12. Part 12: Import the Old Excel Timesheet
  13. Part 13: Create the Monthly Payroll Workbook with Office Scripts
  14. Part 14: Create the Payroll Workbook from the App
  15. Part 15: Build the Power BI Overtime Report
  16. Part 16: Share the App and Add It to Microsoft Teams
  17. Part 17: Manage Joiners, Movers and Leavers
  18. Part 18: Build a Setup Flow That Creates the Lists
  19. Part 19: Set SharePoint Permissions from the Setup Flow
  20. Part 20: Run the Solution Checker and Export the Solutions
  21. Part 21: Install the App in a New Environment
  22. Part 22: Recap, Production Checklist and Next Steps (you are here)

Nothing new is built in this part. I recorded the tour on 3 December 2026 in the development environment, the tenant's Default environment, with the people from Part 1: Aisha logs a shift, Daniel approves it in Teams, Leo checks the month's totals, the admin looks over the departments, and Olivia opens the Power BI report. At the end, the clean-up deletes what the install in Part 21 and the test site from Part 18 left behind.

What You Built​

PieceWhat it is
Overtime Timesheet appA responsive canvas app with seven screens: Home, Log Overtime, My Overtime, Waiting for Approval, Reports, Departments and Edit Department. Its license designation is Standard, so Microsoft 365 licenses cover it
Departments, OvertimeEntries and SettingsThree SharePoint lists on a dedicated site: each department and its approvers, every entry with its hours and decision, and the IDs of the payroll and admins groups
Payroll ExportsA document library only payroll can read, with the template and the Office Script in Setup, and each month's workbook
Seven flowsOvertime Approval, Get Waiting Approvals, Get Overtime Report, Import Old Overtime Timesheet, Create Payroll Workbook, Monthly Payroll Workbook and Create Payroll Workbook Now
Fill Payroll WorkbookThe Office Script that writes a month's entries and totals into a copy of the template in one call
Overtime ReportA Power BI report in the Overtime Timesheet workspace, with an Approvers role and a Payroll role, refreshed at 07:00 and 13:00 London time
The Teams appThe app as a personal app in Microsoft Teams, installed for the users group
Overtime Timesheet Setup solutionThe flow that creates the lists, the library and their permissions on any site
Overtime Timesheet solutionThe app, its seven flows, six connection references and five environment variables
Release filesBoth solutions at version 1.0.0.0, managed and unmanaged, without this tenant's values
A tested installThe release installed in a new trial environment on a new site, and used from the first entry to the payroll workbook

A Tour of the Finished App​

Each person below signed in as themselves, on the same morning.

Aisha Logs Overtime​

Aisha Khan is a nurse in Radiology, since her move in Part 17. She opened Power Apps and selected the app's name under Apps, which opened Power Apps Studio and the message There was a problem opening this app. Play, from the app's More commands (⋮), opened it (Fixed: "There Was a Problem Opening This App" in Power Apps). Staff who open the app in Teams, as Part 16 set up, don't go through this list.

Home greeted her with the department from her Microsoft 365 profile and the two tiles everyone gets:

The Overtime Timesheet Home screen for Aisha: Welcome, Aisha, Department: Radiology, and the Log overtime and My overtime tiles

She logged the evening she had stayed late the day before. The hours appeared as soon as she chose the times, and the department started on her own (Part 6):

The Log overtime screen filled in for 02/12/2026, start 18:00, finish 20:30, unpaid break 0 minutes, Hours worked: 2.50 (2 h 30 min), department Radiology, and the reason Covered the evening CT list after a colleague went home sick., 61 of 500 characters, with the Save button

Save took her back to Home. My overtime showed the entry as Pending, with the month's and the week's totals (Part 7):

The My overtime screen for December 2026: Total for December 2026: 2.50 hours, Mon 30/11/2026 to Sun 06/12/2026: 2.50 hours, the note that weeks run from Monday to Sunday and rejected entries aren't counted, and the entry Wed 02/12/2026, Pending, 18:00 to 20:30, 2.50 hours, Radiology, with an Edit button

Saving the entry started Overtime Approval, which asked Radiology's approver for a decision (Part 8).

Daniel Approves It​

Daniel Brooks manages Radiology and approves its overtime. Before the app opened, Power Apps asked him to allow its connections, and he selected Allow (How to Open a Shared Canvas App for the First Time in Power Apps). His Home has two more tiles than Aisha's, because he approves for a department (Part 5):

Daniel's Home screen: Welcome, Daniel, Department: Radiology, You approve overtime for Radiology., and four tiles: Log overtime, My overtime, Waiting for approval and Reports

Waiting for approval listed two entries (Part 9):

The Waiting for approval screen: 2 entries are waiting for your decision., the note to approve or reject each entry in the Approvals app in Microsoft Teams, from its email in Outlook, or in Power Automate, then an Admin User entry for Mon 09/11/2026, 17:00 to 19:00, 2.00 hours, Radiology, waiting since 10/11/2026 11:20, and Aisha Khan's entry for Wed 02/12/2026, 18:00 to 20:30, 2.50 hours, Radiology, waiting since 03/12/2026 07:36

Aisha's is the one she had just saved. The other is one of my own entries from November, waiting for more than three weeks because nobody had answered it. A request can't wait forever: Day to Day below says what happens to it.

He answered Aisha's request in the Approvals app in Teams (How to Approve a Request in the Microsoft Teams Approvals App), with a comment for her:

The Teams Approvals request details for Overtime for Aisha Khan, Wednesday 02/12/2026, 2.50 hours: Department Radiology, Date Wednesday 02/12/2026, Time 18:00 to 20:30, Unpaid break 0 minutes, Hours 2.50 and the reason, the status Requested with a response pending from Daniel Brooks, the comment Thanks for covering the CT list last night., and the Reject and Approve buttons

He selected Approve. Back in the app, Refresh brought his list down to 1 entry is waiting for your decision.: the November one.

Aisha Sees the Decision​

Refresh on Aisha's My overtime showed the decision. An approved entry can't be edited, so its Edit button had gone:

Aisha's My overtime screen after the approval: the same totals, and the entry Wed 02/12/2026 marked Approved, 18:00 to 20:30, 2.50 hours, Radiology, with no Edit button

The approval flow also emails each decision to the person who logged the entry, with the approver's comment (Part 8).

On a Phone​

The app is responsive (Part 4). Here are Aisha's My overtime and Daniel's Waiting for approval in a window the size of a phone, 390 by 844 pixels:

My overtime on a phone-sized screen: the header with a refresh icon, the month arrows around December 2026, the month's and the week's totals, the note about weeks, and Aisha's approved entry for Wed 02/12/2026, 18:00 to 20:30, 2.50 hours, Radiology

Waiting for approval on a phone-sized screen: the title wrapping onto two lines beside the refresh icon, 1 entry is waiting for your decision., and the Admin User entry for Mon 09/11/2026, 17:00 to 19:00, 2.00 hours, Radiology

On the narrow screen, the header's Refresh button turns into an icon, and the longer title wraps onto two lines.

Leo Checks the Month​

Leo Martin, the payroll officer, is in Overtime Payroll, so his Home shows Reports but not Waiting for approval. Reports totals every department's approved hours for a month (Part 11). December had one entry so far, Aisha's:

Leo's Reports screen for December 2026: Showing: All departments, Approved hours in December 2026: 2.50, 1 entry from 1 person, the Create payroll workbook button, a column chart of approved hours by department with Radiology at 2.5, the line Radiology: 2.50 hours, and Aisha Khan with 2.50 hours in Radiology

One month back, November had the whole team, including Noah Ellis, who left in Part 17. His 4.00 hours stay in the totals:

Leo's Reports screen for November 2026: Approved hours in November 2026: 34.75, 10 entries from 5 people, the chart with Emergency Department at 18 and Radiology at 16.75, Emergency Department: 18.00 hours, Radiology: 16.75 hours, and the people Aisha Khan 11.00 hours, Admin User 10.00, Maya Patel 7.25, Noah Ellis 4.00 and Daniel Brooks 2.50

I didn't select Create payroll workbook this time: Part 14 shows what it makes. A link to each month's workbook also reaches payroll by email on the 1st (Part 13).

The Admin Looks at the Departments​

The admin, my own account, is in Overtime Admins and approves for Finance, so Home shows all five tiles:

The admin's Home screen: Welcome, Admin, Department: Management, You approve overtime for Finance., and five tiles: Log overtime, My overtime, Waiting for approval, Reports and Departments

Departments lists each department with its approvers (Part 10). Who approves for a department is changed here, not in a formula or a flow:

The Departments screen with an Add department button and four departments, each Active with an Edit button: Day Surgery and Emergency Department approved by Olivia Bennett, Finance by Admin User, and Radiology by Daniel Brooks

I only looked: nothing was changed.

Olivia Opens the Power BI Report​

Olivia Bennett approves for the Emergency Department and Day Surgery. It was the first time she had opened Power BI herself: Part 15 checked her view of the report from my account, with Test as role. The Overtime Timesheet workspace wasn't in her Workspaces list, and searching for it said No results found. Her license was Pro, and her group was still a Viewer of the workspace. One reload of the page listed it (Fixed: Power BI Workspaces Search Says "No results found" on Your First Visit).

The Approvers role's row-level security shows her only her departments' approved entries, all of them in the Emergency Department. They include the old timesheet's entries for Ben Harris, who left before the app existed (Part 12):

Olivia's Overtime Report in Power BI: Total hours 48.50, Entries 12, People 4, a month slicer with 2026-10 and 2026-11, total hours by department with only Emergency Department at 48.50, total hours by person with Aisha Khan 20.50, Ben Harris 16.00, Admin User 8.00 and Noah Ellis 4.00, and the table of entries totalling 48.50

The report shows the data from its last refresh, which ran at 07:14 that morning, with the next one due at 13:00. December's approval wasn't in it yet. The app's Reports screen gets its figures from the lists through a flow, so Leo's screen already showed December's approval.

The Series, Part by Part​

PartWhat it did
1: Plan the AppTurned the brief into a design on standard connectors, gave the demo team their roles and groups, and built the old Excel timesheet the app replaces
2: SharePoint Site and ListsCreated the site in UK formats and London time, and the lists and the payroll library, column by column
3: PermissionsMade SharePoint enforce privacy: people see only their own entries, can't delete them, and every change goes for approval
4: Solution and Canvas AppCreated the solution, the environment variables for the site, lists and library, and the responsive app
5: Home ScreenRead the signed-in person, their department and their roles, and showed the tiles each role needs
6: Log Overtime ScreenWorked out the hours as people type, across midnight and clock changes, checked the entry and saved it
7: My Overtime ScreenShowed a month's entries with weekly and monthly totals, and let people edit an entry until it's approved
8: Approval FlowSent every entry to its department's approvers in Teams and Outlook, with a version check, and saved each decision
9: What's WaitingGave approvers a screen of what's waiting for them, through a flow that reads the list as its owner
10: Departments ScreenLet admins add departments and choose their approvers with a people picker
11: Reports ScreenTotalled a month's approved hours by department and person, with a chart
12: Import the Old TimesheetBrought the Excel history in once, with real times, matched people and a list of what was left out
13: Monthly Payroll WorkbookMade each month's workbook from a template with an Office Script, and emailed it to payroll on the 1st
14: Workbook from the AppLet payroll create and open the workbook from the Reports screen
15: Power BI ReportBuilt a semantic model, measures, row-level security for approvers and payroll, and a report refreshed twice a day
16: Share and TeamsShared the app and flows with the groups, and installed the app in Teams for the users group
17: Joiners, Movers and LeaversAdded a new starter, moved a nurse to another department and removed a leaver, with no change to the app
18: Setup FlowBuilt a flow that creates the lists, the library and the settings on any site, safe to run again
19: Permissions from the FlowGave the setup flow Part 3's permissions, through SharePoint's REST API
20: Checker and ExportRan the solution checker, named the connection references and exported version 1.0.0.0 without this tenant's values
21: InstallInstalled the release in a new environment on a new site, and used it from the first entry to the payroll workbook
22: RecapThis part

Production Checklist​

The demo ran in a test tenant, in its Default environment. To run the app for real, work through this list. Each item links to the part or guide that did it, or to Microsoft's documentation where the series didn't.

Before You Install​

  • Choose the environment. Microsoft's Manage the default environment says: "The default environment is designed for personal productivity, but makers can create apps and flows that become widely adopted or business-critical." The same article moves such apps to another environment with solutions, which is what the release files are for. Use a production environment with Dataverse: creating one needs at least 1 GB of available Dataverse capacity (Create an environment with a database). A trial environment, like Part 21's, is for testing only, because it's deleted after 30 days (How to Create a Free Trial Environment in Power Platform).
  • Check licenses. The app's license designation is Standard (How to Check a Canvas App's License Designation in Power Apps), and the app and flows use standard connectors only, so the people who log and approve overtime need only a Microsoft 365 license that includes Power Apps and Power Automate. The flows' owner needs one too, because automated and scheduled flows run on their owner's plan, and for the payroll script it must be a business Microsoft 365 license. Power BI viewers need Power BI Pro, unless the report is in a Premium or Fabric F64 capacity (Part 1: What It Costs).
  • Check your data policies. The app and flows use six connectors: SharePoint, Office 365 Users, Office 365 Outlook, Office 365 Groups, Approvals and Excel Online (Business). If your admins use data policies, keep all six in the same group. Microsoft's Connector classification says: "You can't share data among connectors that are located in different groups." A flow that breaks a policy is saved, but marked Suspended, and doesn't run (Impact of data policies on apps and flows).
  • Set departments and managers in Microsoft 365. The Log Overtime screen starts on the department in each person's profile when the Departments list has one with the same name (Part 6). When an approver logs their own overtime and nobody else approves the department, the request goes to their manager (Part 8). Set both for everyone (How to Change a User's Department in Microsoft Entra, How to Change a User's Manager in Microsoft Entra).
  • Create three security groups: everyone who uses the app, payroll, and the app's admins (How to Create a Security Group in the Microsoft Entra Admin Center). The setup flow asks for each group's Object ID (How to Find a Group's Object ID in Microsoft Entra).
  • Decide who owns the flows. Microsoft's Import a solution says: "When the solution is imported, all components in that solution are owned by the user who performs the import." The flows that read everyone's entries use their owner's connections, so import as an account kept for the purpose, not someone's everyday account, as Part 3 advises. Microsoft's Change the owner of a cloud flow allows "a user account used as a service account", and adds: "If the flow uses a service account, ensure it's licensed correctly to avoid multiplexing." A flow can also be owned by a service principal, an identity that "isn't tied to a user that could leave the organization", with licensing rules of its own (service principal application users). If the owner does leave, Microsoft's sharing FAQ warns that actions using their connections "might fail". The same goes for the Power BI semantic model, which refreshes through a connection signed in as the app's owner (Part 15). The series used my own account throughout and tried neither option.

Install​

Part 21 did these in this order:

  1. Create the environment with Dataverse, limited to the users group, and give the group Basic User with a group team (How to Assign a Dataverse Security Role to a Microsoft Entra Group). The role needs a second Save (Fixed: Security Role Isn't Assigned After You Create a Team in the Power Platform Admin Center).
  2. In a trial environment, add the people to the environment (How to Add a User to a Power Platform Environment).
  3. Create the site, in your regional settings (How to Create a SharePoint Communication Site).
  4. Import the Setup solution and run its flow with the site's address and the three group IDs (How to Import a Solution in Power Apps, How to Run an Instant Cloud Flow in Power Automate).
  5. Upload the template and the script to Payroll Exports › Setup (How to Upload Files to a Folder in a SharePoint Document Library).
  6. Import the app solution and pick the site, the lists and the library (How to Set Environment Variable Values When Importing a Solution).
  7. In a local unmanaged solution, pick the payroll script again, and your own old workbook in the import flow if you have one (Part 21, Step 9).
  8. Share the app with the users group (How to Share a Canvas App with a Security Group in Power Apps), and make the groups run-only users of the three flows the app runs (How to Share a Flow with Run-Only Users in Power Automate).
  9. Add the departments and their approvers in the app (Part 10).
  10. Make a Teams package from this environment's app and install it for the users group, as Part 16 did. A package made in development opens the development app.
  11. Build the Power BI report on the new site's lists, as Part 15 did, and give the groups their roles and Viewer access (How to Add Members to a Row-Level Security Role in Power BI, How to Give Someone Viewer Access to a Power BI Workspace).

Security​

  • Keep the site's Owners group small. Owners have Full Control: they see every entry and can approve, edit and delete it. Microsoft 365 administrators can give themselves access to any site (Part 3).
  • Never give staff Design or Full Control. Both include Override List Behaviors, the one permission that gets past the list's own-entries-only setting (Part 1: How Secure Is It?).
  • Treat the tiles as convenience, not security. Home shows people only the tiles they need, but SharePoint's permissions and the flows decide what each person can read (Part 5).
  • Trust Approval Status, not Status. Staff can edit their own entry's Status column in SharePoint, but only approvers can change Approval Status (Part 8). The reports, the payroll workbook and Power BI count only entries approved in both (Part 11).
  • Give approvers and payroll the Viewer role in Power BI, and nothing more. Microsoft's Row-level security (RLS) with Power BI says: "RLS only restricts data access for users with Viewer permissions. It doesn't apply to workspace Admin, Member, or Contributor roles."
  • Keep Payroll Exports for payroll. Each month's workbook lists everyone's hours. The library has its own permissions: Overtime Payroll can read it, and the site's owners keep Full Control (Part 3). Keep everyone else out.

Day to Day​

  • Joiners, movers and leavers go through Microsoft 365. Add a joiner to Overtime Timesheet Users, with a department and a manager; change a mover's department in their profile; sign a leaver out, block them and take them out of the group. Their approved hours stay in the reports (Part 17). The Teams install can take up to a day to reach a new member, who can add the app from the Store meanwhile (How to Find an App Built for Your Organization in Microsoft Teams).
  • Change approvers on the Departments screen. The approval flow reads the department's approvers when an entry is saved, so a request already sent stays with the people it went to (Part 8).
  • Answer requests within four weeks. Microsoft gives two limits. Its limits page says "After 30 days, any pending steps time out", and its approvals known issues say "An approval flow can wait for 28 days." After that, the run fails, the entry stays Pending, and the request stays in the Approvals app with no flow waiting for the answer. According to the same article, "The requestor or environment admin then needs to manually delete these approvals from the action center." Saving the entry again sends a new request (Part 8). The November entry on Daniel's screen is heading that way.
  • Expect the payroll workbook on the 1st. Monthly Payroll Workbook runs at 07:00 UK time on the 1st of each month, for the month before, and emails the payroll group (Part 13). If it doesn't arrive, look at the flow's run history (How to See a Flow's Run History in Power Automate); meanwhile, payroll can make the workbook from Reports (Part 14).
  • Keep the Power BI report in use. Power BI Pro allows up to 8 scheduled refreshes a day, and the report uses two. Microsoft's Configure scheduled refresh says: "After two months of inactivity, scheduled refresh on your semantic model is paused." Power BI also turns the schedule off after four failed refreshes in a row (Troubleshooting). Either way, the semantic model's owner gets an email (How to Schedule a Refresh of a Power BI Semantic Model).
  • Show people the Refresh button. An open screen shows what it loaded until someone selects Refresh, as Daniel's and Aisha's screens did in the tour (How to Add a Refresh Button to a Screen in Power Apps).

Releasing a New Version​

note

The series released only version 1.0.0.0, so it never imported an update. The last two items follow Microsoft's articles; try them in a trial environment before you rely on them.

What the App Doesn't Do​

These are the limits of the app as built, all of them deliberate or stated in the part that met them:

  • Hours, not pay. It records and totals hours. Pay rates and amounts stay in your payroll system.
  • The first answer decides. A request goes to all of a department's approvers, and the first to respond decides for all of them (Part 8).
  • No reminders or escalation. A request nobody answers waits until the flow run times out, as described under Day to Day.
  • Requests sent to a manager aren't on any screen. When an approver's own entry goes to their manager, the manager answers it in Teams or Outlook: Waiting for approval lists only the departments a person approves (Part 9).
  • Imported history is for the reports. The old timesheet's entries were created by the person who ran the import, so staff don't see them in My overtime or in SharePoint (Part 12).
  • One site per environment. Each environment variable holds one value in an environment, so one installation reads one site's lists.
  • The Teams app and the Power BI report aren't in the solutions. Each installation makes its own (Part 21).
  • Changes reach an open screen when it's refreshed. Someone else's decision or edit shows after Refresh, or when the screen is opened again.

Next Steps​

Ideas for building on the app. None of them is part of this series:

  • Remind or escalate when nobody answers. For approvals, Microsoft's cloud flow error reference advises: "set a reasonable expiration and add a timeout branch to handle non-responses." A timeout on Overtime Approval's approval step, with a branch that reminds the approvers or asks their manager, would stop entries waiting until the run fails.
  • Keep approvals open for longer than a month. Microsoft's approval workflow article says: "If your flow might run for more than 30 days, store your approvals in Microsoft Dataverse." It uses two flows, one that sends the request and one that acts on the answer. If the second reads Dataverse through the Microsoft Dataverse connector, check your licenses first: Microsoft lists that connector as Premium (Microsoft Dataverse connector).
  • Share the report as a Power BI app. Microsoft's Roles in workspaces says: "You can also enforce RLS without giving access to the workspace, publish an app and distribute it to those users." Approvers and payroll would then open the report from the app instead of the workspace.
  • Add pay rates, if payroll wants amounts as well as hours: a rate per department or grade, and a pay column in the workbook. Pay is more sensitive than hours, so decide who may see it before you add it.

Every Guide in the Series​

These are the guides and fixes the 22 parts link to, by topic, in the order they were written. Select a topic to open it:

Microsoft 365, Microsoft Entra ID and OneDrive (17)
SharePoint (46)
Excel for the web and Office Scripts (45)
Microsoft Teams (7)
Power Platform admin center and CLI (8)
Power Apps: solutions, sharing and Teams (38)
Power Apps Studio: screens and controls (56)
Power Apps: SharePoint and Microsoft 365 data (19)
Power Apps: Power Fx formulas (44)
Power Automate: flows, approvals and sharing (42)
Power Automate: SharePoint, Excel and Office Scripts (18)
Power Automate: the SharePoint REST API (20)
Power Automate: arrays, dates and expressions (24)
Power BI and Power Query (32)
Fixes for problems you might meet (68)

Power Apps

Power Automate

Power BI

SharePoint

Excel

Microsoft Teams

Power Platform admin center and CLI

Microsoft Entra ID

The Problems I Hit​

Five problems came up in this part's work, two of them while making the clean-up guides it links:

ProblemWhat I sawFix
Opening the app from its name in AppsThere was a problem opening this appOpen it with Play
The workspace missing from Olivia's Power BINo results found when she searched for itReload the page
Deleted sites in the SharePoint admin center didn't loadWe can't display this page right now. Please try again later.Reload the page
Permanently delete greyed out with two sites tickedSites can only be permanently deleted one at a time.One site at a time
Asking the CLI for a command's help with --helpError: An unknown argument --help was passed.Add help without dashes

Clean Up​

The tour used the development environment, which stays. What's left over from the series is the install from Part 21, the test site from Part 18, and the CLI profile, and this part deletes all of them. A deleted site can be restored for 93 days unless you delete it permanently. Treat the environment and the profile as gone for good, and export anything you want to keep first.

The demo and test sites​

Both are communication sites without a Microsoft 365 group: /sites/OvertimeTimesheetDemo from Part 21 and /sites/OvertimeTimesheetTest from Part 18. In each, select Settings > Site information > Delete site, tick the confirmation and select Delete (How to Delete a SharePoint Site):

The Delete site dialog: You are about to delete the 'Overtime Timesheet Demo' site. This will delete all SharePoint content in the site. Please backup any files or other content before proceeding. Do you want to continue?, with Yes, delete this site and its associated content. ticked and the Delete button outlined in red next to Cancel

A deleted site waits in the SharePoint admin center for 93 days, still holding its address. Sites > Deleted sites listed both:

The Deleted sites page: Sites are retained for 93 days and then permanently deleted., with Restore and Permanently delete greyed out, and two rows, Overtime Timesheet Test at .../sites/OvertimeTimesheetTest and Overtime Timesheet Demo at .../sites/OvertimeTimesheetDemo, each with 0.00 storage used and the primary admin Admin User

If the page says We can't display this page right now. Please try again later., reload it (the fix).

To remove them now rather than after 93 days, I permanently deleted both, one at a time. With both ticked, Permanently delete stays grey (Fixed: SharePoint Admin Center Says "Sites can only be permanently deleted one at a time."). Tick one site, select Permanently delete, check the name in the dialog and select Delete, then do the same for the other (How to Permanently Delete a SharePoint Site).

The trial environment​

Deleting the environment deletes what's in it: both solutions, the local one, the group team and the connections. Microsoft's DSR article says: "Deleting an environment permanently deletes all resources within the environment, including all apps, flows, and connections."

In the Power Platform admin center, select Manage > Environments, search for Overtime Timesheet Demo, select ... > Delete, type its name and select Confirm (How to Delete an Environment in the Power Platform Admin Center). It showed Running for about five and a half minutes, then left the list.

The CLI profile​

Part 21 signed the Power Platform CLI in to the demo environment as the profile OvertimeDemo. pac auth delete removes it (How to Delete a Power Platform CLI Profile with pac auth delete):

Terminal
pac auth delete --name OvertimeDemo
Output
Deleted profile:
UNIVERSAL OvertimeDemo : admin@example.com Public https://org00000000.crm11.dynamics.com/

pac auth list checks what's left:

Terminal
pac auth list
Output
No profiles were found on this computer. Please run 'pac auth create' to create one.

It was the last profile on this computer. To see a command's options, add help after it, as in pac auth delete help: --help gives an error (Fixed: Power Platform CLI Says "An unknown argument --help was passed.").

What stays​

Everything the tour used stays: the Default environment with the app, its flows and /sites/OvertimeTimesheet, the Power BI workspace, the Teams app, and the demo people and groups. The Default environment also keeps its Dataverse database, because Microsoft documents no way to remove it (How to Add a Dataverse Database to the Default Power Platform Environment).

In a test tenant of your own, remove these when you're done with them: the site, the same way as the demo site; the people (How to Delete a User in Microsoft 365); the groups (How to Delete a Security Group in Microsoft Entra); and the Teams app (How to Delete a Custom App in the Teams Admin Center).

I'm keeping all of it: it's the working app the series built.

Common Mistakes​

MistakeWhat happensDo this instead
Keeping the production app in the Default environmentIt sits where everyone in the organization makes their own appsInstall it in a production environment
Importing as someone's everyday accountThe flows run as that person, and their actions can fail when the person leavesImport as an account kept for the purpose
Giving approvers a workspace role above ViewerRow-level security doesn't apply, so they see every departmentViewer only
Naming a department differently in Microsoft 365 and in the appThe Log Overtime screen doesn't start on itUse the same name in both
Leaving requests unanswered for weeksThe run times out and the entry stays PendingAnswer within four weeks, or save the entry again
Importing a change to the payroll flow over the local layerThe old payroll flow keeps runningRemove the unmanaged layer first

Troubleshooting​

SymptomLikely causeFix
There was a problem opening this appThe app was opened from its name, which opens Power Apps StudioUse Play (the fix)
A workspace someone was given isn't in their Power BITheir first visit to Power BIReload the page (the fix)
An approver sees every department in Power BIA workspace role above ViewerMake them a Viewer
The Power BI report is missing today's approvalsIt shows the last scheduled refreshWait for the next refresh, or use the app's Reports
An entry stays Pending after the approver answeredThe flow run had already timed outSave the entry again to send a new request
No payroll workbook on the 1stThe monthly flow failed or is offCheck its run history, and create the workbook from Reports

FAQ​

Which licenses does everyone need?​

A Microsoft 365 license that includes Power Apps and Power Automate, such as the E5 licenses the demo team has. The app and flows use standard connectors only. Power BI viewers also need Power BI Pro, unless the report is in a Premium or Fabric F64 capacity (Part 1: What It Costs).

Where is the data stored?​

In SharePoint, on your site: the three lists and the Payroll Exports library. Dataverse holds the solutions and the approval requests, and the Power BI semantic model holds a copy of the approved entries from its last refresh.

What happens to a leaver's overtime?​

It stays. Noah Ellis left in Part 17, and his 4.00 hours were still in November's totals on Leo's screen. Deleting an account doesn't delete the entries its owner logged.

Can I change the app?​

Yes. Change it in your development environment and release a new version with the checklist above. The unmanaged zips from Part 20 are for anyone who wants their own copy to change.

Conclusion​

Over 22 parts you planned, built, secured, packaged and installed a Power Apps app that:

  • lets staff log overtime, with the hours worked out for them across midnight and clock changes;
  • sends each entry to its department's approvers in Teams and Outlook, and shows approvers what's waiting;
  • keeps each person's overtime private, enforced by SharePoint and not only by the app;
  • gives payroll a monthly Excel workbook, a Reports screen and a Power BI report with row-level security;
  • lets admins manage departments and approvers without changing a formula;
  • copes with joiners, movers and leavers with no change to the app;
  • installs in another environment from its release files.

Every step was done live, and the problems met along the way are written up with their fixes. When you take the app to production, start with the checklist above.

Additional Resources​

← Previous: Part 21: Install the App in a New Environment

Back to the start: Part 1: Plan the App and Set Up the Demo Organization, or see every part on the series page.