Everything is working fine so far. But things getting strange when I use my custom nodes. Consider that exact same workflow above, after the execution is done what we see in execution detail is:
As you can testVariable is passed to previous nodes as well (such as trigger node!) and also the last value overrides all the previous data with the same variable name.
What is happening here? Do you have any idea what cause this problem?
Thanks
I assume you are changing the incoming data in your custom node which is not allowed and which will mess up stuff very badly. The reason is that data is passed around as reference.
You can find it in the guide here.
Thanks @jan for the answer.
So if that’s the case I have to change “item.json[‘testVariable’] = 1” to something dynamic. I mean ‘testVariable’ must generate dynamically. Am I right?