How to access Variables from a JS block

Hi!

How can I access the variables defined under “Variables and secrets” from a JS block? Currently on v2.0.25.

Cheers,
Kevin

1 Like

Thanks for your feedback.
This feature is not currently supported. I have documented this requirement and will evaluate it in the future.

Just bumping this question back up. Currently the only way to have a JS block execute API calls to an external application requires us to hard code the API key in the JS block code. Obviously, this exposes the key in the browser and presents a significant security concern. @hongboji do you have any suggestions for an alternative approach? Any idea when we can expect an update so we can access the variables defined under “Variables and secrets” from a JS block? Thanks!