You can create custom code to do things like calculations, data comparisons, or transformations. You can tell Flow Builder when to trigger your hook.
Create your hook
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, find the flow you want.
- On the right, under “Actions,” click the down arrow > Edit .
Step 2: Create your hook
Note: The Define Hook editor is a dynamic form. The fields in the editor may vary based on the app and the record type.
- To the right of your app’s card, click JS . The Define Hooks editor will pop up on your screen.
- To define your hook, fill out the fields in the editor:
- Hook type:
- Script: Your code is managed and executed by integrator.io.
- Stack: Your code will be hosted on either your own server orAWS lambda.
- Pre save page: This function will be invoked at the end of the data record, after the transformations and the filters. It’s the last step before the export record is passed to the destination app.The functions will be in a drop-down at the top of your script editor:
- 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.
- Script or stack record: To the right of the “Pre save page,” select your script or stack from the drop-down.
- Add a script: If you’re using a script, you can add a new script. Click Add .
- Edit script: If you’re using a script, you can edit it. Click Edit .
- Hook type:
- Click Save.
Check out our community forum for tips on creating hooks. You can ask question and post answers.