⚙ 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


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes