# Workflow Custom Code Event Status

**URL:** <https://community.hubspot.com/t/workflow-custom-code-event-status/75851>\
**Category:** CMS Development\
**Tags:** enterprise\
**Created:** [February 23, 2023, 2:35pm UTC](https://community.hubspot.com/t/workflow-custom-code-event-status/75851 "2023-02-23T14:35:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AAdamonis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aadamonis/32/71231_2.png) [@AAdamonis](https://community.hubspot.com/u/AAdamonis)\
**Post date:** [February 23, 2023, 2:35pm UTC](https://community.hubspot.com/t/workflow-custom-code-event-status/75851/1 "2023-02-23T14:35:23Z")

</div>

Is there a way to force a custom code event in a workflow to not show SUCCESS? I throw an error in the code and still see SUCCESS afterwards.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [February 24, 2023, 12:06am UTC](https://community.hubspot.com/t/workflow-custom-code-event-status/75851/2 "2023-02-24T00:06:55Z")

</div>

Hi, @AAdamonis 👋 Thanks for reaching out! Hey, @miljkovicmisa @louischausse @ChristinaKay, do you have any experience here?

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![louischausse](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/louischausse/32/18067_2.png) [@louischausse](https://community.hubspot.com/u/louischausse)\
**Post date:** [February 24, 2023, 1:25pm UTC](https://community.hubspot.com/t/workflow-custom-code-event-status/75851/3 "2023-02-24T13:25:28Z")

</div>

Hi @AAdamonis  
This status is the success of running the custom code action itself. If you want to handle errors you can manage them in the code and send it to your workflow using the callback function.  
Don’t forget to mark my reply as a solution if you are satisfied. If not, do not hesitate to ask me anything!

---

<div class="post-metadata">

**Author:** ![AAdamonis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aadamonis/32/71231_2.png) [@AAdamonis](https://community.hubspot.com/u/AAdamonis)\
**Post date:** [February 24, 2023, 1:33pm UTC](https://community.hubspot.com/t/workflow-custom-code-event-status/75851/4 "2023-02-24T13:33:03Z")

</div>

Are you saying use the callback to mark the error in some other property or can the status be manipulated there?

---

<div class="post-metadata">

**Author:** ![louischausse](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/louischausse/32/18067_2.png) [@louischausse](https://community.hubspot.com/u/louischausse)\
**Post date:** [February 24, 2023, 3:16pm UTC](https://community.hubspot.com/t/workflow-custom-code-event-status/75851/5 "2023-02-24T15:16:45Z")

</div>

in some other property called data outputs: [Workflows | Custom Code Actions - HubSpot docs](https://developers.hubspot.com/docs/api/workflows/custom-code-actions#:~:text=Data%20outputs%3A%20the%20values%20that%20resulted%20for%20your%20defined%20data%20outputs.%20An%20alert%20will%20display%20next%20to%20any%20outputs%20that%20the%20code%20generated%20which%20weren%27t%20defined%20either%20in%20the%20Data%20outputs%20section%20or%20in%20the%20code%20editor.%20You%27ll%20need%20to%20add%20those%20outputs%20in%20order%20to%20use%20them%20later%20in%20the%20workflow).
