Articles in this section

Export hooks

Hooks are custom code that can run at different stages during the execution of a flow to modify the behavior of export and import processes. You can use different types of hooks at each step of the integration process to perform advanced functions.

Note

Hooks typically modify the JSON records in your flow’s data, including any records parsed from a file exported from a server or uploaded in Data Loader. The preParse script allows you to modify the raw data before parsing the file and to modify the non-binary blob before passing the file downstream.

The following table lists the script formats available for each export hook type:

Hook type

JavaScript

Stack

SuiteScript 1.0

SuiteScript 2.0

preParse

x

preSend

x

x

preSavePage

x

x

In NetSuite integrations, the script format used for hooks should be the same as the NetSuite API version used in the export.

Hook types

  • Script – integrator.io manages and executes your code

  • Stack – Your own server or AWS lambda hosts your code

See also