In one of our recent requirements, we had Switch case in Power Automate and then actions to be done based on the variable populated in the Switch case.
If any of the case was not satisfied, we did not want to the actions after the Switch case to be performed.
In such scenarios, Power Automate’s Terminate Action comes in handy.
Add Action terminate.
It gives option to select status( this status will be shown in the run history of Flow). For status as Failed- power automate allows to add Code and Message for failure as well.
We can also configure run of terminate based on status of previous action.
Like Stop the Workflow Action for Workflows, We can have Terminate the Power Automate where we do not want any further action.