SuiteScript hook

A flow in integrator.io is mainly composed of sources and destinations. One type of source, an export, fetches data from the source applications, then breaks it into smaller pages before passing it into the next step in the flow, such as an import. Imports process the pages coming in, then send the data into the target system. Exports and imports have different types of hooks, each of which contain a request and response contract that must be used while implementing the hook.

Hooks are custom code (functions) that can run at different stages during the execution of a flow to modify the behavior of export and import processes. You can think of them as events from integrator.io that are consumed during the flow to allow custom processing. You can use a hook to run a stack or script in integrator.io, or you can use a SuiteScript hook.

SuiteScript hooks are special hooks that can run within NetSuite on a RESTlet.

To configure a SuiteScript, you can create a script file in the NetSuite file cabinet.

  1. Click the hook icon on your export or import.
  2. In the Hooks panel, choose Script
  3. In the SuiteScript Hooks section, provide the Function and the File Internal ID for the SuiteScript hook you are linking to.

Leave a comment

Your email address will not be published. Required fields are marked *