AutomationFlowsGeneral › Double Values with n8n Code Node (Workflow)

Double Values with n8n Code Node (Workflow)

Original n8n title: Smoke Test - Code Node

Smoke Test - Code Node. Uses start. Manual trigger; 3 nodes.

Manual trigger★★★★☆ complexity3 nodesStart
General Trigger: Manual Nodes: 3 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Smoke Test - Code Node",
  "nodes": [
    {
      "parameters": {},
      "id": "start",
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        100,
        300
      ]
    },
    {
      "parameters": {
        "assignments": [
          {
            "name": "items",
            "value": "[{\"x\":1},{\"x\":2}]"
          }
        ]
      },
      "id": "set1",
      "name": "Set Items",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        300,
        300
      ]
    },
    {
      "parameters": {
        "jsCode": "var result = { original: $json.items, processed: true }; result;"
      },
      "id": "function1",
      "name": "Double Values",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        500,
        300
      ]
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Set Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Items": {
      "main": [
        [
          {
            "node": "Double Values",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Smoke Test - Code Node. Uses start. Manual trigger; 3 nodes.

Source: https://github.com/neul-labs/m9m/blob/main/test-workflows/smoke/code-node.json — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

TheHive[v4]:Alert:create update get getAll promote merge:Case:create update get getAll:Observable:create update get search getAll:Task:create update get search getAll:Log:create get getAll. Uses start

Start, The Hive
General

uProc:Internet:*;. Uses start, uproc. Manual trigger; 41 nodes.

Start, Uproc
General

uProc:Audio:*:company:*;. Uses start, uproc. Manual trigger; 36 nodes.

Start, Uproc
General

Trello:Board:*List:*Card:*Label:*CardComment:*Attachment:*CheckList:*. Uses start, trello. Manual trigger; 35 nodes.

Start, Trello
General

ClickUp:Task:create update member getAll get delete:List:create update customFields member getAll get delete. Uses start, clickUp. Manual trigger; 30 nodes.

Start, ClickUp