# node.js library for use in Custom code action to read csv on SFTP

**URL:** <https://community.hubspot.com/t/node-js-library-for-use-in-custom-code-action-to-read-csv-on-sftp/93530>\
**Category:** APIs & Integrations\
**Tags:** workflows, developer-tools\
**Created:** [November 8, 2023, 6:54am UTC](https://community.hubspot.com/t/node-js-library-for-use-in-custom-code-action-to-read-csv-on-sftp/93530 "2023-11-08T06:54:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shahajad](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/shahajad/32/47092_2.png) [@Shahajad](https://community.hubspot.com/u/Shahajad)\
**Post date:** [November 8, 2023, 6:54am UTC](https://community.hubspot.com/t/node-js-library-for-use-in-custom-code-action-to-read-csv-on-sftp/93530/1 "2023-11-08T06:54:48Z")

</div>

Hello everyone,

Is there a solution to read CSV files on SFTP using workflow Custom code actions?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 8, 2023, 6:34pm UTC](https://community.hubspot.com/t/node-js-library-for-use-in-custom-code-action-to-read-csv-on-sftp/93530/2 "2023-11-08T18:34:30Z")

</div>

Hi, @Shahajad 👋 Looking at the documentation and the available supported libraries, this one will like need to be handled a different way. [**Custom code workflow actions**](https://developers.hubspot.com/docs/api/workflows/custom-code-actions#:~:text=Node.js%20supported%20libraries) cannot access Node libraries like `ssh2` or `ssh2-sftp-client`. We are limited to the following libraries:

- @hubspot/api-client ^8
- async ^3.2.0
- aws-sdk ^2.744.0
- axios ^1.2.0
- lodash ^4.17.20
- mongoose ^6.8.0
- mysql ^2.18.1
- redis" ^4.5.1
- request" ^2.88.2
- bluebird ^3.7.2
- random-number-csprng ^1.0.2
- googleapis ^67.0.0

In this case, an intermediate solution for handling your CSVs via SFTP will be necessary.

I hope this helps get you moving forward. — Jaycee
