Attaching scripts to integrations

Use the following procedure to attach a script to an integration.

To attach a script to an integration:

  1. Open an integration.
  2. From the Integration window, click Properties, and choose the Scripts tab.

An icon next to a script indicates that the script is attached to this integration.


  1. Select the script type for the integration.

The type of script you choose depends on when the script should run.

[spacer]

Script event

Description

Before Integration

The script runs once at the start of the integration.

Before Document

The script runs once at the beginning of each document (record). It runs after the appropriate sources for the document have been read, but before any values in the destination have been set.

Before Document Commit

The script runs once for each document, after all of the destination fields have been set based on the selected rules, but before the document is actually inserted or updated.

Document Warning

The script runs each time a warning occurs for a document.

After Document

The script runs once after each document that has been inserted or updated.

Document Error

The script runs each time an error occurs for a document.

After Integration

The script runs once after the entire integration has finished.

Integration Error

The script runs each time an error occurs for the integration process as a whole.


  1. To attach a script, select it in the list and click Open Script.

– or –

Double-click the name of the script.

The Script Editor window opens, where you can write the script.

To remove a script, select the script in the list and click Remove Script.



Documentation Feedback