APIs & Integrations

weiliang_lee
トップ投稿者 | Diamond Partner
トップ投稿者 | 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件の返信
ChrisoKlepke
キーアドバイザー | Elite Partner
キーアドバイザー | 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
トップ投稿者 | Diamond Partner
トップ投稿者 | Diamond Partner

Downgrade JS SDK in Custom Code

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

weiliang_lee_0-1675848393071.png

 

ChrisoKlepke
キーアドバイザー | Elite Partner
キーアドバイザー | 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
コミュニティーマネージャー
コミュニティーマネージャー

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 いいね!
MatthiasWeber
ガイド役 | Solutions Partner
ガイド役 | Solutions 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.