Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This page describes how to create and configure a global variable as a source in Jitterbit Studio.

Create a Global Variable Source

You can choose to create a new global variable source on its own, or within an existing operation. For more information on how sources and targets work within operations, see Creating an Operation. For more information on global variables, see Using Global Variables.

Create New Source

Within your project within Jitterbit Studio, there are several ways to create a new global variable source:

  • Go to File > New > New Source. In the popup, select Global Variable as the type.

  • In the tree on the left, right-click on Sources and select New Source. In the popup, select Global Variable as the type.
  • In the top toolbar, click the green source icon . In the popup, select Global Variable as the type.
NOTE: If you create a standalone source via one of the above methods, note that it is not connected to any operation. To use the source you have just created in an operation, follow Use Existing Source in an Existing Operation below.

Create New Source in an Existing Operation

A source is created by default when you create a new operation. If you have already created an operation, you can specify the type of the source as follows:

  • Within an operation, double-click on the source icon. In the popup, select Create New Source. In the configuration screen, use the Type dropdown to select Global Variable.

  • Within an operation, right-click on the source icon and select Create New Source. In the configuration screen, use the Type dropdown to select Global Variable.

Use Existing Source in an Existing Operation

A source is created by default when you create a new operation. If you already have an existing global variable source you want to use, you can use it in the operation as follows:

  • Within an operation, double-click on the source icon. In the popup, select the existing source from the list.

  • Within an operation, right-click on the source icon and choose Select Existing Source. In the popup, select the existing source from the list.

  • Drag the existing source from the tree on the left and drop it onto the source icon on the operation.

Configure a Global Variable Source

After you have created a new global variable source, the configuration screen will open in the main view of Studio. You can get back to the configuration screen at any time by double-clicking on the source icon in the operation, or by double-clicking the source in the tree on the left.

The basic configuration screen should look similar to the example below. Each configurable option is explained as follows.

  • Variable: Enter an existing global variable name, or enter the name you want to use for a new global variable. You can also double-click in this box or begin typing an open square bracket '[' to bring up a list of existing global variables to choose from. Global variable names can be specified with or without brackets as of version 8.22.

    NOTE: When creating new global variables, it can be a good idea to prefix your global variables so that they are easy to look up later. For example, a global variable org.api.response prefixed with org will be easier to find if you have other global variables that also use the org prefix.

    NOTE: When using global variables in Scripts or Transformations, you can reference the variable by beginning with a $, for example $org.api.response. For more information, see Using Global Variables.
  • Test Connection: Click the  button to test creating the variable in memory on the Agent.
On This Page

Related Topics

Last updated:  Mar 06, 2017

  • No labels