Introducing Environment Variables

Rameez Raja

Multiple schedules can invoke the same endpoints. In this case, your schedules might need the same configurations like an api url, an authentication token or any header. You can define variables at global level as well as at per group level. Variables are case sensitive.

System Variables

These variables can be directly used in your schedules.

  1. _CRONHOOK_ID - Id of schedule
  2. _RANDOM - a random number
  3. _UUID - a random guid
  4. _TIMESTAMP - unix timestamp (seconds)

Variables hierarchy

You can manage environment variables at two different levels:

  1. Global
  2. Group

Global variables are available throughout the platform. You can use them in all schedules created from web platform as well as from API.

Details Screenshot

Group variables can be added while creating/updating a group. Group variables can only be accessed within group schedules. Group level variables override global variables, if they have same name.

Details Screenshot

Variables Usage

Use {{CUSTOM_VAR}} notation in schedules.

If you need to escape curly braces you can use this notation: {%{ {{ escaped_string }} }%} // output => {{ escaped_string }}

Variables can be used in the following fields:

  1. URLs
  2. Headers (Key & Value)
  3. Payload

Details Screenshot