Skip to main content

How to Rerun a Cloud Flow with the Same Inputs in Power Automate

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

When you test a flow over and over, typing its inputs every time gets old. Power Automate can run it again with the inputs of an earlier test: Test > Automatically > With a recently used trigger, then pick the run to repeat.

The Example​

The flow, Say Hello, has the trigger Manually trigger a flow with one text input, Name (Who to greet) (How to Add a Text Input to a Manually Triggered Flow in Power Automate), and one Compose, Greeting (How to Use the Compose Action in Power Automate):

Greeting → Inputs
Hello, @{triggerBody()?['text']}

It was tested once by hand with the name Ada (How to Test a Cloud Flow Manually in Power Automate). The second run reuses that Ada.

Prerequisites​

  • One earlier test of the flow. Microsoft's Test cloud flows says you must test it manually at least once before you can use the automatic testing option.

Step 1: Open the Test Panel​

Open the flow in the designer and select Test at the top right. The Test Flow panel opens with two choices:

  • Manually: Perform the starting action to trigger it. For this flow, that means typing the inputs again.
  • Automatically: run it with what an earlier run received.

Step 2: Choose a Recent Run​

Select Automatically, then With a recently used trigger. The panel lists recent runs, with their result and how long ago they ran. Select the run whose inputs you want, here the one that succeeded 41 seconds earlier:

The Test Flow panel with Automatically and With a recently used trigger. selected, one recent run, Test Succeeded 41 seconds ..., selected below them, and the Test and Cancel buttons

Step 3: Run It​

Select Test. The flow starts at once, without asking for the name. In the new run, Greeting has the same input and output as before, Hello, Ada:

The Greeting action in the second run, with Inputs Hello, Ada and Outputs Hello, Ada

When It Helps​

Common Mistakes​

MistakeWhat happensDo this instead
Looking for Automatically before any manual testThere's no run to repeatTest once with Manually first
Expecting new valuesThe run reuses the old ones exactlyUse Manually to type new values

Troubleshooting​

SymptomLikely causeFix
The newest run in the list says Test Running, although it has finishedThe list hadn't caught up with the run when the panel openedSelect it anyway: when this happened to me, it still repeated that run's inputs
The rerun fails where the first run passedSomething the flow depends on has changed, such as an item it createdOpen the run and read the failed action
Automatically can't be usedThe flow hasn't had a manual test yetRun one manual test

FAQ​

Does a repeated run count as a real run?​

Yes. It's a full run with its own entry in the flow's run history, and every action does its work again (How to See a Flow's Run History in Power Automate).

Does it work for automated flows?​

Microsoft's article describes both options for testing flows in general. For an automated flow, testing manually means performing the starting action, such as adding an item. The example here is an instant flow.

Conclusion​

After one manual test, Test > Automatically > With a recently used trigger lists recent runs. Pick one and select Test, and the flow runs again with that run's inputs.

Additional Resources​