Skip to end of metadata
Go to start of metadata

Introduction

Calling a plugin from a script is one of two methods for using a plugin, the other being adding a plugin to an activity. The plugin must be one that is specifically intended to be executed within a script, such as the Jitterbit HMAC-SHA256 Generator plugin.

Initializing Global Variables

Many plugins require global variables to be initialized prior to executing the plugin. For information on determining whether these values are required, as well as how to set required or optional values, refer to Global Variable Initialization.

Executing a Plugin from a Script

Certain plugins can be called directly from scripts written in Jitterbit Script of any script type (see Script Types and Creation). Plugins are not able to be called from JavaScript scripts.

Within a Jitterbit Script, the Plugins tab of the component palette provides a list of plugins that can be run inside a script:

NOTE: In order for plugins to appear within Cloud Studio, they must be installed on the agent:

  • Cloud Agents: If you are using the Cloud Agent Group, a range of Jitterbit-provided plugins will already be installed.
  • Private Agents: If you are using a Private Agent Group, see Customizations > Plug-ins for instructions on adding plugins.

For a description of each Jitterbit-provided plugin, see Plugins Available in Jitterbit Harmony.

To add a plugin and the function needed to execute it, drag the specific plugin from the palette to the script to insert both the RunPlugin() function and the plugin reference as a function argument.

To insert a plugin reference by itself, either position the cursor after the opening parenthesis of the RunPlugin() function or begin typing the plugin name, and then press Control+Space to display a list of autocomplete suggestions.

On This Page

Last updated:  Jan 29, 2020

  • No labels