Say I have NodeX
that outputs JSON data, and that I have a Move Binary Data to convert the JSON data into Binary data.
Directly Connected Nodes
If I have my Move Binary Data directly connected to NodeX, I can set JSON to Binary
and put data
in Destination Key. The JSON is converted to binary correctly.
Here is a screenshot showing what that looks like:
You can see it converts properly.
Nodes Not Directly Connected Due To Nodes In Between
However, if I have a few nodes in between NodeX and Move Binary Data, this does not work. The data
in Destination Key is pulled from the immediately prior node to Move Binary Data. I tried to work around this by creating an expression to get the data from NodeX.
With a few nodes between the two, I try to use an expression to get the data from NodeX into Move Binary Data. If I try either {{$node["NodeX"].json}}
or {{$node["NodeX"].data}}
in the Destination Key, I can see the data — but it’s an Object. Move Binary Data can’t convert the Object to Binary
Here is a screenshot of how it looks in the Move Binary Data node’s expression editor (in the screenshot, NodeX
is equivalent to the node IF: Symbol
):
My question is:
How can I get the data of NodeX as an array, not an Object?