# Save webhook response to set value to a property in a workflow

**URL:** <https://community.hubspot.com/t/save-webhook-response-to-set-value-to-a-property-in-a-workflow/64929>\
**Category:** APIs & Integrations\
**Created:** [September 12, 2022, 5:59pm UTC](https://community.hubspot.com/t/save-webhook-response-to-set-value-to-a-property-in-a-workflow/64929 "2022-09-12T17:59:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![04774](https://avatars.discourse-cdn.com/v4/letter/0/c0e974/32.png) [@04774](https://community.hubspot.com/u/04774)\
**Post date:** [September 12, 2022, 5:59pm UTC](https://community.hubspot.com/t/save-webhook-response-to-set-value-to-a-property-in-a-workflow/64929/1 "2022-09-12T17:59:24Z")

</div>

Hello,  
I am having trouble understanding how to save a webhook response value and use it to assign the value to a property later in the workflow. I see the value is saved under the name “data.create\_item.id” but I do not see how I can use that value later on in the worklow. Any help or guidance towards the right direction is highly appreciated, thank you!

 ![Screen Shot 2022-09-12 at 10.42.53 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/0/e054ba64eb0a22987d8d75fd7290c1ef82556552.png)

 ![Screen Shot 2022-09-12 at 10.40.55 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/2/f261e2d94589d85fb25b6ce7b279f29539eee07e.png)

---

<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:** [September 14, 2022, 4:54pm UTC](https://community.hubspot.com/t/save-webhook-response-to-set-value-to-a-property-in-a-workflow/64929/2 "2022-09-14T16:54:44Z")

</div>

Hi, @04774 👋 Thanks for your question. Hey, [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) @RMones, do you have any experience or troubleshooting tips you can share with @04774?

Thank you for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![IMcLean](https://avatars.discourse-cdn.com/v4/letter/i/35a633/32.png) [@IMcLean](https://community.hubspot.com/u/IMcLean)\
**Post date:** [September 20, 2022, 7:28pm UTC](https://community.hubspot.com/t/save-webhook-response-to-set-value-to-a-property-in-a-workflow/64929/3 "2022-09-20T19:28:57Z")

</div>

Also looking for an answer to this, is it possible? Seems stupid if you can’t set a property value based on a response from the webhook. But this is hubSpot after all, maybe in 10 years…

---

<div class="post-metadata">

**Author:** ![misch331](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@misch331](https://community.hubspot.com/u/misch331)\
**Post date:** [March 23, 2023, 4:50pm UTC](https://community.hubspot.com/t/save-webhook-response-to-set-value-to-a-property-in-a-workflow/64929/4 "2023-03-23T16:50:28Z")

</div>

We were able to do this using the ‘Custom Code’ workflow action. Assuming your webhook is returning say some JSON data back to Hubspot in the webhook response, you can define the hs\_server\_response as an input to the custom code, the custom code can do a JSON.parse() of that data, extract the field you want and include it in the outputFields. You’ll have to define the output fields of the custom code much like you do the input fields, but once you do that you can then use a ‘Copy Property Value’ action after that custom code action and you’ll see that one of the possible input values is the output value of the custom code.

This page has helpful info [Workflows | Custom Code Actions - HubSpot docs](https://developers.hubspot.com/docs/api/workflows/custom-code-actions)

---

<div class="post-metadata">

**Author:** ![OSoax](https://avatars.discourse-cdn.com/v4/letter/o/f14d63/32.png) [@OSoax](https://community.hubspot.com/u/OSoax)\
**Post date:** [April 18, 2023, 4:16pm UTC](https://community.hubspot.com/t/save-webhook-response-to-set-value-to-a-property-in-a-workflow/64929/5 "2023-04-18T16:16:06Z")

</div>

hey guys!  
I were able to find at least how to copy webhook responce into HubSpot property.  
So, After webhook activity you need to add step “copy property value” and in a field “Property or value to copy from” you will see your webhook step with all properties that you mark in body outputs.  
then just choose Object and Object’s property where to add value. Remember property field type have to be single line text, otherwise you will not be able to select property field with other field type.  
Hope it will help someone to avoid headache with research​🤪

 ![OSoax_0-1681834269898.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/d/0d0389eab9610054b341a138ddf06343e0a11713.png)

---

<div class="post-metadata">

**Author:** ![brycekunkel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brycekunkel/32/8994_2.png) [@brycekunkel](https://community.hubspot.com/u/brycekunkel)\
**Post date:** [November 2, 2023, 9:09pm UTC](https://community.hubspot.com/t/save-webhook-response-to-set-value-to-a-property-in-a-workflow/64929/6 "2023-11-02T21:09:50Z")

</div>

Thanks so much - this was helpful. For whatever reason the “Set property value” doesn’t function this way. The workflow errors out that way but works correctly with Copy Property Value.

---

<div class="post-metadata">

**Author:** ![MWhiteford](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mwhiteford/32/20902_2.png) [@MWhiteford](https://community.hubspot.com/u/MWhiteford)\
**Post date:** [January 21, 2026, 11:39am UTC](https://community.hubspot.com/t/save-webhook-response-to-set-value-to-a-property-in-a-workflow/64929/7 "2026-01-21T11:39:13Z")

</div>

There is now (in 2026) a simpler solution to this problem. When you create a branch, select “One property or action output”:

 ![MWhiteford_0-1768995424299.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/135c0461e2d645293c75f115f6a2c98fb7670f71.png)

Then, when you click in “Property or value to branch on”, you can select the “Send a webhook” action and choose the status field:

 ![MWhiteford_1-1768995537555.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/2/c2867ddfed252b4ab77dbaf0f13d33f2a0cffa04.png)
