6. How do you use the Terminate action and Configure Run After?

These are your emergency exits and backup plans.

Terminate: Ends the flow with a status—Success, Failure, or Cancelled. Useful when you want to stop the flow early.

Configure Run After: Lets you run actions based on the outcome of previous steps (e.g., only if it fails).

Think of it like a train journey:

Terminate is like pulling the emergency brake. You stop the flow immediately and decide how it ends—success, failure, or cancelled.

Configure Run After is like setting up a backup route. If one train track is blocked (an action fails), you switch to another track (run a different action).

Real-Life Example: Payment Processing Flow

Let’s say you’re building a flow that processes payments via an API:

1. The flow calls the payment API.
2. If the API call fails, you use Configure Run After to Log the error in SharePoint & Send a failure notification.
3. Then, you use Terminate to stop the flow and mark it as Failed, so it doesn’t continue with further steps like sending a receipt.

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top