Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Application specific solutions
    • Dataverse
    • Excel
    • Forms
    • Planner
    • Outlook
    • SharePoint
    • Teams
  • Triggers
  • Resources
  • ABOUT ME
  • Get help with your flow
Menu

What is ‘Trigger Name’ in the Resubmit flow Power Automate action

Posted on May 7, 2023May 7, 2023 by Tom

“I’d like to automatically resubmit an expired Power Automate flow, but what should I use as the ‘Trigger Name’ in the Resubmit Flow action?”


While each Power Automate flow is limited by the 29 and half days of runtime, sometimes it’s not enough. Especially if it’s an approval flow, where some tasks can take longer than expected. Users can ignore them despite reminders or need more time to make the decision, and the flow times out.

Luckily, Power Automate has an action that can resubmit a flow. Not so luckily, it’s another not-so-easily configurable action as it asks for ‘Trigger Name’. What value does it expect?

Get the trigger name from flow JSON

The ‘Trigger Name’ is not something you can get directly flow the flow as it’s hidden in the background, in the flow JSON. To get the name you’ll have to export the flow to .zip package.

Type in some name, it doesn’t matter what it’ll be, and click on the Export button at the bottom.

Extract the downloaded .zip file and navigate in the folder structure until you get to the definition.json file.

Open it in some text editor, e.g. in Visual Studio Code which is my favourite. Search for the text “triggers” to find the flow trigger in that JSON, the ‘Trigger Name’ is the first property of this object. In this example it’s the ‘When_an_item_is_created_or_modified’.

Power Automate Trigger Name resubmit flow

Copy the value in the ‘Resubmit Flow’ action and add an expression to extract the current flow run ID. The flow will resubmit itself once it reaches the step.

workflow()?['run']['name']
Power Automate Trigger Name resubmit flow

Summary

You can “extend” a Power Automate flow run duration if you resubmit the flow again before it times out, but you’ll need the ‘Trigger Name’ value it asks for. Once you extract it from the flow JSON the action itself is quite straightforward – pick the environment, pick the flow, type in the trigger name and use an expression to specific which run it should resubmit. The flow will restart using the same inputs as the original one.

It’s surely not something to use in all your flows, but it might be an extension to the restartable approval flows as proposed in the previous article that’ll give your users more time to process their tasks (if needed).


Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Do you know what to do, but not how to do it?

Get The Ultimate Power Automate expressions cheat sheet and translate your thoughts into flows with ease!


There's also the HTTP requests to SharePoint cheat sheet to help you overcome limitations of some standard actions!

Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

Didn't find what you were looking for?
Need to adjust a solution to fit your needs?
Or would you just like to get an assistance from somebody with 1000s of hours of experience with Power Automate?

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

©2023 Let's POWER Automate | Theme by SuperbThemes