Articles in this section

Import 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. 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

post response map

x

x

   

pre map

x

x

x

 

post map

x

x

x

x

post submit

x

x

x

x

post aggregate

x

x

   

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

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.