APIs & Integrations

KKulkarni4
Membro

Parse JSON response to get one field value

resolver

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 Avaliação positiva
1 Solução aceita
skimura
Solução
Top colaborador(a) | Parceiro Platinum
Top colaborador(a) | Parceiro Platinum

Parse JSON response to get one field value

resolver

@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.

Exibir solução no post original

4 Respostas 4
kennedyp
Gerente da Comunidade
Gerente da Comunidade

Parse JSON response to get one field value

resolver

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 Avaliação positiva
KKulkarni4
Membro

Parse JSON response to get one field value

resolver

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 Avaliação positiva
skimura
Solução
Top colaborador(a) | Parceiro Platinum
Top colaborador(a) | Parceiro Platinum

Parse JSON response to get one field value

resolver

@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
Gerente da Comunidade
Gerente da Comunidade

Parse JSON response to get one field value

resolver

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 Avaliação positiva