Become a Dynamics 365 expert with Syvantis Learn
Provide additional details about the offer you're running.
This store requires javascript to be enabled for some features to work correctly.
Provide additional details about the offer you're running.
Power Automate housekeeping & best practices
Power Automate • Power Platform
Learn practical Power Automate housekeeping best practices that can make flows easier to maintain, troubleshoot, test, and collaborate on over time. This Fast Class covers limiting flows during testing, clearly naming and documenting flows and actions, sharing ownership, choosing appropriate environments, improving queries, setting up failure notifications, and using solutions to organize and manage flows.
When building Power Automate flows, a little housekeeping can make a big difference when you need to return later to update or troubleshoot them. Good naming, documentation, testing practices, sharing, and error handling can also make flows easier for colleagues to understand and maintain.
Limit your flow while testing
If you are working in a live production environment, limit what your flow can run on while you test it. One option is to add a condition immediately after the trigger that allows only specific records through. For example, if a Dataverse trigger runs whenever a lead is created, you can add a condition that looks for the topic of a specific test lead. If the lead does not match, use a Terminate action to end the flow as canceled. For flows that modify records, you can also use the ID of a specific test record to restrict what the flow touches.
Give your flow a useful name and description
One of the easiest things to overlook is properly labeling and describing a flow when you create it. Default generated names are not always helpful when you return to a flow later. Give the flow a descriptive name that makes its purpose easier to identify. You can also add a description from the flows page. A good description provides a high-level explanation of what the flow does without requiring someone to open it.
Rename individual actions
Just as you can name the overall flow, you can rename individual steps. The goal is to make it possible to open the flow later and understand what is happening without having to inspect every action in detail. For example, instead of leaving the List rows action name generic, you might rename the step to reflect the records it retrieves, such as “Get active leads in Minnesota.” This applies to variable steps and other actions as well. When you change the purpose or filters associated with an action, remember to update its name accordingly.
Use notes and comments for documentation
Individual actions can include notes that provide additional context. For example, a note could explain that a List rows action retrieves leads where the state value is either “MN” or “Minnesota.” In the old designer, you can also add comments to the flow. Comments are associated with specific actions and can be viewed through the comments pane. Comments are particularly useful for:
Good documentation becomes especially valuable when someone other than the original creator needs to understand the flow.
Share flows with other owners
From the flow summary page, use the Share option to add additional people as owners. Your organization should consider establishing a policy for sharing flows, such as sharing them with a manager, administrator, or team. If someone leaves the organization and their account is deactivated, flows solely owned by that user can become orphaned. Sharing ownership also allows other users to receive notifications when a flow fails. Clear naming, notes, and comments work especially well alongside flow sharing because another person may eventually need to understand and maintain the automation.
Choose the right Power Platform environment
When working with the Dataverse connector, one of the first choices is the environment. Power Automate may default to the Default environment, but this environment is primarily used during the initial provisioning of the tenant and should not generally be used for this type of work. For initial configuration and testing, aim to use a sandbox environment so you do not accidentally affect live production data. If using a sandbox is not possible, restrict the records your flow can access during testing. For example, Get a row by ID can target the ID of a specific test lead. If you manually activate the flow, you know it will interact only with that test record. You can also use List rows, but make sure the Filter rows query is accurate. A row-count limit can further restrict the records returned during testing.
Limit the data returned by Dataverse queries
When using actions such as List rows that can retrieve many records at once, use the Select columns field to limit which pieces of information are returned. For queries retrieving many records, selecting only the data you need can significantly reduce the flow's runtime.
Build failure handling into your flow
For frequently running flows, default error notifications may not arrive quickly enough. You can add your own failure handling directly to the flow. Start by adding a Scope and placing the main process actions inside it. Give it a descriptive name such as “Process Scope.” Add a second Scope for failures and configure its Run after settings so that it runs only when the Process Scope fails. Within the Failure Scope, you can add an email notification that identifies the failed flow.
Because you control the email, you can choose who should receive the notification, including people who do not use Power Automate or do not own the flow. If the Failure Scope successfully sends its email, the overall run may still appear successful in the run history. Add a Terminate action after the email and set its status to Failed so the run is recorded appropriately.
Add a direct link to the failed flow run
Failure notifications can be enhanced by including a direct link to the individual failed run. In the example shown in this class:
The link can take you directly to the relevant flow run so you can begin investigating the failure. By default, the link opens the new designer. If you want the link to open the old designer, add ?v3=false to the end of the URL.
Use solutions to organize and manage flows
Solutions in Power Platform are packages containing customizations and other related items. A single flow might not always need to be placed in a solution, but solutions are useful for keeping related items together. Parent and child flows are one example, as are flows that accompany other Dataverse changes.
Making a flow solution-aware also adds it to Dataverse. This makes it possible to search for and find the flow within Dataverse regardless of who it has been shared with. This can be particularly useful if a flow was not shared and its owner has left the organization or is otherwise unavailable. Solutions also allow you to view a flow's Dataverse dependencies and understand what the flow is interacting with.
Putting these best practices together
Good Power Automate housekeeping is about making flows easier to understand, maintain, test, and troubleshoot in the future. As you develop your flows, remember to:
* This transcript summary has been generated from the Fast Class video by Microsoft Copilot. The Fast Class itself was prepared and taught by Syvantis expert consultants.
TUNE INTO THE LIVE CLASS
Ask your questions and get real-time responses from your trusted Syvantis consultants.
What's on the schedule?
Dynamics 365 Business Central
Dynamics 365 Sales (CRM)
Dynamics 365 Customer Insights
Power Platform
Keep learning...
Business Process Designers. Technical Experts. Dedicated Partners.