Set up inactivity processes
This article will help you to set up the inactivity notifications for unused canvas apps and cloud flows, and for how to clean up unused connection references.
Watch a walk-through of how the inactivity process works.
Set up inactivity notifications (unused apps and flows)
Processes to ask users if canvas apps and cloud flows are still useful, or to clean them up if they are not.
Update environment variables values for unused apps and flows
Note
These flows used to be called called "archive" flows, however they did not automatically archive apps and flows. The name has recently changed to "inactivity notifications", however if you are on an older version of the Governance components solution they may still be called "archive" flows.
You use this functionality to detect unused objects, and ask makers to either archive or unshare them to keep your tenant tidy.
Important
This article assumes you have installed the governance components solution, and you have your environment set up and are signed in with the correct identity.
Grant makers environment access
If your solution is installed in a production environment, make sure your environment isn't restricted with an environment security group.
If your solution is installed in a Dataverse for Teams environment, you first need to grant access to makers who aren't part of your team in Microsoft Teams so they can participate in approval workflows. Share an app in a Teams environment with your Power Platform maker group.
Configure mandatory environment variables
You'll update these environment variables after you import the solution. Environment variables are used to store application and flow configuration data. This means that you only have to set the value once per environment, and it will be used in all necessary flows and apps in that environment.
Tip
Learn how to update environment variables for production and Dataverse for Teams environments: Update environment variables.
Name | Description |
---|---|
Individual Admin | This is separate from the Admin Email environment variable because you can't use a distribution list for approvals. This environment variable holds the individual or shared account who will be charged with approving the removal of unused orphaned objects. |
Cleanup Old Objects App URL | (Optional) A link to the Cleanup Old Objects canvas app included in this solution. To make cleanup easier, any communication about old objects that are no longer considered to be useful will include this link. More information: Get an app URL from a production environment or Get an app URL from a Teams environment |
Flow Approvals URL | (Optional) A link to the Power Automate approval page for your CoE environment. To make cleanup easier, any communication about old objects that are no longer considered to be useful will include this link. To get the URL, go to flows.microsoft.com for your CoE environment > Action Items > Approvals. The URL will end in approvals/received. |
Exempt environments from the inactivity notifications process
You might want to exempt some environments from the inactivity notification process—for example, dedicated environments that are already well-managed. More information: Establishing an environment strategy
You can exempt environments from the inactivity notification process by using the Power Platform Admin View app.
Production environment
If your solution is installed in a production environment, your app will be a model-driven app. Follow these steps:
Go to make.powerapps.com.
Go to your CoE environment.
Open the Power Platform Admin View app.
Select Environments, and then select the environment you want to exempt.
Set the Excuse From Archival Flows field to Yes.
Select Save.
Dataverse for Teams environment
Open the Power Apps app in Teams, select Build, and then select the team that you've installed the CoE Starter Kit solutions in.
Select Center of Excellence - Core for Teams > See All.
Open the Power Platform Admin View app.
Select Environments, and then select the environment you want to exempt.
Set the Excuse From Archival Flows field to Yes.
Select Save.
Turn on flows
Turn on the following flows, which are installed as part of the governance components solution:
- Admin | Inactivity notifications v2 (Check Approval)
- Admin | Inactivity notifications v2 (Clean Up and Delete)
- Admin | Inactivity notifications v2 (Start Approval for Apps)
- Admin | Inactivity notifications v2 (Start Approval for Flows)
- Admin | Email Managers Ignored Approvals
Share apps with makers
The governance components solution contains the Cleanup Old Objects App app for makers and admins to manage archive approvals. Share this app with your makers and admins, assigning them the Power Platform Maker SR security role.
More information:
Consider adding this app to the Maker - Command Center for makers to easily find and access it.
All environment variables
This section includes the full list of environment variables that affect the compliance process, including environment variables with default values. You might have to update environment variables after import.
Important
You don't have to change the values during setup, just when you need to change the value of an environment variable that you configured during import or when you want to change a default value. To make sure the latest values are picked up, restart all flows after you change environment variables.
Environment variables are used to store application and flow configuration data with data specific to your organization or environment.
Name | Description | Default value |
---|---|---|
Individual Admin | This is separate from the Admin Email environment variable because you can't use a distribution list for approvals. This environment variable holds the individual or shared account who will be charged with approving the removal of unused orphaned objects. | None |
Auto Delete on Archive | Determines whether apps andd flows are deleted when they're approved for deletion in the following flow: Admin |Inactivity notifications v2 (Check Approval) and Admin |Inactivity notifications v2 (Clean Up and Delete). The value must be Yes or No. | Yes |
Cleanup Old Objects App URL | (Optional) A link to the Cleanup Old Objects canvas app included in this solution. To make cleanup easier, any communication about old objects that are no longer considered to be useful will include this link. More information: Get an app URL from a production environment or Get an app URL from a Teams environment | None |
Flow Approvals URL | (Optional) A link to the Power Automate approval page for your CoE environment. To make cleanup easier, any communication about old objects that are no longer considered to be useful will include this link. To get the URL, go to make.powerautomate.com for your CoE environment > Action Items > Approvals. The URL will end in approvals/received. | None |
ProductionEnvironment | Set to No if you've installed the solution for development or test purposes. This will send approvals to the admin email instead of the maker. | Yes |
InactivityNotifications-PastTime-Interval | The interval for the past time for how far back to go to see if an app/flow is useful. | 6 (months) |
InactivityNotifications-PastTime-Unit | The units for the past time for how far back to go to see if an app/flow is useful. | Month. |
It looks like I found a bug with the CoE Starter Kit; where should I go?
To file a bug against the solution, go to aka.ms/coe-starter-kit-issues.
Feedback
Submit and view feedback for