I have a problem with CODE Module

Hello, I’m French and Sorry for my English.

I found this WorkFlow : https://n8n.io/workflows/766-create-multiple-json-items-from-an-array/
This workflow is functional. However, i tried to create this workflow in the new workspace.
However the Module CODE is different between the one n8n library and the workflow used. Look the screenshot. It’s not a same. When i create a JSON code with the CODE module in the n8n library … it’s not functionnal … How to find the same module so that there are no errors ?

Information on your n8n setup

  • n8n version: Version 1.10.0 (1.10.0)
  • **Running n8n via desktop app

Hi @justind1989

Welcome to the community!

You need to put that array inside the json object within an object so within { }

Hello BramKn, OK but why the Module is different ?
The “Mode” Section is not appear & the Module Name is not the same.

Sorry no idea what you are asking.
The node is called Code, and can be changed
The mode is set to run once for all items. So it will run only once and process all items at the same time.

Hi @justind1989

I think you’re referring to the observation for differences between Function and Code node. Function node is a legacy node and has been renamed to Code node with improvement and extra option. That’s why you’re seeing the difference on both nodes.


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