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. A flow in integrator.io consists of a source (export from an app, database, or file server; or a webhook listener) and a destination (import, file transfer, or lookup). In simple terms, an export retrieves the data of the source application and breaks it into smaller pages. An import processes those pages and stores the data in the destination application. You can use different types of hooks at each stage 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. Hooks cannot make changes to a “blob” (file download passed intact within a flow).
The following table lists the script formats available for each import hook type.
Hook type | JavaScript | Stack | SuiteScript 1.0 | SuiteScript 2.0 |
---|---|---|---|---|
x |
x |
|||
x |
x |
x |
||
x |
x |
x |
x |
|
x |
x |
x |
x |
|
x |
x |
In NetSuite integrations, the script format used for hooks should be the same as the NetSuite API version used in the import.
Comments
Please sign in to leave a comment.