Hello everyone. How do I declare a variable from a previous node?
For example:
I have 10 code nodes configured in JavaScript in the workflow, the second node return an array with five objects, in the tenth node I want to declare that array with these five objects.
How do I set the variable? Like this: let array1 = $(‘Second Node’); ?
I am not sure why you flagged your post but I have restored it…
You can use a set node if you wanted to create a variable and use an expression to reference the output from a previous node or you can skip that and use the expression directly in a field somewhere.