Workflow actions based on a custom code execution (success / error)?

Hello!
Is there a way to build if/then (success/error) logic on a workflow following a custom code execution and its result?
I’d like to send notifications (or trigger other actions) based on if the code was successfully executed or not, but could not figure out a way to do that myself. However it sounds like such a must-have feature, I’m sure someone has solved this already?

Hi @Smuli,

Thanks for reaching out to the Community!

I wanted to refer you to this related post in our Developer’s Forum where @louischausse explains how you can achieve this.

Best,

Kristen

Hi @Smuli ,
The related post suggested by @kvlschaefer is relevant if you want to create custom success/error output messages, but you can also use standard success/error output from custom coded actions.
Either way, you can’t used them in a “If/Then branch” action. You need to use “Value equals branch” instead.

Don’t forget to mark my reply as a solution if you are satisfied. If not, do not hesitate to ask me anything!

Thank you, this was exactly what I was looking for!