⚙ Operations Hub

ryanwaters82
Participant | Elite Partner
Participant | Elite Partner

Push Data to a Third Party System Via API's Using A Custom Coded Workflow

SOLVE

Hi HubSpotters,

 

I am wondering if anyone has tested out using data to an external system via an API in a custom coded workflow? I found the video by Jack Coldrick on his Linkedin post.

 

https://www.linkedin.com/pulse/3-ways-use-custom-coded-workflow-actions-hubspot-hub-jack-coldrick/

 

2. Enrich company data using a data enrichment service ( CODE | VIDEO )

 

The video shows us how to query two API's to enrich HubSpot data (I found it super useful). I was wondering if anyone has used a similar approach to push data to another system as opposed to updating an object in HubSpot?

 

Thanks for your help in advance. 

1 Accepted solution
bryce-corey
Solution
Participant

Push Data to a Third Party System Via API's Using A Custom Coded Workflow

SOLVE

Hey @ryanwaters82, I have sent data to an external system via API in a custom coded workflow! I made use of the Axios library (supported by custom code) to send HTTP requests to a third party vendor. Axios made it super easy to do! 

 

Here's a basic example of what I implemented. 

 

// Make sure to require library in your JS!
const axios = require('axios').default;

// Build Data
data = {
    'field1': {field_1_data},
    'field2': {field_2_data},
    'field3': {field_3_data},
}

// Send PUT request through axios, await response!
response = await axios.put({URL}, data)

View solution in original post

3 Replies 3
bryce-corey
Solution
Participant

Push Data to a Third Party System Via API's Using A Custom Coded Workflow

SOLVE

Hey @ryanwaters82, I have sent data to an external system via API in a custom coded workflow! I made use of the Axios library (supported by custom code) to send HTTP requests to a third party vendor. Axios made it super easy to do! 

 

Here's a basic example of what I implemented. 

 

// Make sure to require library in your JS!
const axios = require('axios').default;

// Build Data
data = {
    'field1': {field_1_data},
    'field2': {field_2_data},
    'field3': {field_3_data},
}

// Send PUT request through axios, await response!
response = await axios.put({URL}, data)
Aakar
Key Advisor

Push Data to a Third Party System Via API's Using A Custom Coded Workflow

SOLVE

Thanks @MiaSrebrnjak  I have not used the use custom-coded workflow yet. 

Aakar Anil
Marketing Technologist
aakar.me | @aakarpost | in/aakarpost
0 Upvotes
MiaSrebrnjak
Community Manager
Community Manager

Push Data to a Third Party System Via API's Using A Custom Coded Workflow

SOLVE

Hi @ryanwaters82,

 

Thank you for sharing this LinkedIn post with us. I haven't tested Custom Coded Workflow Actions yet, but I wanted to share this Community thread with you, where @KyleJepson and @bryce-corey discuss the feature. If you've decided to test the funtionality yourself, it would be great if you could share your feedback there. 

 

@Aakar@webdew@thesnappingdog@Simplii have you maybe been using Custom Coded Workflow Actions to send HubSpot data to external systems? 

 

Thanks, 

 

Mia


Wusstest du, dass es auch eine DACH-Community gibt?
Nimm an regionalen Unterhaltungen teil, indem du deine Spracheinstellungen änderst


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

0 Upvotes