web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Reducing Flow Duration
Power Automate
Answered

Reducing Flow Duration

(0) ShareShare
ReportReport
Posted on by 107

Hello All,

 

I have a flow that runs daily and pulls in data using SQL power query from Purchase Order data table. Using this data, it will roll into an approval step that will then send out emails based on Teams approval response by a buyer in our procurement group. With each row of SQL data corresponding to an individual Purchase Order, there is an "Apply to Each" function built in here with the concurrency control set to maximum (degree of parallelism = 50). 

 

My fear here is if the Teams approval goes unanswered, the flows are in a "pending" state. As I understand it, the flow can retain 50 of these using the concurrency control. Firstly, what happens if you exceed this limit? Does the flow break or will it cancel the flows based on age? If it does halt the older forgotten flows, I may be all set. 

 

If not, can I utilize the flow duration setting to essentially "self-clean" the flow and keep well inside the 50 flow limit? For example, if I have 5 flows a day and these are not addressed at the approval step, in 10 days this will add up to the 50 parallel flow limit as the default duration to hold this step is 30-days. If I can reduce this limit to 5 days, it will toss out the older runs and keep the approval running each day. 

 

The flow was originally designed to be addressed by the respective buyers each day and I've tried to send reminders to keep their approval queues clear but human nature is what it is and sometimes these just start to pile up. If they could "age out" after 5 or so days, it is no issue for the buyer as they have probably already moved onto something else.

 

 

Categories:
I have the same question (0)
  • Verified answer
    Rohit Sharma354 Profile Picture
    Microsoft Employee on at

    Hello,

     

    The best way to let the flow run silently exit or gracefully fail is to set the custom timeout on the approval step, as shown below:

    So, it should be P5D for 5 days. If there is no response from the approver in 5 days, the flow run will fail and other runs will continue as usual.

     

    This way, you should never get into a situation of hitting the parallelism limit of 50.

     

    Screen1.png

     

     

    Hope this helps !

     

     

  • Anonymous5 Profile Picture
    107 on at

    Thanks very much. Looks like this will do exactly what I need.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 62 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 58

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard