Skip to Content

Variables in Jitterbit Design Studio

Overview

Variables are used to allow for the dynamic configuration of endpoints, to support passing of data between operations, and to drive detailed integration logic with transformation scripts.

Jitterbit supports multiple types of variables with varying scope, including local, global, project, and Jitterbit variables. In addition, keyword substitutions are available to use with filename fields.

Integration best practice suggests that you use the variable that is most limited in scope, in order to minimize the risk of changing variable values across multiple components in the project.

Some ways in which variables can be used include these popular use cases:

  • Data files are passed between operations by storing them in a global variable.
  • Variables are mapped to target fields in a transformation, providing dynamic mapping capabilities.
  • Connection URLs, parameters, and credentials are populated with project variables, which may be set or changed from the Management Console during operation runtime.

All types of variables can be read from and written to depending on the nature of the specific variable (that is, some variables may be informational only). In scripts, variables can be accessed and updated with either Jitterbit Script or JavaScript. Any newly defined JavaScript global variables will become Jitterbit global variables.

As to the performance difference between the different types of variables, local variables are preferred since they are not persisted for other operations. Global and project variables must be cached for other operations. See Global variable versus Temporary Storage for recommendations on when it is appropriate to use these two types.

These pages are included in this topic:

  • Local Variables
    Local variables are the most limited in scope. They are declared within a script and can be accessed only within that script.

  • Global Variables
    Global variables are declared in an operation and are then available to be referenced in the same or downstream operations and scripts. Downstream operations may be within the same or downstream workflows, as linked with operation actions.

  • Project Variables
    Project variables are set before runtime of the operation and become available to use across all workflows in the project. Since project variables can be set through the Management Console and within Citizen Integrator, they provide the flexibility to set and change parameters and credentials without redeploying the project.

  • Jitterbit Variables
    Jitterbit variables are predefined by the Harmony system and can be used to easily fetch global information such as the name of the current source file and other useful information. The default values of Jitterbit variables can also be temporarily overwritten in a script.

    Note

    If using a private agent, you can also programmatically change the behavior of Jitterbit by modifying the private agent configuration file to change the default value of a predefined Jitterbit variable or to create and predefine your own Jitterbit variable. Creating or updating Jitterbit variables using the config file is not available for cloud agents.

  • Filename Keywords
    Filename keywords are used to generate unique filenames for configurable fields that take filenames as input. These include certain fields available when configuring file-based endpoints.