cancel
Showing results for 
Search instead for 
Did you mean: 
nagaraja2026

Terminate Control : Power Automate/Flow

Have you ever thought of terminating power automate/flow if condition is not met?

Recently I have come across this scenario and I used ‘Terminate’ control to achieve this.

image.png

 

Terminate control gives you option to set the status (Failed , Succeeded , Cancelled , Custom Value ) .

image.png

 

 

If you select Failed , it gives you option to provide error code and error message.

In this way , we can terminate the flow using ‘Terminate’ control if condition is not met.

In my case, I want to terminate the flow based on work order status value . Have a look at the below image for reference.

image.png

 

Note :

Terminate control will terminate the whole flow. We cannot use it to terminate any specific branch .

If you choose ‘Enter custom value’ for Status, It will throw error while saving the flow(see below image for reference). Hoping that

Microsoft will fix this soon.

image.png

 

This only works if you use one of the three preset status codes.’Failed, Cancelled, Succeeded'.

Hope it helps!

 

Comments

Hi @nagaraja2026  Great little tip buddy, much appreciated.

 

Just to poke the bear, @Cyparson or @RichardTodd or @nitika*; is there any update on @nagaraja2026   comment about maybe MS will building the ability for users to specify their own [Terminate] status value, without it throwing an error?

 

(*Why us?: Sorry guys, you were the last MS Employees I have seen active within the forum, so I reached out to you.)

Hi @JoshPayneSays I didn't find any documentation on this behavior even when many users are reporting this. I would request you to create a support ticket to seek an answer from product group whether this is supported or not and if not then why not and what's to roadmap for this feature release.

 

-Nitika

Meet Our Blog Authors
  • Experienced Consultant with a demonstrated history of working in the information technology and services industry. Skilled in Office 365, Azure, SharePoint Online, PowerShell, Nintex, K2, SharePoint Designer workflow automation, PowerApps, Microsoft Flow, PowerShell, Active Directory, Operating Systems, Networking, and JavaScript. Strong consulting professional with a Bachelor of Engineering (B.E.) focused in Information Technology from Mumbai University.
  • I am a Microsoft Business Applications MVP and a Senior Manager at EY. I am a technology enthusiast and problem solver. I work/speak/blog/Vlog on Microsoft technology, including Office 365, Power Apps, Power Automate, SharePoint, and Teams Etc. I am helping global clients on Power Platform adoption and empowering them with Power Platform possibilities, capabilities, and easiness. I am a leader of the Houston Power Platform User Group and Power Automate community superuser. I love traveling , exploring new places, and meeting people from different cultures.
  • Web site: https://ganeshsanapblogs.wordpress.com/ MCT | SharePoint, Microsoft 365 and Power Platform Consultant | Contributor on SharePoint StackExchange, TechCommunity
  • Encodian Owner / Founder - Ex Microsoft Consulting Services - Architect / Developer - 20 years in SharePoint - PowerPlatform Fan
  • I am the Owner/Principal Architect at Don't Pa..Panic Consulting. I've been working in the information technology industry for over 30 years, and have played key roles in several enterprise SharePoint architectural design review, Intranet deployment, application development, and migration projects. I've been a Microsoft Most Valuable Professional (MVP) 12 consecutive years and am also a Microsoft Certified SharePoint Masters (MCSM) since 2013.
  • Big fan of Power Platform technologies and implemented many solutions.
  • Passionate #Programmer #SharePoint #SPFx #M365 #Power Platform| Microsoft MVP | SharePoint StackOverflow, Github, PnP contributor
  • Web site – https://kamdaryash.wordpress.com Youtube channel - https://www.youtube.com/channel/UCM149rFkLNgerSvgDVeYTZQ/