# Downgrade JS SDK in Custom Code

**URL:** <https://community.hubspot.com/t/downgrade-js-sdk-in-custom-code/74623>\
**Category:** APIs & Integrations\
**Created:** [February 7, 2023, 11:06am UTC](https://community.hubspot.com/t/downgrade-js-sdk-in-custom-code/74623 "2023-02-07T11:06:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![weiliang\_lee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/weiliang_lee/32/81774_2.png) [@weiliang\_lee](https://community.hubspot.com/u/weiliang_lee)\
**Post date:** [February 7, 2023, 11:06am UTC](https://community.hubspot.com/t/downgrade-js-sdk-in-custom-code/74623/1 "2023-02-07T11:06:33Z")

</div>

Is there anyway I can force the custom code to load a lower version than its current v8.0?

`const hubspot = require('@hubspot/api-client');`

Right now whenever I do this above, it loads v8 and it is causing some issues.

Cheers

WL

---

<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:** [February 7, 2023, 7:15pm UTC](https://community.hubspot.com/t/downgrade-js-sdk-in-custom-code/74623/2 "2023-02-07T19:15:32Z")

</div>

Hi, [@weiliang\_lee](https://community.hubspot.com/t5/user/viewprofilepage/user-id/155264) 👋 Let’s see if some of our community members have any insight for you. Hey, @tominal @ChrisoKlepke @MatthiasWeber can you help [@weiliang\_lee](https://community.hubspot.com/t5/user/viewprofilepage/user-id/155264)?

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![MatthiasWeber](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matthiasweber/32/27498_2.png) [@MatthiasWeber](https://community.hubspot.com/u/MatthiasWeber)\
**Post date:** [February 8, 2023, 6:54am UTC](https://community.hubspot.com/t/downgrade-js-sdk-in-custom-code/74623/3 "2023-02-08T06:54:13Z")

</div>

[@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) [@weiliang\_lee](https://community.hubspot.com/t5/user/viewprofilepage/user-id/155264) as fare as I know - only via package.json. But i’m not sure if you can access this file in the hubspot world.

---

<div class="post-metadata">

**Author:** ![ChrisoKlepke](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/chrisoklepke/32/11213_2.png) [@ChrisoKlepke](https://community.hubspot.com/u/ChrisoKlepke)\
**Post date:** [February 8, 2023, 9:19am UTC](https://community.hubspot.com/t/downgrade-js-sdk-in-custom-code/74623/4 "2023-02-08T09:19:38Z")

</div>

Thank you [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) for getting me in on this.

Hey [@weiliang\_lee](https://community.hubspot.com/t5/user/viewprofilepage/user-id/155264),

I assume you are talking about Custom Code Workflow Actions. In that case: Yes, you can change the version. There is a little dropdown at the top of the code in which you can change between v3 and v8.

 ![Screenshot 2023-02-08 at 09.33.14.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/3/b394f5feb2945687f4f59fa8011ab5dff7cc1d3b.png)

If you found this post helpful, consider helping others in the community to find answers faster by marking this as a solution. I’d really appreciate it.

Cheers,

Chriso

---

<div class="post-metadata">

**Author:** ![weiliang\_lee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/weiliang_lee/32/81774_2.png) [@weiliang\_lee](https://community.hubspot.com/u/weiliang_lee)\
**Post date:** [February 8, 2023, 9:26am UTC](https://community.hubspot.com/t/downgrade-js-sdk-in-custom-code/74623/5 "2023-02-08T09:26:42Z")

</div>

That’s weird, my interface seems to be different though:

 ![weiliang_lee_0-1675848393071.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/1/71655a6533cf1aeddc21829a00a27955f530e74f.png)

---

<div class="post-metadata">

**Author:** ![ChrisoKlepke](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/chrisoklepke/32/11213_2.png) [@ChrisoKlepke](https://community.hubspot.com/u/ChrisoKlepke)\
**Post date:** [February 8, 2023, 10:03am UTC](https://community.hubspot.com/t/downgrade-js-sdk-in-custom-code/74623/6 "2023-02-08T10:03:30Z")

</div>

That’s odd. Maybe this is new and didn’t roll out to all portals yet. [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) do you have some more insights on that. In my memory, the dropdown looked different in the past also.

Cheers,

Chriso
