Documentation tree

Variables allow you to use a single value as needed within multiple requests. When you use a variable, you only have to modify its value in one location.

To use a variable in a request, you must enclose the name in double square brackets, as shown in the following example. Cantara also has a fixed variable defined as TODAY which will insert current server date and time as required. This variable also supports basic arithmetic to calculate prior and future dates and shown in the example.

Example

For this example, we have defined a variable named COMPANY. We can use the variable in any request.

You can add, edit and delete variables that are associated with a request. Once defined, you can use a variable in a request. 

To add a variable
  1. Click the Scheduler node in the navigation panel.
  2. Click Variables.
  3. Enter a Name and Value for the variable you want to add.
  4. Click the Add Variable button.
To edit a variable
  1. Click the Scheduler node in the navigation panel.
  2. Click Variables.
  3. In the Value field you can inline edit a variable value
  4. Once done Tab out or select another field. 

Note: You will notice there is now a red triangle in the top left corner of the text box. This means the value has been change but needs to be saved.

To save your changes click the Save Changes button.

To delete a variable
  1. Click the Scheduler node in the navigation panel.
  2. Click the Variables node.
  3. Click the Remove button for the variable you want to remove.

 

  • No labels