You can use hooks to integrate custom code to perform calculations, data comparisons, or transformations and trigger functions to run at a specific point during the flow.
Step 1: Find the records
Note: If you already have the flow you want open in Flow Builder, skip to Step 2: Create your hook.
- Go go to integrator.io.
- Click the integration tile that has the flow with the records you want to map.
- In the list, click the flow you want to modify.
Step 2: Create your hook
- To the right of your app’s flow step, click the hook icon.
The Hooks panel displays.
Note: The Hooks panel is a dynamic form, so the fields displayed may vary based on the app and record type.
- Complete the following fields to define your hook:
- Hook type:
- Script: Select this radio button if your code is managed and executed by integrator.io.
- Stack: Select this radio button if your code is hosted on your own server or AWS lambda.
- Pre save page: integrator.io invokes this function at the end of each data record (after any applied transformations and filters). integrator.io invokes the export hook as the final step before passing the export record to a lookup or destination application.
- Function: Enter the function you want the hook to trigger.
- Pre map: The function your write in your script or stack will be triggered before the mapping.
- Post map: The function you write in your script or stack will be triggered after the mapping.
- Post Submit: The function you write in your script or stack will be triggered after the record is submitted.
- Post aggregate: The function you write in your script or stack will be triggered after all of the data has been gathered.
- Scripts/Stacks: Select your script or stack from the drop-down menu. If you’re using a script, you can click Add (+) to add a new script or the pencil icon to edit an existing script.
- Hook type:
- Click Save or Save & close.
For more information on hooks, see Hooks for integrator.io.
Check out our community forum for tips on creating hooks. You can ask question and post answers.
Please sign in to leave a comment.