Testing and Sharing Cloud Flows
Learn how to test, monitor, troubleshoot, and share your cloud flows. Understand the difference between co-owners and run-only users, and wrap up Domain 4.
Why testing matters
Think of it like taste-testing a recipe before serving dinner.
You would not cook a meal for 20 guests without tasting it first. Testing a flow is the same idea β you run it once to make sure everything works before letting it handle real data.
Power Automate lets you test with real data or by manually triggering the flow, then shows you exactly what happened at each step β green ticks for success, red crosses for failures.
How to test a cloud flow
In the flow designer, click Test in the top-right corner. You get two options:
| Test Mode | How It Works | When to Use |
|---|---|---|
| Manually | You trigger the flow yourself (for automated flows, you perform the trigger action; for instant flows, you click the button) | First-time testing, verifying new changes |
| Automatically | Uses data from a previous successful run to re-run the flow | Re-testing after making changes, quick validation |
What you see during a test
When a test runs, the designer shows each step with a status indicator:
- Green tick β the step succeeded
- Red cross β the step failed
- Grey circle β the step was skipped (e.g., the βNoβ branch of a condition when the result was βYesβ)
You can click on any step to see:
- Inputs β what data went into the step
- Outputs β what data came out
- Error details β if the step failed, the exact error message
Testing tip: use test data
When testing an automated flow (like βWhen an item is created in SharePointβ), you need to actually create the item to trigger the test. Create a test item with recognisable data (like βTEST - Carlos Test Recordβ) so you can easily identify and clean up test data afterwards.
For scheduled flows, manual testing runs the flow immediately β you do not have to wait for the scheduled time.
Run history
Every time a flow runs (whether triggered by a test, an event, or a schedule), Power Automate logs it in the run history.
Run history shows:
| Column | What It Shows |
|---|---|
| Start time | When the flow run began |
| Duration | How long the run took |
| Status | Succeeded, Failed, or Cancelled |
| Trigger | What started this particular run |
Click on any run to see the same step-by-step view you get during testing β green ticks, red crosses, inputs, and outputs for every action.
Exam tip: Run history is where you go to troubleshoot a flow that ran but did not produce the expected result. You can inspect exactly what happened at each step.
Monitoring and analytics
Beyond run history, Power Automate provides analytics dashboards:
- Flow analytics β success rate, failure rate, average run duration over time
- Error trends β see if failures are increasing or decreasing
- Usage patterns β how often the flow runs and when
- Performance insights β identify slow steps that could be optimised
These dashboards help you maintain your flows proactively instead of waiting for someone to report a problem.
Troubleshooting common issues
| Problem | Likely Cause | How to Fix |
|---|---|---|
| Flow never triggers | Trigger not configured correctly, connection expired | Check trigger settings, re-authenticate the connection |
| Flow fails at an action | Missing required input, wrong data format, permission issue | Click the failed step, read the error message, fix the input |
| Flow runs but does nothing useful | Condition routing to wrong branch, empty data | Check condition logic, verify dynamic content has data |
| Flow takes too long | Too many actions, large data sets, slow connectors | Enable concurrency on loops, reduce data scope with filters |
| Connection error | Expired credentials, revoked permissions | Re-authenticate the connection in the flow settings |
Flow checker
Before you even test a flow, the flow checker runs automatically when you save. It identifies configuration errors like:
- Missing required fields in an action
- Invalid expressions
- Disconnected or expired connections
- Actions that reference deleted steps
The flow checker shows warnings and errors in the designer. Fix all errors before testing β a flow with errors will not run.
Sharing a cloud flow
Once your flow is working, you may want to share it with colleagues. Power Automate offers two sharing models:
| Feature | Co-owner | Run-only User |
|---|---|---|
| Can edit the flow? | Yes | No |
| Can delete the flow? | Yes | No |
| Can run the flow? | Yes | Yes (instant flows only) |
| Can view run history? | Yes | Only their own runs |
| Can share with others? | Yes | No |
| Can manage connections? | Yes | No β uses their own or the owner's |
| Best for | Team members who build and maintain | End users who just trigger or benefit |
How to share
- Open the flow in the maker portal
- Click Share (or the sharing icon)
- Add people by name or email
- Choose their role: Co-owner or Run-only user
- Save
Connection handling when sharing
When you share a flow, the connections matter:
- Co-owners use their own connections β they must have access to the connected services
- Run-only users can either use their own connections or the flow ownerβs connections (you choose which when sharing)
Sharing with a Microsoft 365 group
Instead of sharing with individuals, you can share a flow with a Microsoft 365 group or security group. Everyone in the group gets access automatically, and new members get access when they join.
This is especially useful for department-wide flows β share the leave request flow with the βAll Staffβ group instead of adding 200 people individually.
Carlos wraps up Domain 4
Carlos has come a long way at Greenleaf Health. Here is what he built with Power Automate:
| Flow | Type | What It Does |
|---|---|---|
| New hire onboarding | Automated | Sends welcome pack, creates tasks, notifies the team |
| Leave request | Automated + Approvals | Routes leave requests to managers for approval |
| Weekly expense report | Scheduled | Emails finance team every Friday with the weekβs expenses |
| Site visit logger | Instant | Logs clinic visits with a single tap on his phone |
| Patient data entry | Cloud + Desktop | Enters data into a legacy system that has no API |
| Invoice processing | Automated + Document processing | Extracts invoice data, routes for approval if over the limit |
He tested each flow, reviewed run history to fix issues, and shared them with his team β co-owners for the IT staff and run-only access for everyone else.
π¬ Video walkthrough
π¬ Video coming soon
Testing and Sharing Flows β PL-900 Domain 4
Testing and Sharing Flows β PL-900 Domain 4
~10 minFlashcards
Knowledge Check
Carlos wants to see why his flow failed last Tuesday. Where should he look?
Carlos wants to share his leave request flow with all 200 staff at Greenleaf Health so they can trigger it from their phones, but he does not want them to edit or delete the flow. What should he do?
During testing, Carlos sees a grey circle on one of the steps in his flow. What does this mean?
Congratulations! You have completed Domain 4: Demonstrate the Capabilities of Power Automate. You now understand cloud flows, desktop flows, Process Mining, approvals, logic controls, building flows, and testing and sharing them.
Next up: Domain 5 β Describe the Capabilities of Microsoft Copilot Studio.