Hello,
I want to convert all inject nodes in my flow to the function node so that I do not have to inject each node manually. I have tried to implement it but only "addVariable3" is being executed. What could be the problem?
I have shared the flow and a few snaps for reference.
If you want to return multiple messages I think you must specify multiple outputs in the node setup.
Further, you should return them as an array of messages.
Alternatively take a look at node.send(addFolder), node.send(AddVariable1) etc.