first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled

This commit is contained in:
2026-03-17 16:22:57 +03:30
commit 3d5eaf9445
15349 changed files with 2847338 additions and 0 deletions
@@ -0,0 +1,5 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
describe('Test ItemLists Node', () => {
new NodeTestHarness().setupTests();
});
@@ -0,0 +1,244 @@
{
"name": "itemLists test",
"nodes": [
{
"parameters": {},
"id": "6c90bf81-0c0e-4c5f-9f0c-297f06d9668a",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [-440, 260]
},
{
"parameters": {
"data": [
{
"id": 1,
"char": "a"
},
{
"id": 2,
"char": "b"
},
{
"id": 3,
"char": "c"
},
{
"id": 4,
"char": "d"
},
{
"id": 5,
"char": "e"
}
]
},
"id": "2e0011d5-c6a0-4a40-ab8c-9d011cde40d5",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-180, 260]
},
{
"parameters": {
"operation": "aggregateItems",
"fieldsToAggregate": {
"fieldToAggregate": [
{
"fieldToAggregate": "id",
"renameField": true,
"outputFieldName": "data"
}
]
},
"options": {}
},
"id": "d95ca3a3-fb43-4037-846e-b87103dec1a3",
"name": "fields aggregate and rename",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [80, 0]
},
{
"parameters": {
"operation": "aggregateItems",
"aggregate": "aggregateAllItemData"
},
"id": "4c1bc7be-7611-418d-aad5-8642b1cc0781",
"name": "aggregate all fields into list",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [80, 320]
},
{
"parameters": {
"operation": "aggregateItems",
"aggregate": "aggregateAllItemData",
"include": "specifiedFields",
"fieldsToInclude": {
"fields": [
{
"fieldName": "id"
}
]
}
},
"id": "951de23c-2018-437b-961e-8ae7d7fd1a82",
"name": "aggregate selected fields into list",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [80, 500]
},
{
"parameters": {
"operation": "aggregateItems",
"aggregate": "aggregateAllItemData",
"destinationFieldName": "output",
"include": "allFieldsExcept",
"fieldsToExclude": {
"fields": [
{
"fieldName": "char"
}
]
}
},
"id": "b62c02ee-5edb-473d-a755-7fb8700641fa",
"name": "aggregate all fields except selected into list",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [80, 700]
}
],
"pinData": {
"fields aggregate and rename": [
{
"json": {
"data": [1, 2, 3, 4, 5]
}
}
],
"aggregate all fields into list": [
{
"json": {
"data": [
{
"id": 1,
"char": "a"
},
{
"id": 2,
"char": "b"
},
{
"id": 3,
"char": "c"
},
{
"id": 4,
"char": "d"
},
{
"id": 5,
"char": "e"
}
]
}
}
],
"aggregate selected fields into list": [
{
"json": {
"data": [
{
"id": 1
},
{
"id": 2
},
{
"id": 3
},
{
"id": 4
},
{
"id": 5
}
]
}
}
],
"aggregate all fields except selected into list": [
{
"json": {
"output": [
{
"id": 1
},
{
"id": 2
},
{
"id": 3
},
{
"id": 4
},
{
"id": 5
}
]
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "fields aggregate and rename",
"type": "main",
"index": 0
},
{
"node": "aggregate all fields into list",
"type": "main",
"index": 0
},
{
"node": "aggregate selected fields into list",
"type": "main",
"index": 0
},
{
"node": "aggregate all fields except selected into list",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"versionId": "9bf7c52b-b118-4dad-bfef-7db41828393b",
"id": "105",
"meta": {
"instanceId": "36203ea1ce3cef713fa25999bd9874ae26b9e4c2c3a90a365f2882a154d031d0"
},
"tags": []
}
@@ -0,0 +1,145 @@
{
"name": "itemsList concatenate paired fix",
"nodes": [
{
"parameters": {},
"id": "37256a71-67fe-4643-b4c7-e670096b68fc",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
620,
540
]
},
{
"parameters": {
"category": "randomData",
"randomDataSeed": "n8n",
"randomDataCount": 3
},
"id": "0518c1d3-2e6d-40c6-8225-d89ec28ed28d",
"name": "DebugHelper",
"type": "n8n-nodes-base.debugHelper",
"typeVersion": 1,
"position": [
1000,
540
]
},
{
"parameters": {
"operation": "concatenateItems",
"aggregate": "aggregateAllItemData"
},
"id": "7866056b-a7c1-41e2-b3b7-301cb21d95d4",
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
"position": [
1200,
540
]
},
{
"parameters": {
"fields": {
"values": [
{
"name": "foo",
"stringValue": "bar"
}
]
},
"options": {}
},
"id": "191ec112-65b6-4e4a-bf11-b63ab7e96f68",
"name": "Edit Fields",
"type": "n8n-nodes-base.set",
"typeVersion": 3,
"position": [
800,
540
]
},
{
"parameters": {
"customerId": "1",
"message": "={{ $('Edit Fields').item.json.foo }}"
},
"id": "4a3d6844-5044-4570-912a-af3f32efa871",
"name": "Customer Messenger (n8n training)",
"type": "n8n-nodes-base.n8nTrainingCustomerMessenger",
"typeVersion": 1,
"position": [
1400,
540
]
}
],
"pinData": {
"Customer Messenger (n8n training)": [
{
"json": {
"output": "Sent message to customer 1: bar"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"DebugHelper": {
"main": [
[
{
"node": "Item Lists",
"type": "main",
"index": 0
}
]
]
},
"Item Lists": {
"main": [
[
{
"node": "Customer Messenger (n8n training)",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "DebugHelper",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "d17719c9-c625-4419-8b3c-d4cfaeffc312",
"id": "vXdwDVBSRxZxMrcv",
"meta": {
"instanceId": "b888bd11cd1ddbb95450babf3e199556799d999b896f650de768b8370ee50363"
},
"tags": []
}
@@ -0,0 +1,113 @@
{
"name": "itemLists test",
"nodes": [
{
"parameters": {},
"id": "bd7af0bb-de39-44b4-ac11-eb1d22f5e8d7",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [260, 180]
},
{
"parameters": {
"data": [
{
"entry": 1
},
{
"entry": 2
},
{
"entry": 3
},
{
"entry": 4
},
{
"entry": 5
}
]
},
"id": "21185d7a-f0c1-49a0-9c2d-f0f198ceea7e",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [520, 180]
},
{
"parameters": {
"operation": "limit"
},
"id": "7cc02cc4-1f5f-489a-81e2-4c96b3bdf221",
"name": "Item Lists limit first",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [740, 80]
},
{
"parameters": {
"operation": "limit",
"keep": "lastItems"
},
"id": "2bf79d53-7a0b-4716-aa09-55ad43d306ae",
"name": "Item Lists limit last",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [740, 300]
}
],
"pinData": {
"Item Lists limit first": [
{
"json": {
"entry": 1
}
}
],
"Item Lists limit last": [
{
"json": {
"entry": 5
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Item Lists limit first",
"type": "main",
"index": 0
},
{
"node": "Item Lists limit last",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"versionId": "5036d554-1ba4-4b5f-ba9f-1de6df09e807",
"id": "105",
"meta": {
"instanceId": "36203ea1ce3cef713fa25999bd9874ae26b9e4c2c3a90a365f2882a154d031d0"
},
"tags": []
}
@@ -0,0 +1,203 @@
{
"name": "itemLists test",
"nodes": [
{
"parameters": {},
"id": "c36aef04-b8ee-4f50-938b-ec64c4f78c97",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [860, 340]
},
{
"parameters": {
"data": [
{
"entry": 1,
"data": "a",
"char": "a"
},
{
"entry": 1,
"data": "b",
"char": "a"
},
{
"entry": 1,
"data": "a",
"char": "a"
},
{
"entry": 4,
"data": "d",
"char": "a"
},
{
"entry": 5,
"data": "e",
"char": "a"
}
]
},
"id": "79f44614-aaf8-421a-9cad-2d92445a5dd5",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1120, 340]
},
{
"parameters": {
"operation": "removeDuplicates",
"compare": "allFieldsExcept",
"fieldsToExclude": {
"fields": [
{
"fieldName": "data"
}
]
},
"options": {}
},
"id": "c1f69c55-caba-4d44-b209-445f4bef3756",
"name": "Item Lists remove duplicates exclude",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [1320, 340]
},
{
"parameters": {
"operation": "removeDuplicates",
"compare": "selectedFields",
"fieldsToCompare": {
"fields": [
{
"fieldName": "char"
}
]
},
"options": {
"removeOtherFields": true
}
},
"id": "7b9f0a7c-25f0-4d1f-b30f-666ddcaf5d98",
"name": "Item Lists remove duplicates selected",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [1340, 560]
},
{
"parameters": {
"operation": "removeDuplicates"
},
"id": "9762644f-34cb-48ca-b8a3-e0aa0ca05d4a",
"name": "Item Lists remove duplicates",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [1320, 120]
}
],
"pinData": {
"Item Lists remove duplicates selected": [
{
"json": {
"char": "a"
}
}
],
"Item Lists remove duplicates exclude": [
{
"json": {
"entry": 1,
"data": "a",
"char": "a"
}
},
{
"json": {
"entry": 4,
"data": "d",
"char": "a"
}
},
{
"json": {
"entry": 5,
"data": "e",
"char": "a"
}
}
],
"Item Lists remove duplicates": [
{
"json": {
"entry": 1,
"data": "a",
"char": "a"
}
},
{
"json": {
"entry": 1,
"data": "b",
"char": "a"
}
},
{
"json": {
"entry": 4,
"data": "d",
"char": "a"
}
},
{
"json": {
"entry": 5,
"data": "e",
"char": "a"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Item Lists remove duplicates",
"type": "main",
"index": 0
},
{
"node": "Item Lists remove duplicates exclude",
"type": "main",
"index": 0
},
{
"node": "Item Lists remove duplicates selected",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"versionId": "9b7b1482-ceaa-4878-8091-d6fbfbe58a79",
"id": "105",
"meta": {
"instanceId": "36203ea1ce3cef713fa25999bd9874ae26b9e4c2c3a90a365f2882a154d031d0"
},
"tags": []
}
@@ -0,0 +1,320 @@
{
"name": "My workflow 63",
"nodes": [
{
"parameters": {},
"id": "5f174c07-00e5-49fc-854f-b1571d35c5a3",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [960, 520]
},
{
"parameters": {
"data": [
{
"mixed": "1",
"match": "foo"
},
{
"mixed": 1,
"match": "foo"
},
{
"mixed": true,
"match": "foo"
},
{
"mixed": false,
"match": "foo"
},
{
"mixed": {},
"match": "foo"
},
{
"mixed": [],
"match": "foo"
},
{
"mixed": "1",
"match": "foo"
},
{
"mixed": 1,
"match": "foo"
},
{
"mixed": true,
"match": "foo"
},
{
"mixed": false,
"match": "foo"
},
{
"mixed": {},
"match": "foo"
},
{
"mixed": [],
"match": "foo"
}
]
},
"id": "2aa52759-f7a5-4a60-bf2e-9c1e3d2821dc",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1160, 520]
},
{
"parameters": {
"operation": "removeDuplicates"
},
"id": "90acc956-989f-4008-a3df-fe0162762b24",
"name": "Remove duplicates",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3.1,
"position": [1440, 160]
},
{
"parameters": {
"operation": "removeDuplicates",
"compare": "selectedFields",
"fieldsToCompare": "mixed",
"options": {}
},
"id": "6c39a6bb-b042-4d4c-828c-52699f178828",
"name": "Remove duplicates by mixed",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3.1,
"position": [1440, 340]
},
{
"parameters": {
"operation": "removeDuplicates",
"compare": "selectedFields",
"fieldsToCompare": "match",
"options": {}
},
"id": "d3783be2-6705-44d3-b481-72e7a9dba458",
"name": "Remove duplicates by match",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3.1,
"position": [1440, 520]
},
{
"parameters": {
"operation": "removeDuplicates",
"compare": "allFieldsExcept",
"fieldsToExclude": "mixed",
"options": {}
},
"id": "e634e39d-0ce6-477f-97cc-69eec2dd981b",
"name": "Remove duplicates except by mixed",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3.1,
"position": [1440, 720]
},
{
"parameters": {
"operation": "removeDuplicates",
"compare": "allFieldsExcept",
"fieldsToExclude": "match",
"options": {}
},
"id": "0a1bbc9a-3505-413c-ae86-c60dc60b5909",
"name": "Remove duplicates except by match",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3.1,
"position": [1440, 940]
}
],
"pinData": {
"Remove duplicates": [
{
"json": {
"mixed": "1",
"match": "foo"
}
},
{
"json": {
"mixed": 1,
"match": "foo"
}
},
{
"json": {
"mixed": true,
"match": "foo"
}
},
{
"json": {
"mixed": false,
"match": "foo"
}
},
{
"json": {
"mixed": {},
"match": "foo"
}
},
{
"json": {
"mixed": [],
"match": "foo"
}
}
],
"Remove duplicates by mixed": [
{
"json": {
"mixed": "1",
"match": "foo"
}
},
{
"json": {
"mixed": 1,
"match": "foo"
}
},
{
"json": {
"mixed": true,
"match": "foo"
}
},
{
"json": {
"mixed": false,
"match": "foo"
}
},
{
"json": {
"mixed": {},
"match": "foo"
}
},
{
"json": {
"mixed": [],
"match": "foo"
}
}
],
"Remove duplicates by match": [
{
"json": {
"mixed": "1",
"match": "foo"
}
}
],
"Remove duplicates except by mixed": [
{
"json": {
"mixed": "1",
"match": "foo"
}
}
],
"Remove duplicates except by match": [
{
"json": {
"mixed": "1",
"match": "foo"
}
},
{
"json": {
"mixed": 1,
"match": "foo"
}
},
{
"json": {
"mixed": true,
"match": "foo"
}
},
{
"json": {
"mixed": false,
"match": "foo"
}
},
{
"json": {
"mixed": {},
"match": "foo"
}
},
{
"json": {
"mixed": [],
"match": "foo"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Remove duplicates",
"type": "main",
"index": 0
},
{
"node": "Remove duplicates by mixed",
"type": "main",
"index": 0
},
{
"node": "Remove duplicates by match",
"type": "main",
"index": 0
},
{
"node": "Remove duplicates except by mixed",
"type": "main",
"index": 0
},
{
"node": "Remove duplicates except by match",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "c657bc6f-02bc-4e1b-b49a-d1dca8b13256",
"id": "cHSnZsTtYIJj3gL2",
"meta": {
"instanceId": "104a4d08d8897b8bdeb38aaca515021075e0bd8544c983c2bb8c86e6a8e6081c"
},
"tags": []
}
@@ -0,0 +1,393 @@
{
"name": "itemLists test",
"nodes": [
{
"parameters": {},
"id": "6c90bf81-0c0e-4c5f-9f0c-297f06d9668a",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [-400, 400]
},
{
"parameters": {
"data": {
"data": [
{
"id": 3,
"char": "c"
},
{
"id": 4,
"char": "d"
},
{
"id": 5,
"char": "e"
},
{
"id": 1,
"char": "a"
},
{
"id": 2,
"char": "b"
}
],
"data2": [
{
"text": "foo"
}
],
"data3": [
{
"text": "bar"
}
]
}
},
"id": "2e0011d5-c6a0-4a40-ab8c-9d011cde40d5",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-180, 400]
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"id": "e7eac465-8fe6-498c-9942-ebd47df537c1",
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [80, 160]
},
{
"parameters": {
"fieldToSplitOut": "data",
"include": "allOtherFields",
"options": {}
},
"id": "09b7fe15-dbad-4ca6-bf1e-3093139d14e5",
"name": "Item Lists1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [80, 320]
},
{
"parameters": {
"fieldToSplitOut": "data",
"include": "selectedOtherFields",
"fieldsToInclude": {
"fields": [
{
"fieldName": "data3"
}
]
},
"options": {}
},
"id": "7ea63dc7-8141-4233-af47-9894919c7fe4",
"name": "Item Lists2",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [80, 480]
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {
"destinationFieldName": "output"
}
},
"id": "89c3c1b4-9577-480a-931f-3b34450b23cb",
"name": "Item Lists3",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [80, 660]
}
],
"pinData": {
"Item Lists": [
{
"json": {
"id": 3,
"char": "c"
}
},
{
"json": {
"id": 4,
"char": "d"
}
},
{
"json": {
"id": 5,
"char": "e"
}
},
{
"json": {
"id": 1,
"char": "a"
}
},
{
"json": {
"id": 2,
"char": "b"
}
}
],
"Item Lists1": [
{
"json": {
"data2": [
{
"text": "foo"
}
],
"data3": [
{
"text": "bar"
}
],
"data": {
"id": 3,
"char": "c"
}
}
},
{
"json": {
"data2": [
{
"text": "foo"
}
],
"data3": [
{
"text": "bar"
}
],
"data": {
"id": 4,
"char": "d"
}
}
},
{
"json": {
"data2": [
{
"text": "foo"
}
],
"data3": [
{
"text": "bar"
}
],
"data": {
"id": 5,
"char": "e"
}
}
},
{
"json": {
"data2": [
{
"text": "foo"
}
],
"data3": [
{
"text": "bar"
}
],
"data": {
"id": 1,
"char": "a"
}
}
},
{
"json": {
"data2": [
{
"text": "foo"
}
],
"data3": [
{
"text": "bar"
}
],
"data": {
"id": 2,
"char": "b"
}
}
}
],
"Item Lists2": [
{
"json": {
"data3": [
{
"text": "bar"
}
],
"data": {
"id": 3,
"char": "c"
}
}
},
{
"json": {
"data3": [
{
"text": "bar"
}
],
"data": {
"id": 4,
"char": "d"
}
}
},
{
"json": {
"data3": [
{
"text": "bar"
}
],
"data": {
"id": 5,
"char": "e"
}
}
},
{
"json": {
"data3": [
{
"text": "bar"
}
],
"data": {
"id": 1,
"char": "a"
}
}
},
{
"json": {
"data3": [
{
"text": "bar"
}
],
"data": {
"id": 2,
"char": "b"
}
}
}
],
"Item Lists3": [
{
"json": {
"output": {
"id": 3,
"char": "c"
}
}
},
{
"json": {
"output": {
"id": 4,
"char": "d"
}
}
},
{
"json": {
"output": {
"id": 5,
"char": "e"
}
}
},
{
"json": {
"output": {
"id": 1,
"char": "a"
}
}
},
{
"json": {
"output": {
"id": 2,
"char": "b"
}
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Item Lists",
"type": "main",
"index": 0
},
{
"node": "Item Lists1",
"type": "main",
"index": 0
},
{
"node": "Item Lists2",
"type": "main",
"index": 0
},
{
"node": "Item Lists3",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"versionId": "9230f580-6f41-47c9-9949-bf258fc3fa47",
"id": "105",
"meta": {
"instanceId": "36203ea1ce3cef713fa25999bd9874ae26b9e4c2c3a90a365f2882a154d031d0"
},
"tags": []
}
@@ -0,0 +1,414 @@
{
"name": "itemList split Object",
"nodes": [
{
"parameters": {},
"id": "ade46a75-ab57-48c6-886b-0c118f5ef1c6",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [520, 800]
},
{
"parameters": {
"fieldToSplitOut": "data",
"include": "selectedOtherFields",
"fieldsToInclude": {
"fields": [
{
"fieldName": "tag"
}
]
},
"options": {}
},
"id": "45e1d7a3-d6e8-4b69-a68a-1038db13be4c",
"name": "Item Lists1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2,
"position": [1120, 340]
},
{
"parameters": {
"data": {
"data": {
"entry1": {
"id": 1,
"info": "some info 1"
},
"entry2": {
"id": 2,
"info": "some info 2"
},
"entry3": {
"id": 3,
"info": "some info 3"
}
},
"data2": ["a", "b", "c"],
"data3": {
"a": 1,
"b": 2,
"c": 3
},
"data4": null,
"tag": "bar"
}
},
"id": "faa78fac-468d-42b8-96e9-0fb62c312da3",
"name": "Code1",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [760, 800]
},
{
"parameters": {},
"id": "5baaf321-7e89-473d-a313-7cb90b3f13b3",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 340]
},
{
"parameters": {
"fieldToSplitOut": "data3",
"include": "allOtherFields",
"options": {
"destinationFieldName": "extracted"
}
},
"id": "a786bea9-eb29-4c6d-aea6-a22aee622bc6",
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2,
"position": [1120, 720]
},
{
"parameters": {},
"id": "0521a24b-c74a-48fa-ae50-48a242b97806",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 720]
},
{
"parameters": {
"fieldToSplitOut": "data3",
"options": {}
},
"id": "0c1c8827-72ab-4738-918c-d529e66505c6",
"name": "Item Lists2",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2,
"position": [1120, 540]
},
{
"parameters": {},
"id": "4c0dca36-c2ae-4d40-8952-0e728ac93fa3",
"name": "No Operation, do nothing2",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 540]
},
{
"parameters": {
"fieldToSplitOut": "data2",
"options": {}
},
"id": "b2031380-b2a8-426d-8f7a-ab072d23b979",
"name": "Item Lists3",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2,
"position": [1120, 920]
},
{
"parameters": {},
"id": "617f7259-beee-42f1-bba2-4e75a83fe369",
"name": "No Operation, do nothing3",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 920]
},
{
"parameters": {
"fieldToSplitOut": "data4",
"options": {}
},
"id": "8909b8eb-e5a9-4436-8e62-09d8c9670ac1",
"name": "Item Lists4",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2,
"position": [1120, 1140],
"continueOnFail": true
},
{
"parameters": {},
"id": "a9278f90-8ad9-42dc-85b6-28bf1b6764b7",
"name": "No Operation, do nothing4",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 1140]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"tag": "bar",
"data": {
"id": 1,
"info": "some info 1"
}
}
},
{
"json": {
"tag": "bar",
"data": {
"id": 2,
"info": "some info 2"
}
}
},
{
"json": {
"tag": "bar",
"data": {
"id": 3,
"info": "some info 3"
}
}
}
],
"No Operation, do nothing2": [
{
"json": {
"data3": 1
}
},
{
"json": {
"data3": 2
}
},
{
"json": {
"data3": 3
}
}
],
"No Operation, do nothing1": [
{
"json": {
"data": {
"entry1": {
"id": 1,
"info": "some info 1"
},
"entry2": {
"id": 2,
"info": "some info 2"
},
"entry3": {
"id": 3,
"info": "some info 3"
}
},
"data2": ["a", "b", "c"],
"data4": null,
"tag": "bar",
"extracted": 1
}
},
{
"json": {
"data": {
"entry1": {
"id": 1,
"info": "some info 1"
},
"entry2": {
"id": 2,
"info": "some info 2"
},
"entry3": {
"id": 3,
"info": "some info 3"
}
},
"data2": ["a", "b", "c"],
"data4": null,
"tag": "bar",
"extracted": 2
}
},
{
"json": {
"data": {
"entry1": {
"id": 1,
"info": "some info 1"
},
"entry2": {
"id": 2,
"info": "some info 2"
},
"entry3": {
"id": 3,
"info": "some info 3"
}
},
"data2": ["a", "b", "c"],
"data4": null,
"tag": "bar",
"extracted": 3
}
}
],
"No Operation, do nothing3": [
{
"json": {
"data2": "a"
}
},
{
"json": {
"data2": "b"
}
},
{
"json": {
"data2": "c"
}
}
],
"No Operation, do nothing4": [
{
"json": {
"data": {
"entry1": {
"id": 1,
"info": "some info 1"
},
"entry2": {
"id": 2,
"info": "some info 2"
},
"entry3": {
"id": 3,
"info": "some info 3"
}
},
"data2": ["a", "b", "c"],
"data3": {
"a": 1,
"b": 2,
"c": 3
},
"data4": null,
"tag": "bar"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code1",
"type": "main",
"index": 0
}
]
]
},
"Code1": {
"main": [
[
{
"node": "Item Lists1",
"type": "main",
"index": 0
},
{
"node": "Item Lists2",
"type": "main",
"index": 0
},
{
"node": "Item Lists",
"type": "main",
"index": 0
},
{
"node": "Item Lists3",
"type": "main",
"index": 0
},
{
"node": "Item Lists4",
"type": "main",
"index": 0
}
]
]
},
"Item Lists1": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
},
"Item Lists": {
"main": [
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
]
]
},
"Item Lists2": {
"main": [
[
{
"node": "No Operation, do nothing2",
"type": "main",
"index": 0
}
]
]
},
"Item Lists3": {
"main": [
[
{
"node": "No Operation, do nothing3",
"type": "main",
"index": 0
}
]
]
},
"Item Lists4": {
"main": [
[
{
"node": "No Operation, do nothing4",
"type": "main",
"index": 0
}
]
]
}
},
"active": false
}
@@ -0,0 +1,342 @@
{
"name": "itemLists test",
"nodes": [
{
"parameters": {},
"id": "6c90bf81-0c0e-4c5f-9f0c-297f06d9668a",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [-400, 420]
},
{
"parameters": {
"data": [
{
"category": "red",
"text": "foo",
"char": "a",
"value": 1
},
{
"category": "blue",
"text": "spam",
"char": "b",
"value": 2
},
{
"category": "green",
"text": "bar",
"char": "c",
"value": 3
},
{
"category": "red",
"text": "foo",
"char": "a",
"value": 4
},
{
"category": "red",
"text": "bar",
"char": "a",
"value": 5
},
{
"category": "blue",
"text": "foo",
"char": "a",
"value": 6
},
{
"category": "blue",
"text": "foo",
"char": "a",
"value": 7
}
]
},
"id": "2e0011d5-c6a0-4a40-ab8c-9d011cde40d5",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-180, 420]
},
{
"parameters": {
"operation": "summarize",
"fieldsToSummarize": {
"values": [
{
"aggregation": "append",
"field": "char"
},
{
"field": "char"
},
{
"aggregation": "countUnique",
"field": "char"
},
{
"aggregation": "concatenate",
"field": "char",
"separateBy": ", "
}
]
},
"fieldsToSplitBy": "category, text",
"options": {}
},
"id": "1dedf668-b766-4283-9efd-90db28404f0b",
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [40, 220]
},
{
"parameters": {
"operation": "summarize",
"fieldsToSummarize": {
"values": [
{
"aggregation": "append",
"field": "char"
},
{
"field": "char"
},
{
"aggregation": "countUnique",
"field": "char"
},
{
"aggregation": "concatenate",
"field": "char",
"separateBy": ", "
}
]
},
"fieldsToSplitBy": "category, text",
"options": {
"outputFormat": "singleItem"
}
},
"id": "8fd0f819-226c-4b29-87c7-b724dd72605c",
"name": "Item Lists1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [40, 420]
},
{
"parameters": {
"operation": "summarize",
"fieldsToSummarize": {
"values": [
{
"aggregation": "average",
"field": "value"
},
{
"aggregation": "max",
"field": "value"
},
{
"aggregation": "min",
"field": "value"
},
{
"aggregation": "max",
"field": "value"
},
{
"aggregation": "sum",
"field": "value"
},
{
"aggregation": "append",
"field": "value"
}
]
},
"fieldsToSplitBy": "category",
"options": {}
},
"id": "33e0367d-42d9-4f82-8fc8-8e2019aa3734",
"name": "Item Lists2",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [40, 620]
}
],
"pinData": {
"Item Lists": [
{
"json": {
"category": "red",
"text": "foo",
"appended_char": ["a", "a"],
"count_char": 2,
"unique_count_char": 1,
"concatenated_char": "a, a"
}
},
{
"json": {
"category": "red",
"text": "bar",
"appended_char": ["a"],
"count_char": 1,
"unique_count_char": 1,
"concatenated_char": "a"
}
},
{
"json": {
"category": "blue",
"text": "spam",
"appended_char": ["b"],
"count_char": 1,
"unique_count_char": 1,
"concatenated_char": "b"
}
},
{
"json": {
"category": "blue",
"text": "foo",
"appended_char": ["a", "a"],
"count_char": 2,
"unique_count_char": 1,
"concatenated_char": "a, a"
}
},
{
"json": {
"category": "green",
"text": "bar",
"appended_char": ["c"],
"count_char": 1,
"unique_count_char": 1,
"concatenated_char": "c"
}
}
],
"Item Lists1": [
{
"json": {
"red": {
"foo": {
"appended_char": ["a", "a"],
"count_char": 2,
"unique_count_char": 1,
"concatenated_char": "a, a"
},
"bar": {
"appended_char": ["a"],
"count_char": 1,
"unique_count_char": 1,
"concatenated_char": "a"
}
},
"blue": {
"spam": {
"appended_char": ["b"],
"count_char": 1,
"unique_count_char": 1,
"concatenated_char": "b"
},
"foo": {
"appended_char": ["a", "a"],
"count_char": 2,
"unique_count_char": 1,
"concatenated_char": "a, a"
}
},
"green": {
"bar": {
"appended_char": ["c"],
"count_char": 1,
"unique_count_char": 1,
"concatenated_char": "c"
}
}
}
}
],
"Item Lists2": [
{
"json": {
"category": "red",
"average_value": 3.3333333333333335,
"max_value": 5,
"min_value": 1,
"sum_value": 10,
"appended_value": [1, 4, 5]
}
},
{
"json": {
"category": "blue",
"average_value": 5,
"max_value": 7,
"min_value": 2,
"sum_value": 15,
"appended_value": [2, 6, 7]
}
},
{
"json": {
"category": "green",
"average_value": 3,
"max_value": 3,
"min_value": 3,
"sum_value": 3,
"appended_value": [3]
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Item Lists",
"type": "main",
"index": 0
},
{
"node": "Item Lists1",
"type": "main",
"index": 0
},
{
"node": "Item Lists2",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"versionId": "bee0d911-844d-4fe6-bd52-a1716dd74dd8",
"id": "105",
"meta": {
"instanceId": "36203ea1ce3cef713fa25999bd9874ae26b9e4c2c3a90a365f2882a154d031d0"
},
"tags": []
}
@@ -0,0 +1,723 @@
{
"name": "My workflow 4",
"nodes": [
{
"parameters": {},
"id": "037f477b-6775-47e9-b735-71c1d984ceb6",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [440, 1300]
},
{
"parameters": {
"fieldToSplitOut": "dataa",
"options": {}
},
"id": "b9f156e1-ffb0-4121-abf3-8813b8cc738e",
"name": "Item Lists4",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2,
"position": [920, 260],
"continueOnFail": true
},
{
"parameters": {
"fieldToSplitOut": "dataa",
"options": {}
},
"id": "c8ed5ebc-18f2-4d94-8f19-c019278e5d0d",
"name": "Item Lists5",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2.1,
"position": [920, 420],
"alwaysOutputData": true
},
{
"parameters": {},
"id": "e2c1fc7c-3333-4849-a084-dac2c6edc1a7",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1140, 240]
},
{
"parameters": {},
"id": "c8c9727d-232d-4ae2-a7cc-3dcf00b32474",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1140, 420]
},
{
"parameters": {
"operation": "aggregateItems",
"fieldsToAggregate": {
"fieldToAggregate": [
{
"fieldToAggregate": "idd"
}
]
},
"options": {}
},
"id": "88c02d0a-0680-4564-8b2e-48ebfabe4864",
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2,
"position": [920, 1080],
"continueOnFail": true
},
{
"parameters": {
"operation": "aggregateItems",
"fieldsToAggregate": {
"fieldToAggregate": [
{
"fieldToAggregate": "idd"
}
]
},
"options": {}
},
"id": "327ace17-571f-4aea-98bf-3cad71449f56",
"name": "Item Lists6",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2.1,
"position": [920, 1240]
},
{
"parameters": {},
"id": "38a5b83a-0f71-4788-983b-9f7719d59190",
"name": "No Operation, do nothing2",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1140, 1060]
},
{
"parameters": {},
"id": "aa76c9fb-5a15-4239-903f-570aeca80453",
"name": "No Operation, do nothing3",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1140, 1240]
},
{
"parameters": {
"operation": "summarize",
"fieldsToSummarize": {
"values": [
{
"field": "idd"
}
]
},
"options": {}
},
"id": "246e42b2-62ab-4ef4-acf1-031ac6236052",
"name": "Item Lists7",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2,
"position": [920, 1880],
"continueOnFail": true
},
{
"parameters": {
"operation": "summarize",
"fieldsToSummarize": {
"values": [
{
"field": "idd"
}
]
},
"options": {}
},
"id": "3145a0dd-035a-477b-8d5a-98a2106b46c8",
"name": "Item Lists8",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2.1,
"position": [920, 2040]
},
{
"parameters": {},
"id": "71bc9c78-cf27-4628-9f64-19a9bef353c3",
"name": "No Operation, do nothing4",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1140, 1860]
},
{
"parameters": {},
"id": "1ee8497c-e721-4741-b059-ff4b85cb0e73",
"name": "No Operation, do nothing5",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1140, 2040]
},
{
"parameters": {
"data": {
"data": [
{
"id": 1
},
{
"id": 2
},
{
"id": 3
},
{
"id": 4
}
]
}
},
"id": "b97e2dd3-8934-4f61-a217-e4251c3c018f",
"name": "Code2",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [600, 500]
},
{
"parameters": {
"data": [
{
"id": 1
},
{
"id": 2
},
{
"id": 3
},
{
"id": 4
}
]
},
"id": "cc63d7e0-0ecb-4aa8-ae15-69c6b32ce6d9",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [660, 1260]
},
{
"parameters": {
"operation": "summarize",
"fieldsToSummarize": {
"values": [
{
"field": "id"
}
]
},
"options": {}
},
"id": "50df7038-52d2-4b07-a729-a683ebbd769d",
"name": "Item Lists9",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2,
"position": [920, 2260],
"continueOnFail": true
},
{
"parameters": {
"operation": "summarize",
"fieldsToSummarize": {
"values": [
{
"field": "id"
}
]
},
"options": {}
},
"id": "15347d3e-0e4a-4c48-ad24-80730f7015c8",
"name": "Item Lists10",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2.1,
"position": [920, 2420]
},
{
"parameters": {},
"id": "aa2bfbc8-bdfd-41fd-83f8-181bcd2fa9be",
"name": "No Operation, do nothing6",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1140, 2240]
},
{
"parameters": {},
"id": "9ca712dc-dd5a-474e-808b-224bf4149f85",
"name": "No Operation, do nothing7",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1140, 2420]
},
{
"parameters": {
"operation": "aggregateItems",
"fieldsToAggregate": {
"fieldToAggregate": [
{
"fieldToAggregate": "id"
}
]
},
"options": {}
},
"id": "1cf43271-c87b-4523-9d8d-ed72b4ad49fa",
"name": "Item Lists1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2,
"position": [920, 1460],
"continueOnFail": true
},
{
"parameters": {
"operation": "aggregateItems",
"fieldsToAggregate": {
"fieldToAggregate": [
{
"fieldToAggregate": "id"
}
]
},
"options": {}
},
"id": "d1153bd8-a546-4ae2-a7ba-6f3ed4c41ba5",
"name": "Item Lists11",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2.1,
"position": [920, 1620]
},
{
"parameters": {},
"id": "32fa0e78-35ef-4a84-bc09-b94141db2bab",
"name": "No Operation, do nothing8",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1140, 1440]
},
{
"parameters": {},
"id": "d3c43cd0-7544-4cb9-8fad-6e8e8c8676bc",
"name": "No Operation, do nothing9",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1140, 1620]
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"id": "94c419a1-a941-472b-8142-39ca1c428390",
"name": "Item Lists12",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2,
"position": [920, 660],
"continueOnFail": true
},
{
"parameters": {
"fieldToSplitOut": "dataa",
"options": {}
},
"id": "482d5523-a4d1-4bee-8717-c5949674a246",
"name": "Item Lists13",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2.1,
"position": [920, 820],
"alwaysOutputData": true
},
{
"parameters": {},
"id": "9dd44dc5-3525-4a22-b1dd-5d369db28759",
"name": "No Operation, do nothing10",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1140, 640]
},
{
"parameters": {},
"id": "f23f7fed-e7e9-4e9d-abdd-056973fc0bbc",
"name": "No Operation, do nothing11",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1140, 820]
}
],
"pinData": {
"No Operation, do nothing1": [
{
"json": {}
}
],
"No Operation, do nothing": [
{
"json": {
"data": [
{
"id": 1
},
{
"id": 2
},
{
"id": 3
},
{
"id": 4
}
]
}
}
],
"No Operation, do nothing10": [
{
"json": {
"id": 1
}
},
{
"json": {
"id": 2
}
},
{
"json": {
"id": 3
}
},
{
"json": {
"id": 4
}
}
],
"No Operation, do nothing11": [
{
"json": {}
}
],
"No Operation, do nothing2": [
{
"json": {
"id": 1
}
},
{
"json": {
"id": 2
}
},
{
"json": {
"id": 3
}
},
{
"json": {
"id": 4
}
}
],
"No Operation, do nothing3": [
{
"json": {
"idd": []
}
}
],
"No Operation, do nothing8": [
{
"json": {
"id": [1, 2, 3, 4]
}
}
],
"No Operation, do nothing9": [
{
"json": {
"id": [1, 2, 3, 4]
}
}
],
"No Operation, do nothing4": [
{
"json": {
"id": 1
}
},
{
"json": {
"id": 2
}
},
{
"json": {
"id": 3
}
},
{
"json": {
"id": 4
}
}
],
"No Operation, do nothing5": [
{
"json": {
"count_idd": 0
}
}
],
"No Operation, do nothing6": [
{
"json": {
"count_id": 4
}
}
],
"No Operation, do nothing7": [
{
"json": {
"count_id": 4
}
}
]
},
"connections": {
"Item Lists4": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
},
"Item Lists5": {
"main": [
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
]
]
},
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code2",
"type": "main",
"index": 0
},
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Item Lists": {
"main": [
[
{
"node": "No Operation, do nothing2",
"type": "main",
"index": 0
}
]
]
},
"Item Lists6": {
"main": [
[
{
"node": "No Operation, do nothing3",
"type": "main",
"index": 0
}
]
]
},
"Item Lists7": {
"main": [
[
{
"node": "No Operation, do nothing4",
"type": "main",
"index": 0
}
]
]
},
"Item Lists8": {
"main": [
[
{
"node": "No Operation, do nothing5",
"type": "main",
"index": 0
}
]
]
},
"Code2": {
"main": [
[
{
"node": "Item Lists4",
"type": "main",
"index": 0
},
{
"node": "Item Lists5",
"type": "main",
"index": 0
},
{
"node": "Item Lists12",
"type": "main",
"index": 0
},
{
"node": "Item Lists13",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Item Lists",
"type": "main",
"index": 0
},
{
"node": "Item Lists6",
"type": "main",
"index": 0
},
{
"node": "Item Lists7",
"type": "main",
"index": 0
},
{
"node": "Item Lists8",
"type": "main",
"index": 0
},
{
"node": "Item Lists9",
"type": "main",
"index": 0
},
{
"node": "Item Lists10",
"type": "main",
"index": 0
},
{
"node": "Item Lists1",
"type": "main",
"index": 0
},
{
"node": "Item Lists11",
"type": "main",
"index": 0
}
]
]
},
"Item Lists9": {
"main": [
[
{
"node": "No Operation, do nothing6",
"type": "main",
"index": 0
}
]
]
},
"Item Lists10": {
"main": [
[
{
"node": "No Operation, do nothing7",
"type": "main",
"index": 0
}
]
]
},
"Item Lists1": {
"main": [
[
{
"node": "No Operation, do nothing8",
"type": "main",
"index": 0
}
]
]
},
"Item Lists11": {
"main": [
[
{
"node": "No Operation, do nothing9",
"type": "main",
"index": 0
}
]
]
},
"Item Lists12": {
"main": [
[
{
"node": "No Operation, do nothing10",
"type": "main",
"index": 0
}
]
]
},
"Item Lists13": {
"main": [
[
{
"node": "No Operation, do nothing11",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"versionId": "5d3c6a6b-df81-42e6-ae4c-2b297024a298",
"id": "9",
"meta": {
"instanceId": "6ebec4953fe56f1c009e7c3b107578b375137523af057073c0b5da17350651bd"
},
"tags": []
}
@@ -0,0 +1,384 @@
{
"name": "item_list 2.2",
"nodes": [
{
"parameters": {},
"id": "f2d01806-a457-4a3a-8bd9-aeb005aecb99",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [-80, 820]
},
{
"parameters": {
"fieldToSplitOut": "data, data2",
"include": "selectedOtherFields",
"fieldsToInclude": {
"fields": [
{
"fieldName": "tag"
}
]
},
"options": {}
},
"id": "b0dbb504-d111-49ee-a904-1ece920a2e7a",
"name": "Item Lists1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2.2,
"position": [520, 360]
},
{
"parameters": {
"data": {
"data": {
"entry1": {
"id": 1,
"info": "some info 1"
},
"entry2": {
"id": 2,
"info": "some info 2"
},
"entry3": {
"id": 3,
"info": "some info 3"
}
},
"data2": ["a", "b", "c"],
"data3": {
"a": 1,
"b": 2,
"c": 3
},
"data4": null,
"tag": "bar"
}
},
"id": "64fa7b5c-c85c-4dd8-8863-11d6e0ee8426",
"name": "Code1",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [160, 820]
},
{
"parameters": {
"fieldToSplitOut": "data2, tag",
"include": "selectedOtherFields",
"fieldsToInclude": {
"fields": [
{
"fieldName": "data4"
}
]
},
"options": {
"destinationFieldName": "fromArray, singleField"
}
},
"id": "80b46f60-19c2-4aec-a232-901b54bdb7c0",
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2.2,
"position": [520, 780]
},
{
"parameters": {
"fieldToSplitOut": "data3, data2, data",
"options": {}
},
"id": "c2bbf08c-4571-4d28-a95d-82b0dd22edd9",
"name": "Item Lists2",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2.2,
"position": [520, 560]
},
{
"parameters": {
"fieldToSplitOut": "data2, data3",
"include": "allOtherFields",
"options": {}
},
"id": "ef10bb23-43e1-4e48-b8b7-c634e4c41b56",
"name": "Item Lists3",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2.2,
"position": [520, 1180]
},
{
"parameters": {
"fieldToSplitOut": " tag, data4",
"options": {
"destinationFieldName": "entry1, entry2"
}
},
"id": "cd083969-5c27-47f6-9eb2-aa52fc2f5cb2",
"name": "Item Lists4",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2.2,
"position": [520, 1400],
"continueOnFail": true
},
{
"parameters": {
"fieldToSplitOut": "data2",
"include": "selectedOtherFields",
"fieldsToInclude": {
"fields": [
{
"fieldName": "data4"
}
]
},
"options": {
"destinationFieldName": "fromArray"
}
},
"id": "866154c7-2967-44d7-a278-1600752749d3",
"name": "Item Lists5",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 2.2,
"position": [520, 960]
}
],
"pinData": {
"Item Lists1": [
{
"json": {
"data": {
"id": 1,
"info": "some info 1"
},
"data2": "a",
"tag": "bar"
}
},
{
"json": {
"data": {
"id": 2,
"info": "some info 2"
},
"data2": "b",
"tag": "bar"
}
},
{
"json": {
"data": {
"id": 3,
"info": "some info 3"
},
"data2": "c",
"tag": "bar"
}
}
],
"Item Lists2": [
{
"json": {
"data3": 1,
"data2": "a",
"data": {
"id": 1,
"info": "some info 1"
}
}
},
{
"json": {
"data3": 2,
"data2": "b",
"data": {
"id": 2,
"info": "some info 2"
}
}
},
{
"json": {
"data3": 3,
"data2": "c",
"data": {
"id": 3,
"info": "some info 3"
}
}
}
],
"Item Lists": [
{
"json": {
"fromArray": "a",
"singleField": "bar",
"data4": null
}
},
{
"json": {
"fromArray": "b",
"data4": null
}
},
{
"json": {
"fromArray": "c",
"data4": null
}
}
],
"Item Lists5": [
{
"json": {
"fromArray": "a",
"data4": null
}
},
{
"json": {
"fromArray": "b",
"data4": null
}
},
{
"json": {
"fromArray": "c",
"data4": null
}
}
],
"Item Lists3": [
{
"json": {
"data": {
"entry1": {
"id": 1,
"info": "some info 1"
},
"entry2": {
"id": 2,
"info": "some info 2"
},
"entry3": {
"id": 3,
"info": "some info 3"
}
},
"data4": null,
"tag": "bar",
"data2": "a",
"data3": 1
}
},
{
"json": {
"data": {
"entry1": {
"id": 1,
"info": "some info 1"
},
"entry2": {
"id": 2,
"info": "some info 2"
},
"entry3": {
"id": 3,
"info": "some info 3"
}
},
"data4": null,
"tag": "bar",
"data2": "b",
"data3": 2
}
},
{
"json": {
"data": {
"entry1": {
"id": 1,
"info": "some info 1"
},
"entry2": {
"id": 2,
"info": "some info 2"
},
"entry3": {
"id": 3,
"info": "some info 3"
}
},
"data4": null,
"tag": "bar",
"data2": "c",
"data3": 3
}
}
],
"Item Lists4": [
{
"json": {
"entry1": "bar",
"entry2": null
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code1",
"type": "main",
"index": 0
}
]
]
},
"Code1": {
"main": [
[
{
"node": "Item Lists1",
"type": "main",
"index": 0
},
{
"node": "Item Lists2",
"type": "main",
"index": 0
},
{
"node": "Item Lists",
"type": "main",
"index": 0
},
{
"node": "Item Lists3",
"type": "main",
"index": 0
},
{
"node": "Item Lists4",
"type": "main",
"index": 0
},
{
"node": "Item Lists5",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"versionId": "1f311937-f825-4bda-a39e-e27c6ffe5906",
"id": "170",
"meta": {
"instanceId": "36203ea1ce3cef713fa25999bd9874ae26b9e4c2c3a90a365f2882a154d031d0"
},
"tags": []
}
@@ -0,0 +1,606 @@
{
"name": "itemList refactor",
"nodes": [
{
"parameters": {},
"id": "e7ecaa9c-e35d-4095-a85b-85b83f807c2a",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [420, 400]
},
{
"parameters": {
"operation": "getAllPeople",
"returnAll": true
},
"id": "7d925077-afaa-46d5-ba2f-0c19d93afecc",
"name": "Customer Datastore (n8n training)",
"type": "n8n-nodes-base.n8nTrainingCustomerDatastore",
"typeVersion": 1,
"position": [640, 400]
},
{
"parameters": {
"operation": "concatenateItems",
"fieldsToAggregate": {
"fieldToAggregate": [
{
"fieldToAggregate": "email"
},
{
"fieldToAggregate": "notes"
}
]
},
"options": {}
},
"id": "f80182d8-54f6-4a26-82b3-27d67e4ca39b",
"name": "Item Lists1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
"position": [1120, -120]
},
{
"parameters": {
"operation": "concatenateItems",
"aggregate": "aggregateAllItemData",
"destinationFieldName": "data2"
},
"id": "23eefe2c-6394-4b53-a791-852dcd671ea0",
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
"position": [1120, 40]
},
{
"parameters": {
"operation": "limit",
"maxItems": 2
},
"id": "676dc72f-9766-43c0-aab7-2f8a93ed46e5",
"name": "Item Lists2",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
"position": [1120, 200]
},
{
"parameters": {
"operation": "limit",
"keep": "lastItems"
},
"id": "9615299b-5acc-4459-a7d3-2cb23c3224ab",
"name": "Item Lists3",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
"position": [1120, 360]
},
{
"parameters": {
"operation": "sort",
"sortFieldsUi": {
"sortField": [
{
"fieldName": "country"
}
]
},
"options": {}
},
"id": "fd2f190a-b161-48ff-93e1-0f30efce051a",
"name": "Item Lists4",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
"position": [1120, 540]
},
{
"parameters": {
"operation": "limit",
"maxItems": 4
},
"id": "14759521-76ad-46d8-8add-1d7361788fe1",
"name": "Item Lists5",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
"position": [1360, 540]
},
{
"parameters": {
"operation": "removeDuplicates",
"compare": "selectedFields",
"fieldsToCompare": "country",
"options": {}
},
"id": "c0eba4d0-f975-4987-8bb2-853e8a98665e",
"name": "Item Lists6",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
"position": [1560, 540]
},
{
"parameters": {
"operation": "concatenateItems",
"aggregate": "aggregateAllItemData",
"include": "specifiedFields",
"fieldsToInclude": "country, notes, name, created"
},
"id": "b5962f40-a891-4b02-8fec-c2d76f85375f",
"name": "Item Lists7",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
"position": [1120, 740]
},
{
"parameters": {
"fieldToSplitOut": "data",
"include": "allOtherFields",
"options": {
"destinationFieldName": "newData"
}
},
"id": "15c6fc86-7e38-4d76-836a-8f8426ca05e3",
"name": "Item Lists8",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
"position": [1380, 740]
},
{
"parameters": {
"operation": "summarize",
"fieldsToSummarize": {
"values": [
{
"aggregation": "append",
"field": "newData.notes"
},
{
"aggregation": "max",
"field": "newData.created"
},
{
"aggregation": "min",
"field": "newData.created"
}
]
},
"options": {}
},
"id": "8c51ae57-487e-472a-b268-6e8ad347edbb",
"name": "Item Lists9",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3,
"position": [1560, 940]
},
{
"parameters": {},
"id": "e859b082-284c-4bb3-96b6-39a86152d8f6",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1760, -120]
},
{
"parameters": {},
"id": "9da56c21-739d-4f2f-adf7-953cf0550d97",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1760, 40]
},
{
"parameters": {},
"id": "f85ac031-24de-4701-bb3d-76c684924002",
"name": "No Operation, do nothing2",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1760, 200]
},
{
"parameters": {},
"id": "e7faff14-55d6-4d78-983d-027fd56bcd5a",
"name": "No Operation, do nothing3",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1760, 360]
},
{
"parameters": {},
"id": "dc8b7bbc-b1a8-4ba8-b214-d73341cb9f85",
"name": "No Operation, do nothing4",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1760, 740]
},
{
"parameters": {},
"id": "09bdeca1-6a9e-4668-b9d1-14ed6139e047",
"name": "No Operation, do nothing5",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1760, 540]
},
{
"parameters": {},
"id": "7d508889-d94e-4818-abc8-b669a0fe64ea",
"name": "No Operation, do nothing6",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1760, 940]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"email": [
"gatsby@west-egg.com",
"jab@macondo.co",
"info@in-and-out-of-weeks.org",
"captain@heartofgold.com",
"edmund@narnia.gov"
],
"notes": [
"Keeps asking about a green light??",
"Lots of people named after him. Very confusing",
"Keeps rolling his terrible eyes",
"Felt like I was talking to more than one person",
"Passionate sailor"
]
}
}
],
"No Operation, do nothing1": [
{
"json": {
"data2": [
{
"id": "23423532",
"name": "Jay Gatsby",
"email": "gatsby@west-egg.com",
"notes": "Keeps asking about a green light??",
"country": "US",
"created": "1925-04-10"
},
{
"id": "23423533",
"name": "José Arcadio Buendía",
"email": "jab@macondo.co",
"notes": "Lots of people named after him. Very confusing",
"country": "CO",
"created": "1967-05-05"
},
{
"id": "23423534",
"name": "Max Sendak",
"email": "info@in-and-out-of-weeks.org",
"notes": "Keeps rolling his terrible eyes",
"country": "US",
"created": "1963-04-09"
},
{
"id": "23423535",
"name": "Zaphod Beeblebrox",
"email": "captain@heartofgold.com",
"notes": "Felt like I was talking to more than one person",
"country": null,
"created": "1979-10-12"
},
{
"id": "23423536",
"name": "Edmund Pevensie",
"email": "edmund@narnia.gov",
"notes": "Passionate sailor",
"country": "UK",
"created": "1950-10-16"
}
]
}
}
],
"No Operation, do nothing2": [
{
"json": {
"id": "23423532",
"name": "Jay Gatsby",
"email": "gatsby@west-egg.com",
"notes": "Keeps asking about a green light??",
"country": "US",
"created": "1925-04-10"
}
},
{
"json": {
"id": "23423533",
"name": "José Arcadio Buendía",
"email": "jab@macondo.co",
"notes": "Lots of people named after him. Very confusing",
"country": "CO",
"created": "1967-05-05"
}
}
],
"No Operation, do nothing3": [
{
"json": {
"id": "23423536",
"name": "Edmund Pevensie",
"email": "edmund@narnia.gov",
"notes": "Passionate sailor",
"country": "UK",
"created": "1950-10-16"
}
}
],
"No Operation, do nothing5": [
{
"json": {
"id": "23423533",
"name": "José Arcadio Buendía",
"email": "jab@macondo.co",
"notes": "Lots of people named after him. Very confusing",
"country": "CO",
"created": "1967-05-05"
}
},
{
"json": {
"id": "23423536",
"name": "Edmund Pevensie",
"email": "edmund@narnia.gov",
"notes": "Passionate sailor",
"country": "UK",
"created": "1950-10-16"
}
},
{
"json": {
"id": "23423532",
"name": "Jay Gatsby",
"email": "gatsby@west-egg.com",
"notes": "Keeps asking about a green light??",
"country": "US",
"created": "1925-04-10"
}
}
],
"No Operation, do nothing4": [
{
"json": {
"newData": {
"name": "Jay Gatsby",
"notes": "Keeps asking about a green light??",
"country": "US",
"created": "1925-04-10"
}
}
},
{
"json": {
"newData": {
"name": "José Arcadio Buendía",
"notes": "Lots of people named after him. Very confusing",
"country": "CO",
"created": "1967-05-05"
}
}
},
{
"json": {
"newData": {
"name": "Max Sendak",
"notes": "Keeps rolling his terrible eyes",
"country": "US",
"created": "1963-04-09"
}
}
},
{
"json": {
"newData": {
"name": "Zaphod Beeblebrox",
"notes": "Felt like I was talking to more than one person",
"country": null,
"created": "1979-10-12"
}
}
},
{
"json": {
"newData": {
"name": "Edmund Pevensie",
"notes": "Passionate sailor",
"country": "UK",
"created": "1950-10-16"
}
}
}
],
"No Operation, do nothing6": [
{
"json": {
"appended_newData_notes": [
"Keeps asking about a green light??",
"Lots of people named after him. Very confusing",
"Keeps rolling his terrible eyes",
"Felt like I was talking to more than one person",
"Passionate sailor"
],
"max_newData_created": "1979-10-12",
"min_newData_created": "1925-04-10"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Customer Datastore (n8n training)",
"type": "main",
"index": 0
}
]
]
},
"Customer Datastore (n8n training)": {
"main": [
[
{
"node": "Item Lists1",
"type": "main",
"index": 0
},
{
"node": "Item Lists",
"type": "main",
"index": 0
},
{
"node": "Item Lists2",
"type": "main",
"index": 0
},
{
"node": "Item Lists3",
"type": "main",
"index": 0
},
{
"node": "Item Lists4",
"type": "main",
"index": 0
},
{
"node": "Item Lists7",
"type": "main",
"index": 0
}
]
]
},
"Item Lists1": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
},
"Item Lists4": {
"main": [
[
{
"node": "Item Lists5",
"type": "main",
"index": 0
}
]
]
},
"Item Lists5": {
"main": [
[
{
"node": "Item Lists6",
"type": "main",
"index": 0
}
]
]
},
"Item Lists7": {
"main": [
[
{
"node": "Item Lists8",
"type": "main",
"index": 0
}
]
]
},
"Item Lists8": {
"main": [
[
{
"node": "Item Lists9",
"type": "main",
"index": 0
},
{
"node": "No Operation, do nothing4",
"type": "main",
"index": 0
}
]
]
},
"Item Lists": {
"main": [
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
]
]
},
"Item Lists2": {
"main": [
[
{
"node": "No Operation, do nothing2",
"type": "main",
"index": 0
}
]
]
},
"Item Lists3": {
"main": [
[
{
"node": "No Operation, do nothing3",
"type": "main",
"index": 0
}
]
]
},
"Item Lists6": {
"main": [
[
{
"node": "No Operation, do nothing5",
"type": "main",
"index": 0
}
]
]
},
"Item Lists9": {
"main": [
[
{
"node": "No Operation, do nothing6",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {},
"versionId": "ce3e0124-aa56-497c-a2e1-24158837c7f9",
"id": "m7QDuxo599dkZ0Ex",
"meta": {
"instanceId": "e34acda144ba98351e38adb4db781751ca8cd64a8248aef8b65608fc9a49008c"
},
"tags": []
}