When should you use script environment variables?

Script environment variables are useful when you need to access sensitive credentials in your syncs or actions, that is not specific to a specific connection.

For example, if you have a Discord integration with a bot token, it will need to be used every time you want to send a Discord message, no matter for which connection. In this case, you can create an environment variable for this token and access it from your Discord syncs and actions.

How can I use script environment variables?

Navigate to your ā€œProject Settingsā€ in your dashboard and add/edit the ā€˜Environment Variables’ section.

Environment variables

Once set, the environment variables will be accessible from your sync and action scripts.

Secrets are specific to your environment, so can have different secrets with the same name for your dev and prod environments.