Skip to main content

There are circumstances in which I want the zap to stop running. I detect these in code.

What do I do in the code to “stop” to this run? I tried thowing an exception, but the next step ran.

Thanks 

Hi @mrjcleaver,

Great question! I am not sure if my thinking is what you are looking for, but please let me know. So what you could do is the following:

  • Create a variable in your code that is True whenever your statements that should stop the workflow meets the requirements
  • Output this variable using “output”:
  • Create a filter by zapier action that allows you to filter this variable.

If the variable is True → Stop the whole workflow. Else continue.

Let me know if that works.

 

~Bjorn