⚙ Operations Hub

Smuli
Participant

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

Résolue

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? 

Näyttökuva 2023-6-12 kello 12.10.49.png

1 Solution acceptée
louischausse
Solution
Conseiller clé | Partenaire solutions Platinum
Conseiller clé | Partenaire solutions Platinum

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

Résolue

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.

louischausse_0-1686664145656.png

 



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

Louis Chaussé from Auxilio HubSpot Solutions Partner Signature
Louis Chaussé from Auxilio HubSpot Solutions Partner Meeting link

Voir la solution dans l'envoi d'origine

3 Réponses
louischausse
Solution
Conseiller clé | Partenaire solutions Platinum
Conseiller clé | Partenaire solutions Platinum

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

Résolue

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.

louischausse_0-1686664145656.png

 



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

Louis Chaussé from Auxilio HubSpot Solutions Partner Signature
Louis Chaussé from Auxilio HubSpot Solutions Partner Meeting link
Smuli
Participant

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

Résolue

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

0 Votes
kvlschaefer
Gestionnaire de communauté
Gestionnaire de communauté

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

Résolue

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


Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success.
Don't miss this opportunity to connect and grow—reserve your spot today!

0 Votes