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

**URL:** <https://community.hubspot.com/t/push-data-to-a-third-party-system-via-apis-using-a-custom-coded-workflow/36464>\
**Category:** Data Hub\
**Tags:** integrations\
**Created:** [April 29, 2021, 9:52am UTC](https://community.hubspot.com/t/push-data-to-a-third-party-system-via-apis-using-a-custom-coded-workflow/36464 "2021-04-29T09:52:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanwaters82](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ryanwaters82/32/5746_2.png) [@ryanwaters82](https://community.hubspot.com/u/ryanwaters82)\
**Post date:** [April 29, 2021, 9:52am UTC](https://community.hubspot.com/t/push-data-to-a-third-party-system-via-apis-using-a-custom-coded-workflow/36464/1 "2021-04-29T09:52:25Z")

</div>

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.

> **[3 Ways to Use Custom Coded Workflow Actions With the HubSpot Operations Hub](https://www.linkedin.com/pulse/3-ways-use-custom-coded-workflow-actions-hubspot-hub-jack-coldrick/)**
>
> On April 21st 2021 HubSpot introduced the newest addition to the family, Operations Hub. Operations Hub supercharges the HubSpot CRM with a suite of tools that make it easy to connect, clean, and automate your customer data.

### **2. Enrich company data using a data enrichment service (** [**CODE**](https://gist.github.com/jackcoldrick90/b5e5e44a91a3a022b9b5720f1145930d) **|** [**VIDEO**](https://share.vidyard.com/watch/1TosyFQ1YQMfa28XkL1sdC?) **)**

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.

---

<div class="post-metadata">

**Author:** ![MiaSrebrnjak](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miasrebrnjak/32/10_2.png) [@MiaSrebrnjak](https://community.hubspot.com/u/MiaSrebrnjak)\
**Post date:** [May 3, 2021, 9:42am UTC](https://community.hubspot.com/t/push-data-to-a-third-party-system-via-apis-using-a-custom-coded-workflow/36464/2 "2021-05-03T09:42:28Z")

</div>

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](https://community.hubspot.com/t5/Custom-Code-Workflow-Actions/A-thread-for-feedback/td-p/407741) 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](https://community.hubspot.com/t5/user/viewprofilepage/user-id/131510), @thesnappingdog, @Simplii have you maybe been using Custom Coded Workflow Actions to send HubSpot data to external systems?

Thanks,

Mia

---

<div class="post-metadata">

**Author:** ![Aakar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aakar/32/107785_2.png) [@Aakar](https://community.hubspot.com/u/Aakar)\
**Post date:** [May 3, 2021, 10:01am UTC](https://community.hubspot.com/t/push-data-to-a-third-party-system-via-apis-using-a-custom-coded-workflow/36464/3 "2021-05-03T10:01:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bryce-corey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bryce-corey/32/32521_2.png) [@bryce-corey](https://community.hubspot.com/u/bryce-corey)\
**Post date:** [May 5, 2021, 1:22pm UTC](https://community.hubspot.com/t/push-data-to-a-third-party-system-via-apis-using-a-custom-coded-workflow/36464/4 "2021-05-05T13:22:45Z")

</div>

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.

```lia-code-sample
// 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)

```
