# Webhook properties aren't available in a Custom Code Action

**URL:** <https://community.hubspot.com/t/webhook-properties-arent-available-in-a-custom-code-action/102832>\
**Category:** Data Hub\
**Created:** [March 18, 2024, 6:15pm UTC](https://community.hubspot.com/t/webhook-properties-arent-available-in-a-custom-code-action/102832 "2024-03-18T18:15:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zayne](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zayne/32/85729_2.png) [@Zayne](https://community.hubspot.com/u/Zayne)\
**Post date:** [March 18, 2024, 6:15pm UTC](https://community.hubspot.com/t/webhook-properties-arent-available-in-a-custom-code-action/102832/1 "2024-03-18T18:15:25Z")

</div>

I’m really excited and happy that we can now create webhooks in workflows. **But…**

There is currently NO way to use these fields in custom code. They appear there, but they are greyed out. Why this is a big issue, is that I sometimes have the webhook passing through empty values for fields. If I try to use this value in a “Format Data” action (to store the data and then used it in the custom code action), I get an error.

 ![Screenshot 2024-03-18 at 20.07.22.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/a/4af4f3247b95856adfeef764c9e1e0cf83c858cf.png)

So, the webhook functionality is a great addition, but it is severely hamstrung by not having the fields available in the Custom Code actions.

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [March 19, 2024, 9:44am UTC](https://community.hubspot.com/t/webhook-properties-arent-available-in-a-custom-code-action/102832/2 "2024-03-19T09:44:54Z")

</div>

Hi @Zayne,  
I’d like to thank you for sharing your valuable feedback! This means a lot to us.  
First, for information on the subject, I’d like to share this documentation:  
- [Use webhooks with HubSpot workflows](https://knowledge.hubspot.com/workflows/how-do-i-use-webhooks-with-hubspot-workflows)  
- [Using webhooks in workflows](https://legacydocs.hubspot.com/docs/methods/workflows/webhook_information)  
For new feature suggestions, I’d recommend first to search and check if this idea is already present [on our Ideas Forum here](https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas). If you find a similar idea, give it an upvote and share your unique use case in the comments.  
If the idea doesn’t exist already, please consider [posting and creating a new Idea on our Ideas Forum here](https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas).  
I also wanted to invite a couple of subject matter experts to this conversation: Hi @louischausse, @beeginman and @ChristinaKay can you think of a workaround or do you have suggestions to help @Zayne, please?  
If anybody else has anything to add and/or share, please feel free to join in the conversation 🙂  
Thank you for being part of the discussion!  
Have a lovely day!  
Best,  
Bérangère

---

<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:** [March 27, 2024, 3:27pm UTC](https://community.hubspot.com/t/webhook-properties-arent-available-in-a-custom-code-action/102832/3 "2024-03-27T15:27:07Z")

</div>

Have you tried to branch on the value of your empty webhook property? If values are standardized, empty values would take the “None met” branch and then maybe you could handle the rest from there. I know this might not work depending on your use case but this is another workaround that I found could be helpful sometime.

Sincerely yours,  
The Wizard of Hubs 🧙‍♂️  
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:** ![Zayne](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zayne/32/85729_2.png) [@Zayne](https://community.hubspot.com/u/Zayne)\
**Post date:** [May 1, 2024, 4:33pm UTC](https://community.hubspot.com/t/webhook-properties-arent-available-in-a-custom-code-action/102832/4 "2024-05-01T16:33:32Z")

</div>

Thanks Louis. It’s a good suggestion and I have tried that, but it is a rather clunky workaround when all I want to do is use the values from the webhook in a custom code block so that I can update HubSpot.

I will log this as an feature request.
