In the older versions of n8n, on Python code nodes, I could access the output of a previous node using this kind of code:
prev_node_data = _items(‘prev_node’)[0][“json”][“some_key”]
The problem is in the newest version of n8n, with the Python (Native) (Beta), where the underscore “_” is not supported:
The native Python option does not support _ syntax and helpers, except for _items in all-items mode and _item in per-item mode
So I need to change my codes, but IDK how.
Any information available about this?
What is the error message (if any)?
‘list’ object is not callable
Please share your workflow
This is an example node that used to work before, but now it gives me the error message.
In the previous version, if I needed to access the output of a previous node, I just replace the “$” symbol from the JavaScript syntaxis with the underscore for Python. Now, with the deprecation of the underscore, that’s impossible.
Second this. I’m experiencing the same problem. I can’t figure out how to reference the output of previous nodes. whats described in the documentation is out of date and doesn’t work.