How to conditionally enable/disable/skip steps in a workflow execution for automation platforms?

This topic was automatically generated from Slack. You can find the original thread here.

Is there a way to enable/disable/skip a step in execution programmatically from within a workflow?

Above I tried working with Mario App to understand this. It seemed to indicate there is a Skip execution if configuration on steps, but I’m not seeing it. It then stated this isn’t the case. So the bot is misleading me.

Basically I have two blocks in my code, each block should only run if a previous block determined so. Each block has its own condition if it should run or not. An if statement, if you will.

Being the kind of automation platform, I’d think this is possible. Though maybe I’m not understanding the breadth of the tool. Perhaps the way to do this is to have one workflow kickoff another workflow, though that seems a bit much when it is only a step in the workflow that is conditional.

1 Like

there’s no built in feature to skip a step for a condition (though it is comming soon). What you can do to execute your code block on condition is to combine them into one code step, then having the if else statement to conditionally execute them

Thank you for the reply.

If all my steps were code, I understand completely to combine and make conditional.

However one of steps I’d like to conditionally execute is a Postmark step. Sure, I could code up the API in my python step, but it is nice to use this prebuilt thing because it is quick and easy.

Heres to hoping conditions comes soon. Meanwhile I’ll work through a couple ideas on how to do this.

1 Like

Another question is the best way for one workflow to trigger another to use webhook or is there another mechanism?

1 Like

The fastest way is to use webhook

Yes, I agree with you. I have the same issue and really need conditioning blocks.