APIs & Integrations

weiliang_lee
Top Contributor | Diamond Partner
Top Contributor | Diamond Partner

Downgrade JS SDK in Custom Code

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 

5 Replies 5
ChrisoKlepke
Key Advisor | Elite Partner
Key Advisor | Elite Partner

Downgrade JS SDK in Custom Code

Thank you @Jaycee_Lewis for getting me in on this. 

 

Hey @weiliang_lee

 

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

 

 

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

weiliang_lee
Top Contributor | Diamond Partner
Top Contributor | Diamond Partner

Downgrade JS SDK in Custom Code

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

weiliang_lee_0-1675848393071.png

 

ChrisoKlepke
Key Advisor | Elite Partner
Key Advisor | Elite Partner

Downgrade JS SDK in Custom Code

That's odd. Maybe this is new and didn't roll out to all portals yet. @Jaycee_Lewis do you have some more insights on that. In my memory, the dropdown looked different in the past also. 

 

Cheers, 

Chriso

Jaycee_Lewis
Community Manager
Community Manager

Downgrade JS SDK in Custom Code

Hi, @weiliang_lee 👋 Let's see if some of our community members have any insight for you. Hey, @tominal @ChrisoKlepke @MatthiasWeber can you help @weiliang_lee

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
MatthiasWeber
Guide | Partner
Guide | Partner

Downgrade JS SDK in Custom Code

@Jaycee_Lewis @weiliang_lee as fare as I know - only via package.json. But i'm not sure if you can access this file in the hubspot world.