How to convert Old Code Node to New Code Node

Hello. I have a simple JS code that works fine with old legacy Code Node.

I try to convert it to the new Code Node but i can’t wrap my head around on how to procceed with the $imput.all().

The old Code Node is:

Any idea on how to re write the same functionality to the New Code Node?

Hi @Mulen
This should work. although it is complaining about the item variable, so you might want to do a simple rename of them.


Yes @BramKn Thank you it works. The red notices inside the Code Node confused me.

Thats simply because it doesnt like you using item as a variable.
You can simply rename that to for example record and it should stop complaining. :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.