APIs & Integrations

KKulkarni4
Member

Parse JSON response to get one field value

SOLVE

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.

0 Upvotes
1 Accepted solution
skimura
Solution
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Parse JSON response to get one field value

SOLVE

@KKulkarni4 

Hi.

 

How about trying the following?

I hope this helps.

 

スクリーンショット 2024-09-27 9.02.59.png

1. add [Send a webhook]

set [webhook URL].

 

[Test action] > [Test]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

スクリーンショット 2024-09-27 9.03.47.png

 

スクリーンショット 2024-09-27 9.04.30.png2. get API [response parameter].

 

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

 

 

 

 

 

 

 

 

 

 

 

 

スクリーンショット 2024-09-27 9.05.08.png

3. choose response parameter.

 

this case, I selected [userId].

*don't forget save.

 

 

 

 

 

 

 

 

 

 

スクリーンショット 2024-09-27 9.06.31.png4. Edit [Set Property value].

choose [Action outputs].

 

 

 

 

 

 

 

スクリーンショット 2024-09-27 9.06.58.png5. 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.

View solution in original post

4 Replies 4
kennedyp
Community Manager
Community Manager

Parse JSON response to get one field value

SOLVE

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


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes
KKulkarni4
Member

Parse JSON response to get one field value

SOLVE

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.

0 Upvotes
skimura
Solution
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Parse JSON response to get one field value

SOLVE

@KKulkarni4 

Hi.

 

How about trying the following?

I hope this helps.

 

スクリーンショット 2024-09-27 9.02.59.png

1. add [Send a webhook]

set [webhook URL].

 

[Test action] > [Test]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

スクリーンショット 2024-09-27 9.03.47.png

 

スクリーンショット 2024-09-27 9.04.30.png2. get API [response parameter].

 

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

 

 

 

 

 

 

 

 

 

 

 

 

スクリーンショット 2024-09-27 9.05.08.png

3. choose response parameter.

 

this case, I selected [userId].

*don't forget save.

 

 

 

 

 

 

 

 

 

 

スクリーンショット 2024-09-27 9.06.31.png4. Edit [Set Property value].

choose [Action outputs].

 

 

 

 

 

 

 

スクリーンショット 2024-09-27 9.06.58.png5. 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.

kennedyp
Community Manager
Community Manager

Parse JSON response to get one field value

SOLVE

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!


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes