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

Hi, @weiliang_lee :waving_hand: 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

@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.

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.

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

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

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