# Trying to create a blocking action

**URL:** <https://community.hubspot.com/t/trying-to-create-a-blocking-action/113196>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [July 29, 2024, 6:49pm UTC](https://community.hubspot.com/t/trying-to-create-a-blocking-action/113196 "2024-07-29T18:49:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdeppert](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@cdeppert](https://community.hubspot.com/u/cdeppert)\
**Post date:** [July 29, 2024, 6:49pm UTC](https://community.hubspot.com/t/trying-to-create-a-blocking-action/113196/1 "2024-07-29T18:49:31Z")

</div>

Hey!

I’m trying to create a custom coded workflow action, and have been trying to follow along [here](https://developers.hubspot.com/docs/api/automation/custom-workflow-actions)  
I’ve been trying to specify the hs\_execution\_state to BLOCK in the code editor, but it doesn’t seem to work. It always outputs SUCCESS. Any ideas?

 ![Screenshot 2024-07-29 at 14.49.01.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/f/f5038b5f9b3f8739a7de484f08c1bb813cf3241d.png)

---

<div class="post-metadata">

**Author:** ![Emma\_M](https://avatars.discourse-cdn.com/v4/letter/e/ee7513/32.png) [@Emma\_M](https://community.hubspot.com/u/Emma_M)\
**Post date:** [July 30, 2024, 2:19pm UTC](https://community.hubspot.com/t/trying-to-create-a-blocking-action/113196/2 "2024-07-30T14:19:00Z")

</div>

Hi @cdeppert ,

Thank you for reaching out to the Community! To confirm, are you seeing any errors when trying to specify the hs\_execution\_state?

I would love to hear from @PBaxter and @miljkovicmisa - any ideas on how to successfully display the hs\_execution\_state to Block instead of Success?

Best,

Emma

---

<div class="post-metadata">

**Author:** ![cdeppert](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@cdeppert](https://community.hubspot.com/u/cdeppert)\
**Post date:** [July 30, 2024, 2:54pm UTC](https://community.hubspot.com/t/trying-to-create-a-blocking-action/113196/3 "2024-07-30T14:54:29Z")

</div>

i’m not seeing any errors, but I always receive `hs_execution_state` = SUCCESS. If I specify `BLOCK`, i will end up seeing `hs_execution_state` twice in the outputFields. One key value pair with BLOCK and one key value pair with SUCCESS

---

<div class="post-metadata">

**Author:** ![cdeppert](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@cdeppert](https://community.hubspot.com/u/cdeppert)\
**Post date:** [July 30, 2024, 5:58pm UTC](https://community.hubspot.com/t/trying-to-create-a-blocking-action/113196/4 "2024-07-30T17:58:05Z")

</div>

Adding a photo

 ![Screenshot 2024-07-30 at 13.57.13.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/5/d50183f518417dda330730fe14f939a75686c6ff.png)
