Skip to content

Code

Node: code · Full type: n8n-nodes-base.code · Version: 2

Ergonomic keyword available: CODE — see NFLOW.md for shorter syntax.

Parameters

Parameter Type Default Details
mode options "runOnceForAllItems" runOnceForAllItems, runOnceForEachItem
language options "javaScript" javaScript, pythonNative
jsCode string ""
pythonCode string ""

Example

NODE "code" AS "Code" {
  jsCode: "value",
  pythonCode: "value"
}