getWorkflowStaticData is not working with code node

Describe the problem/error/question

the new code node is not working with getWorkflowStaticData(‘global’).

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 0.234.1
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: MAC

There seems to be a typo in your code.
Can you please try replacing getWorkflowStaticata('global') with $getWorkflowStaticData('global')?

1 Like

@netroy
Fixed but raised another issue

May you please check this workflow

hope you got to know what I need.
Thanks in advance

The error message suggests that you need to replace item.propertyName with item.json.propertyName.

Thanks, it worked now.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.