Describe the problem/error/question
I’m testing $evaluateExpression in n8n.
The goal:
-
Store some JSON data (e.g.
{"name":"John"}). -
Store an expression string (e.g.
"hi {{ $('set data').item.json.name }}"). -
Later dynamically evaluate the expression string using
$evaluateExpressionin JS code block.
In production, the data and expression will both be strings coming from upstream nodes, so I need $evaluateExpression to resolve them dynamically.
What is the error message (if any)?
None
Please share your workflow
Share the output returned by the last node
{“result”: null}
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: