Interface FunctionItemNodeParameters

Source
interface FunctionItemNodeParameters {
    functionCode?: string;
}

Properties§

Source§

readonly functionCode?: string

The JavaScript code to execute for each item Default: "// Code here will run once per input item.\n// More info and help: https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.functionitem/\n// Tip: You can use luxon for dates and $jmespath for querying JSON structures\n\n// Add a new field called 'myNewField' to the JSON of the item\nitem.myNewField = 1;\n\n// You can write logs to the browser console\nconsole.log('Done!');\n\nreturn item;" Type options: {"alwaysOpenEditWindow":true,"codeAutocomplete":"functionItem","editor":"jsEditor","rows":10}