Function
The Function node allows you to write custom JavaScript and run it as a step in your workflow.
JavaScript
The Code node supports Node.js.
Supported JavaScript features
The Code node supports:
Promises. Instead of returning the items directly, you can return a promise which resolves accordingly.
Writing to your browser console using
console.log
. This is useful for debugging and troubleshooting your workflows.
Built-in methods and variables
iMBrace's workflow provides built-in methods and variables for working with data and accessing n8n data.
The syntax to use the built-in methods and variables is $variableName
or $methodName()
. Type $
in the Code node or expressions editor to see a list of suggested methods and variables.
Last updated