diff --git a/packages/nodes-base/nodes/Function.node.ts b/packages/nodes-base/nodes/Function.node.ts index 3b542ad025..a167bf9a56 100644 --- a/packages/nodes-base/nodes/Function.node.ts +++ b/packages/nodes-base/nodes/Function.node.ts @@ -48,6 +48,7 @@ export class Function implements INodeType { // Define the global objects for the custom function const sandbox = { getNodeParameter: this.getNodeParameter, + getWorkflowStaticData: this.getWorkflowStaticData, helpers: this.helpers, items, // To be able to access data of other items diff --git a/packages/nodes-base/nodes/FunctionItem.node.ts b/packages/nodes-base/nodes/FunctionItem.node.ts index 253c4807fa..a3c76f7e6e 100644 --- a/packages/nodes-base/nodes/FunctionItem.node.ts +++ b/packages/nodes-base/nodes/FunctionItem.node.ts @@ -52,6 +52,7 @@ export class FunctionItem implements INodeType { return item.binary; }, getNodeParameter: this.getNodeParameter, + getWorkflowStaticData: this.getWorkflowStaticData, helpers: this.helpers, item: item.json, setBinaryData: (data: IBinaryKeyData) => {