⚙ Operations Hub

Smuli
Participant

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

SOLVE

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 Accepted solution
louischausse
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

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

SOLVE

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

View solution in original post

3 Replies 3
louischausse
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

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

SOLVE

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)?

SOLVE

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

0 Upvotes
kvlschaefer
Community Manager
Community Manager

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

SOLVE

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 Upvotes