This article was originally written by Jenny Andersson in collaboration with Sofia Hubendick.
This how-to article explains the process of resubmitting a Logic App Standard from a specific action via API. If you want to resubmit the workflow from the beginning, you can use the Workflow Trigger Histories - Resubmit - REST API instead.
Workflow Run Histories - Resubmit
Authentication
I used a managed identity for authentication, which simplifies the process by eliminating the need to obtain a token manually. Additionally, I implemented the new Logic App Standard Operator role.
URL
The URL for resubmitting an action looks like this:
https://management.azure.com/subscriptions/[subscriptionId]/resourceGroups/[resourceGroupName]/providers/Microsoft.Web/sites/[logicAppName]/hostruntime/runtime/webhooks/workflow/api/management/workflows/[workflowName]/runs/[runId]/resubmit?api-version=2022-03-01
Mandatory URL Path Parameters
Name |
Description |
subscriptionId |
The Azure subscription Id |
resourceGroupName |
The name of the resource group containing the Logic App |
logicAppName |
The name of the Logic App |
workflowName |
The name of the workflow |
runId |
The id of the workflow run to be resubmitted |
Request Body
The API request body is structured as follows; replace the placeholder with the name of the action:
{
"actionsToResubmit": [
{
"name": "[action name]"
}
]
}
Response
Name | Description |
202 Accepted |
OK |
Other Status Codes |
Error response describing why the operation failed. |
Published Nov 05, 2024
Version 1.0alexzuniga
Former Employee
Joined October 06, 2022
Azure Integration Services Blog
Follow this blog board to get notified when there's new activity