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

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?

Thanks for your help in advance.

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

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

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)