Skip to Content

Prepend Data

Introduction

The Prepend Data plugin prepends the contents of the global variable DataToPrepend to each output file. It can also be used for appending using the DataToAppend global variable.

This plugin can be associated only with Private Agent Groups and is not available on the Jitterbit Cloud Agent Groups.

Important

Plugins provided by Jitterbit are deprecated. See Deprecation and Support in Plugins.

Versions

There are two versions of this plugin available:

  • Jitterbit PrependData 1.1.0.0
    As of the Harmony 10.10 release, this version is identical to version 1.3.0.0.

  • Jitterbit PrependData 1.3.0.0
    This is the latest version. As of the Harmony 10.10 release, this version can be used with both Windows and Linux Agents. Previously, this version was not supported on Linux Agents.

Download and Add the Plugin

The Prepend Data plugin is a standard Jitterbit plugin that is already available in the Management Console Plugins page and does not need to be downloaded or added to the organization.

If directed by Jitterbit Support, this plugin can be downloaded at the link provided below and added to the organization (see Add New Plugins in Customizations > Plug-ins).

Associate the Plugin with an Agent Group

The Prepend Data plugin must be associated with a Private Agent Group to make the plugin available on all agents in the group (see Associate Agent Groups in Customizations > Plug-ins).

The plugin is listed in the Management Console Plugins page with a display name of Jitterbit PrependData.

Set Variables and Use the Plugin in a Project

Refer to these topics for information about using plugins in a project:

The Prepend Data plugin uses these variables:

Name Type Required Description
DataToPrepend String Optional The string that will be added to the beginning of the file, prior to all other data. As of version 1.3.0, a carriage return is required for this variable. If you are running the plugin on Windows, enter "\r\n" for the carriage return. If you are running the plugin on Linux, enter "\n" for the carriage return.
DataToAppend String Optional The string that will be added to the end of the file, after all of the other data.
LineBreakStyle String Optional Changes all line breaks in the data to prepend (or append) to a specified line break style. Valid values are windows, unix, linux, or mac. Any different value (except an empty string) will give an error.
AddLineBreak Boolean Optional Adds a line break after the DataToPrepend variable. The line break style can be set using the LineBreakStyle variable.