Using Team Variables
YepCode team variables allow you to define key-value pairs for use in process source code. These variables are versatile, serving purposes such as storing configuration parameters used across various processes or safeguarding sensitive information like passwords or API keys (using the secured flag).

When you click on the New
icon, you can specify the variable name and value, and check whether it is secured.

To use these team variables in process source code, you may use just plain JavaScript or Python env vars syntax (or use the yepcode.env
approach):
JavaScript
Python
const apiKey = process.env.KRAKEN_API_KEY;
// or
const apiKey = yepcode.env.KRAKEN_API_KEY;
api_key = os.getenv("KRAKEN_API_KEY")
# or
api_key = yepcode.env.KRAKEN_API_KEY
Subsequently, apiKey
will contain the value defined in the team variable regardless of whether it was marked as secured or not. Exercise caution to avoid logging or transmitting it from the code.