# Parse JSON response to get one field value

**URL:** <https://community.hubspot.com/t/parse-json-response-to-get-one-field-value/116744>\
**Category:** APIs & Integrations\
**Tags:** integrations\
**Created:** [September 20, 2024, 10:42am UTC](https://community.hubspot.com/t/parse-json-response-to-get-one-field-value/116744 "2024-09-20T10:42:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KKulkarni4](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@KKulkarni4](https://community.hubspot.com/u/KKulkarni4)\
**Post date:** [September 20, 2024, 10:42am UTC](https://community.hubspot.com/t/parse-json-response-to-get-one-field-value/116744/1 "2024-09-20T10:42:34Z")

</div>

The steps to achieve this, a basic sketch, goes like this:  
Send Data to the Webhook: When creating the company in HubSpot, make sure to send all necessary data to the webhook endpoint.  
Receive JSON Response: Capture the JSON response returned by the webhook endpoint.  
Extract Customer ID: Parse the JSON response to extract the Customer ID.  
Update HubSpot Property: Use the HubSpot API to update the custom contact property with the extracted Customer ID.

---

<div class="post-metadata">

**Author:** ![kennedyp](https://avatars.discourse-cdn.com/v4/letter/k/49beb7/32.png) [@kennedyp](https://community.hubspot.com/u/kennedyp)\
**Post date:** [September 20, 2024, 5:17pm UTC](https://community.hubspot.com/t/parse-json-response-to-get-one-field-value/116744/2 "2024-09-20T17:17:24Z")

</div>

Hi @KKulkarni4! Welcome to the Community-- happy to have you here 😊

Thanks for sharing this process. Are you utilizing this in your own HubSpot instance or have you implemented this for anyone else?

Be sure to also ask any relevant questions you have so our Community members can contribute!

Best,  
Kennedy

---

<div class="post-metadata">

**Author:** ![KKulkarni4](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@KKulkarni4](https://community.hubspot.com/u/KKulkarni4)\
**Post date:** [September 24, 2024, 11:35am UTC](https://community.hubspot.com/t/parse-json-response-to-get-one-field-value/116744/3 "2024-09-24T11:35:54Z")

</div>

I am planning to use this for own instance, basically I want to know How to parse the JSON response from Webhook in workflow and pass the parsed value to Set property event.

---

<div class="post-metadata">

**Author:** ![kennedyp](https://avatars.discourse-cdn.com/v4/letter/k/49beb7/32.png) [@kennedyp](https://community.hubspot.com/u/kennedyp)\
**Post date:** [September 26, 2024, 4:19pm UTC](https://community.hubspot.com/t/parse-json-response-to-get-one-field-value/116744/4 "2024-09-26T16:19:28Z")

</div>

I’d like to invite some of our developer experts to this thread!  
Hey @skimura, @noahmckeon, @alyssamwilie, @miljkovicmisa do y’all have any tips for @KKulkarni4?

Thanks!

---

<div class="post-metadata">

**Author:** ![skimura](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@skimura](https://community.hubspot.com/u/skimura)\
**Post date:** [September 27, 2024, 12:33am UTC](https://community.hubspot.com/t/parse-json-response-to-get-one-field-value/116744/5 "2024-09-27T00:33:54Z")

</div>

@KKulkarni4

Hi.

How about trying the following?

I hope this helps.

 ![スクリーンショット 2024-09-27 9.02.59.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/179c1110c0b6a958f83eee861493107d9d2c4581.png)

1. add [Send a webhook]

set [webhook URL].

[Test action] \> [Test]

 ![スクリーンショット 2024-09-27 9.03.47.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/f/ef84df3209b3f62a3c590caef5646b12a73916b1.png)

 ![スクリーンショット 2024-09-27 9.04.30.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/0/d0c173972ce938a1e88e679ab31c549847b208df.png)  
2. get API [response parameter].

after [Test] click, If API call succeeded, [response] appears.

 ![スクリーンショット 2024-09-27 9.05.08.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/1/b1d16d58c29a4bd1fded02e9d73797032b208ec9.png)

3. choose response parameter.

this case, I selected [userId].

\*don’t forget save.

 ![スクリーンショット 2024-09-27 9.06.31.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/f/f0f112b494b3ac13d40b50a18313f5f2e69cc3aa.png)  
4. Edit [Set Property value].

choose [Action outputs].

 ![スクリーンショット 2024-09-27 9.06.58.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/e/eee7e74ca61af2bd94436bcd1851ac7cb6fe1c29.png)  
5. Set property value to [userId].

this case, [userId] is selectable.

\*If necessary, consider API response error cases.  
example, set property value when API succeeded only.

Thanks.

@kennedyp

Thanks for mention.
