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.
  • Encodian Owner / Founder - Ex Microsoft Consulting Services - Architect / Developer - 20 years in SharePoint - PowerPlatform Fan
  • Cambridge UK Power Platform User Group Leader, Technical evangelist and speaker. Always says yes to coffee! #LetsGetCoffee
  • Passionate #Programmer #SharePoint #SPFx #Office365 #MSFlow | C-sharpCorner MVP | SharePoint StackOverflow, Github, PnP contributor
  • I am building business processes and applications that are easy for users' to stick to, so they can follow and understand them. In overall I transform processes to be more reliable and effortless. I am a proud co-organizer of SharePoint Saturday Warsaw and active community member, blogger and international speaker.