cancel
Showing results for 
Search instead for 
Did you mean: 

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!

 

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.
  • SharePoint, Microsoft 365 and Power Platform Developer | Contributor on SharePoint StackExchange
  • 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 #Office365 #MSFlow | C-sharpCorner MVP | SharePoint StackOverflow, Github, PnP contributor
  • Web site – https://kamdaryash.wordpress.com Youtube channel - https://www.youtube.com/channel/UCM149rFkLNgerSvgDVeYTZQ/