Cancel or resubmit flow runs in bulk

You can cancel or resubmit your flow runs in bulk instead of one at a time, which can be a huge time saver.

Resubmit flow runs

You can resubmit previous runs of a flow in bulk. To do this, follow these steps:

  1. Sign in to Power Automate.

  2. On the left panel, select My flows.

  3. On the right panel, select the cloud flow that you would like to resubmit or cancel.

  4. Select All runs.

    Screenshot that displays all runs for the selected flow.

    Tip

    • The flow must have runs to cancel or resubmit the flow runs.
    • You can resubmit or cancel up to 20 flows at a time.
  5. Select the flow runs that you would like to resubmit or cancel on the Run history page.

  6. Select Resubmit flow run(s).

    Screenshot that displays the selected runs for your flow.

    Important

    The number of flows that you can resubmit is limited based on the maximum number of API calls for the connectors in the flow.

Cancel flow runs

You can cancel flow runs either through the Run history page or by using a template. If you need to cancel up to 20 runs, use the Run history page. If you need to cancel more than 20 (even hundreds), use the template. Procedures for both methods are detailed in the following sections.

Cancel up to 20 flow runs

To cancel flow runs that are in progress, follow the steps outlined previously in Resubmit flow runs with one exception: In step 6, select Cancel flow run(s), as shown in the following screenshot.

Screenshot that displays the Cancel flow run(s) button.

Cancel more than 20 flow runs

The template cancels runs at approximately five (5) runs per minute. You might be subject to throttling if you change the delay period in the template flow.

Note

Follow these steps to cancel flow runs using a template:

  1. Obtain the Environment Id and Flow Id.

    1. To find the Environment Id, select Home in the left navigation pane and look at the URL in your browser's address bar. Everything between environments/ and /home is the Environment Id:

      Screenshot of a flow URL with the Environment Id highlighted.

      If you can't locate the Environment ID, ask your administrator to go to the Power Platform admin center Details section. To learn more, go to Find your environment and organization ID.

    2. To find the Flow Id, select My flows in the left navigation pane and select your flow. When the Details page opens, look at the URL in your browser's address bar. Everything between flows/ and /details is the Flow Id: Screenshot of a flow URL with the Flow Id highlighted.

  2. Sign in to Power Automate.

  3. Access the Cancel all my flow runs template.

  4. Sign in to HTTP with Microsoft Entra ID (preauthorized).

  5. Enter the following parameters, and then select Sign in:

    1. Leave the Gateways box unchecked.
    2. In the Base Resource URL field, enter https://api.flow.microsoft.com.
    3. In the Azure AD Resource URI (Application ID URI) field, enter https://service.flow.microsoft.com.

    Screenshot that displays parameters for your flow.

  6. Sign in to Power Automate Management.

  7. In the Authentication Type field, select First Party from the dropdown menu.

  8. Select Sign in. The designer opens.

    Screenshot that displays the First Party option in the Authentication Type field.

  9. In the designer, select Save to save the flow.

  10. To run your flow, select Run > Continue.

  11. In the Environment Id and Flow Id fields, enter the Environment Id and Flow Id you obtained in step 1.

  12. Select Run Flow. All flow runs are canceled.

    Screenshot of the Rob flow screen that displays the Environment Id and Flow Id.

  13. To verify the cancellation, view the Run history page.

    For an example of the Run history page, go to the Cancel up to 20 flow runs section in this article.