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.
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?
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)
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)
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.