Microsoft Power Automate · Arazzo Workflow

Microsoft Power Automate Triage and Resubmit a Failed Run

Version 1.0.0

Find a failed run in a flow's history, inspect it, and resubmit its trigger.

1 workflow 1 source API 1 provider
View Spec View on GitHub AutomationBusiness ProcessIntegrationLow-CodeMicrosoftPower PlatformRPAWorkflowsArazzoWorkflows

Provider

microsoft-power-automate

Workflows

triage-failed-run
Locate a failed flow run, inspect its failure, and resubmit it.
Scans the run history for a failed execution, reads the run detail to recover the failure code and originating trigger name, and resubmits that trigger so the work is retried.
3 steps inputs: environmentName, flowName outputs: failedRunId, failureCode, runHistory, triggerName
1
listRuns
List the flow's run history and branch on whether it contains a failed run. When nothing has failed there is nothing to resubmit.
2
inspectFailedRun
Read the failed run in detail. This surfaces the result code behind the failure and the name of the trigger that started the run, which the resubmit request requires.
3
resubmitRun
Resubmit the failed run against the trigger recovered from the run detail, retrying the work without recreating the source event by hand.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Power Automate Triage and Resubmit a Failed Run
  summary: Find a failed run in a flow's history, inspect it, and resubmit its trigger.
  description: >-
    The everyday recovery loop for a flow operator. The workflow lists a flow's
    run history and branches on whether a failed run is present; when one is
    found it fetches the run detail to surface the failure code and, critically,
    the name of the trigger that started it, because resubmitting requires that
    trigger name. It then resubmits the run. Every step spells out its request
    inline so the flow can be read and executed without opening the underlying
    OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: flowRunsApi
  url: ../openapi/microsoft-power-automate-flow-runs-api-openapi.yml
  type: openapi
workflows:
- workflowId: triage-failed-run
  summary: Locate a failed flow run, inspect its failure, and resubmit it.
  description: >-
    Scans the run history for a failed execution, reads the run detail to
    recover the failure code and originating trigger name, and resubmits that
    trigger so the work is retried.
  inputs:
    type: object
    required:
    - environmentName
    - flowName
    properties:
      environmentName:
        type: string
        description: The name of the environment holding the flow.
      flowName:
        type: string
        description: The name or ID of the flow to triage.
  steps:
  - stepId: listRuns
    description: >-
      List the flow's run history and branch on whether it contains a failed
      run. When nothing has failed there is nothing to resubmit.
    operationId: listFlowRuns
    parameters:
    - name: environmentName
      in: path
      value: $inputs.environmentName
    - name: flowName
      in: path
      value: $inputs.flowName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      runs: $response.body#/value
      failedRunId: $response.body#/value/0/name
    onSuccess:
    - name: failedRunFound
      type: goto
      stepId: inspectFailedRun
      criteria:
      - context: $response.body
        condition: $.value[?(@.properties.status == 'Failed')].length > 0
        type: jsonpath
    - name: noFailedRuns
      type: end
      criteria:
      - context: $response.body
        condition: $.value[?(@.properties.status == 'Failed')].length == 0
        type: jsonpath
  - stepId: inspectFailedRun
    description: >-
      Read the failed run in detail. This surfaces the result code behind the
      failure and the name of the trigger that started the run, which the
      resubmit request requires.
    operationId: getFlowRun
    parameters:
    - name: environmentName
      in: path
      value: $inputs.environmentName
    - name: flowName
      in: path
      value: $inputs.flowName
    - name: runId
      in: path
      value: $steps.listRuns.outputs.failedRunId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      runStatus: $response.body#/properties/status
      failureCode: $response.body#/properties/code
      startTime: $response.body#/properties/startTime
      endTime: $response.body#/properties/endTime
      triggerName: $response.body#/properties/trigger/name
  - stepId: resubmitRun
    description: >-
      Resubmit the failed run against the trigger recovered from the run detail,
      retrying the work without recreating the source event by hand.
    operationId: resubmitFlowRun
    parameters:
    - name: environmentName
      in: path
      value: $inputs.environmentName
    - name: flowName
      in: path
      value: $inputs.flowName
    - name: runId
      in: path
      value: $steps.listRuns.outputs.failedRunId
    - name: triggerName
      in: query
      value: $steps.inspectFailedRun.outputs.triggerName
    successCriteria:
    - condition: $statusCode == 202
  outputs:
    failedRunId: $steps.listRuns.outputs.failedRunId
    failureCode: $steps.inspectFailedRun.outputs.failureCode
    triggerName: $steps.inspectFailedRun.outputs.triggerName
    runHistory: $steps.listRuns.outputs.runs

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/microsoft-power-automate-triage-failed-run-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.