refactor(core): Replace Code nodes with TestDataNode in workflow test fixtures (#25893)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Tomi Turtiainen
2026-02-18 09:19:20 +02:00
committed by GitHub
parent 620a50e7fb
commit 31850f7996
68 changed files with 4694 additions and 3499 deletions
@@ -12,6 +12,7 @@ import path from 'node:path';
import { UnrecognizedCredentialTypeError, UnrecognizedNodeTypeError } from '../dist/errors';
import { LazyPackageDirectoryLoader } from '../dist/nodes-loader/lazy-package-directory-loader';
import { TestDataNode } from './test-data-node';
/** This rewrites the nodes/credentials source path to load the typescript code instead of the compiled javascript code */
const fixSourcePath = (loadInfo: LoadingDetails) => {
@@ -23,7 +24,22 @@ const fixSourcePath = (loadInfo: LoadingDetails) => {
export class LoadNodesAndCredentials {
private loaders: Record<string, LazyPackageDirectoryLoader> = {};
readonly known: KnownNodesAndCredentials = { nodes: {}, credentials: {} };
private directNodes: Record<string, LoadedClass<INodeType>> = {
'n8n-nodes-testing.testData': {
type: new TestDataNode(),
sourcePath: __filename,
},
};
readonly known: KnownNodesAndCredentials = {
nodes: {
'n8n-nodes-testing.testData': {
className: 'TestDataNode',
sourcePath: __filename,
},
},
credentials: {},
};
readonly loaded: LoadedNodesAndCredentials = { nodes: {}, credentials: {} };
@@ -85,6 +101,11 @@ export class LoadNodesAndCredentials {
}
getNode(fullNodeType: string): LoadedClass<INodeType | IVersionedNodeType> {
const directNode = this.directNodes[fullNodeType];
if (directNode) {
return directNode;
}
const [packageName, nodeType] = fullNodeType.split('.');
const { loaders } = this;
const loader = loaders[packageName];
@@ -0,0 +1,44 @@
import type {
IDataObject,
IExecuteFunctions,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { NodeConnectionTypes } from 'n8n-workflow';
/**
* A lightweight test-only node that outputs static JSON data.
* Used in test workflow JSON files as a replacement for Code nodes
* that merely return hardcoded data. Accepts a `data` parameter
* containing a JSON array (or single object) and emits each element
* as a workflow item. No sandbox or code execution involved.
*/
export class TestDataNode implements INodeType {
description: INodeTypeDescription = {
displayName: 'Test Data',
name: 'testData',
group: ['input'],
version: 1,
description: 'Provides static test data',
defaults: { name: 'Test Data' },
inputs: [NodeConnectionTypes.Main],
outputs: [NodeConnectionTypes.Main],
properties: [
{
displayName: 'Data',
name: 'data',
type: 'json',
default: '[]',
description: 'JSON array of items to output',
},
],
};
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
const raw = this.getNodeParameter('data', 0);
const parsed = typeof raw === 'string' ? JSON.parse(raw) : raw;
const items: IDataObject[] = Array.isArray(parsed) ? parsed : [parsed];
return [items.map((item) => ({ json: item }))];
}
}
@@ -41,11 +41,15 @@
},
{
"parameters": {
"jsCode": "return [{ key: \"value\" }];"
"data": [
{
"key": "value"
}
]
},
"id": "e12f1876-cfd1-47a4-a21b-d478452683bc",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [720, 340]
}
@@ -41,11 +41,15 @@
},
{
"parameters": {
"jsCode": "return [{ key: \"value\" }];"
"data": [
{
"key": "value"
}
]
},
"id": "e12f1876-cfd1-47a4-a21b-d478452683bc",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [720, 340]
}
@@ -11,11 +11,21 @@
},
{
"parameters": {
"jsCode": "return [\n {\n json: {\n number: 0\n }\n },\n {\n json: {\n number: 1\n }\n },\n {\n json: {\n number: 2\n }\n }\n];"
"data": [
{
"number": 0
},
{
"number": 1
},
{
"number": 2
}
]
},
"id": "be417cbe-7a4f-40eb-8a26-fca253a01882",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-6240, 8040]
},
@@ -39,11 +49,28 @@
},
{
"parameters": {
"jsCode": "return [\n {\n json: {\n number: 0\n }\n },\n {\n json: {\n number: 1,\n k: 2,\n }\n },\n {\n json: {\n number: 10\n }\n },\n {\n json: {\n number: 11\n }\n },\n {\n json: {\n number: 12\n }\n }\n];"
"data": [
{
"number": 0
},
{
"number": 1,
"k": 2
},
{
"number": 10
},
{
"number": 11
},
{
"number": 12
}
]
},
"id": "94580b8b-b698-4c49-98b6-12973b6f4220",
"name": "Code1",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-6240, 8260]
},
@@ -11,21 +11,87 @@
},
{
"parameters": {
"jsCode": "return [\n {\n id: '1',\n data: [1,2,3],\n },\n {\n id: 2,\n data: 25,\n },\n {\n id: 3,\n data: true,\n },\n {\n id: 4,\n data: false,\n },\n {\n id: '5',\n data: true,\n },\n {\n id: 6,\n data: null,\n },\n {\n id: 7,\n data: '',\n },\n {\n id: '8',\n data: [],\n },\n];"
"data": [
{
"id": "1",
"data": [1, 2, 3]
},
{
"id": 2,
"data": 25
},
{
"id": 3,
"data": true
},
{
"id": 4,
"data": false
},
{
"id": "5",
"data": true
},
{
"id": 6,
"data": null
},
{
"id": 7,
"data": ""
},
{
"id": "8",
"data": []
}
]
},
"id": "a9204c1d-11da-4f54-9a52-82992815e893",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [640, 300]
},
{
"parameters": {
"jsCode": "return [\n {\n id: 1,\n data: \"[1,2,3]\",\n },\n {\n id: 2,\n data: '25',\n },\n {\n id: 3,\n data: 'tRuE',\n },\n {\n id: 4,\n data: 'FalsE',\n },\n {\n id: 5,\n data: 1,\n },\n {\n id: 6,\n data: [],\n },\n {\n id: 7,\n data: null,\n },\n {\n id: 8,\n data: '',\n },\n];"
"data": [
{
"id": 1,
"data": "[1,2,3]"
},
{
"id": 2,
"data": "25"
},
{
"id": 3,
"data": "tRuE"
},
{
"id": 4,
"data": "FalsE"
},
{
"id": 5,
"data": 1
},
{
"id": 6,
"data": []
},
{
"id": 7,
"data": null
},
{
"id": 8,
"data": ""
}
]
},
"id": "839119da-4372-442d-8ba6-7d57b53b7825",
"name": "Code1",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [640, 500]
},
@@ -72,21 +138,47 @@
},
{
"parameters": {
"jsCode": "return [\n {\n id: 1,\n data: [1,2,3],\n },\n {\n id: 2,\n data: '[\"a\", \"b\", \"c\"]',\n },\n {\n id: 3,\n data: [],\n },\n];"
"data": [
{
"id": 1,
"data": [1, 2, 3]
},
{
"id": 2,
"data": "[\"a\", \"b\", \"c\"]"
},
{
"id": 3,
"data": []
}
]
},
"id": "f0a7fbcf-226a-4b19-a946-5a0d8480bbb8",
"name": "Code2",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [640, 680]
},
{
"parameters": {
"jsCode": "return [\n {\n id: '1',\n data: \"[1,2,3]\",\n },\n {\n id: 2,\n data: ['a', 'b', 'c'],\n },\n {\n id: 3,\n data: \"[]\",\n },\n];"
"data": [
{
"id": "1",
"data": "[1,2,3]"
},
{
"id": 2,
"data": ["a", "b", "c"]
},
{
"id": 3,
"data": "[]"
}
]
},
"id": "9d510249-3eff-4264-8f93-1959480fd100",
"name": "Code3",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [640, 880]
},
@@ -112,21 +204,55 @@
},
{
"parameters": {
"jsCode": "return [\n {\n id: 1,\n data: 25.36,\n },\n {\n id: 2,\n data: 2500,\n },\n {\n id: 3,\n data: 0.894,\n },\n {\n id: 4,\n data: 42,\n },\n];"
"data": [
{
"id": 1,
"data": 25.36
},
{
"id": 2,
"data": 2500
},
{
"id": 3,
"data": 0.894
},
{
"id": 4,
"data": 42
}
]
},
"id": "eb4e5ee5-5f9e-413e-bd80-11d75bff9f90",
"name": "Code4",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [620, 1100]
},
{
"parameters": {
"jsCode": "return [\n {\n id: 1,\n data: '25.36',\n },\n {\n id: 2,\n data: '2500',\n },\n {\n id: 3,\n data: '0.894',\n },\n {\n id: 4,\n data: 'forty two',\n },\n];"
"data": [
{
"id": 1,
"data": "25.36"
},
{
"id": 2,
"data": "2500"
},
{
"id": 3,
"data": "0.894"
},
{
"id": 4,
"data": "forty two"
}
]
},
"id": "28d3f7f4-abba-4523-9b5b-1bcf47d6dbec",
"name": "Code5",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [620, 1300]
},
@@ -153,21 +279,71 @@
},
{
"parameters": {
"jsCode": "return [\n {\n id: 1,\n data: \"TRUE\",\n },\n {\n id: 2,\n data: false,\n },\n {\n id: 3,\n data: 1,\n },\n {\n id: 4,\n data: false,\n },\n {\n id: '5',\n data: true,\n },\n {\n id: 6,\n data: '0',\n },\n];"
"data": [
{
"id": 1,
"data": "TRUE"
},
{
"id": 2,
"data": false
},
{
"id": 3,
"data": 1
},
{
"id": 4,
"data": false
},
{
"id": "5",
"data": true
},
{
"id": 6,
"data": "0"
}
]
},
"id": "bf4f3286-db11-4075-a10a-6c19b60ef8cf",
"name": "Code6",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [620, 1480]
},
{
"parameters": {
"jsCode": "return [\n {\n id: 1,\n data: true,\n },\n {\n id: 2,\n data: 'False',\n },\n {\n id: 3,\n data: true,\n },\n {\n id: 4,\n data: 0,\n },\n {\n id: '5',\n data: '1',\n },\n {\n id: 6,\n data: false,\n },\n];"
"data": [
{
"id": 1,
"data": true
},
{
"id": 2,
"data": "False"
},
{
"id": 3,
"data": true
},
{
"id": 4,
"data": 0
},
{
"id": "5",
"data": "1"
},
{
"id": 6,
"data": false
}
]
},
"id": "731b6fc7-0a57-449e-b9c4-54f1feeec9be",
"name": "Code7",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [620, 1680]
},
@@ -193,21 +369,79 @@
},
{
"parameters": {
"jsCode": "return [\n {\n id: '1',\n data: null,\n },\n {\n id: 2,\n data: null,\n },\n {\n id: 3,\n data: null,\n },\n {\n id: 4,\n data: [],\n },\n {\n id: '5',\n data: '',\n },\n {\n id: 6,\n data: '',\n },\n {\n id: 7,\n data: [],\n },\n];"
"data": [
{
"id": "1",
"data": null
},
{
"id": 2,
"data": null
},
{
"id": 3,
"data": null
},
{
"id": 4,
"data": []
},
{
"id": "5",
"data": ""
},
{
"id": 6,
"data": ""
},
{
"id": 7,
"data": []
}
]
},
"id": "f75820ed-4f8f-49b7-af25-3bbd0691eafd",
"name": "Code8",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [620, 1860]
},
{
"parameters": {
"jsCode": "return [\n {\n id: '1',\n data: '',\n },\n {\n id: 2,\n data: [],\n },\n {\n id: 3,\n data: null,\n },\n {\n id: 4,\n data: '',\n },\n {\n id: '5',\n data: [],\n },\n {\n id: 6,\n data: '',\n },\n {\n id: 7,\n data: [],\n },\n];"
"data": [
{
"id": "1",
"data": ""
},
{
"id": 2,
"data": []
},
{
"id": 3,
"data": null
},
{
"id": 4,
"data": ""
},
{
"id": "5",
"data": []
},
{
"id": 6,
"data": ""
},
{
"id": 7,
"data": []
}
]
},
"id": "abe98ef5-0b3a-4e06-8a5d-f0554e42cf33",
"name": "Code9",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [620, 2060]
},
@@ -233,21 +467,53 @@
},
{
"parameters": {
"jsCode": "return [\n {\n id: 1,\n data: {foo: 'foo', bar: 'bar'},\n },\n {\n id: 2,\n data: '{\"foo\": \"foo\", \"bar\": \"bar\"}',\n },\n {\n id: 3,\n data: {},\n },\n];"
"data": [
{
"id": 1,
"data": {
"foo": "foo",
"bar": "bar"
}
},
{
"id": 2,
"data": "{\"foo\": \"foo\", \"bar\": \"bar\"}"
},
{
"id": 3,
"data": {}
}
]
},
"id": "c516813c-a5c7-464e-887b-447e5177c137",
"name": "Code10",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [640, 2440]
},
{
"parameters": {
"jsCode": "return [\n {\n id: 2,\n data: {foo: 'foo', bar: 'bar'},\n },\n {\n id: 1,\n data: '{\"foo\": \"foo\", \"bar\": \"bar\"}',\n },\n {\n id: 3,\n data: \"{}\",\n },\n];"
"data": [
{
"id": 2,
"data": {
"foo": "foo",
"bar": "bar"
}
},
{
"id": 1,
"data": "{\"foo\": \"foo\", \"bar\": \"bar\"}"
},
{
"id": 3,
"data": "{}"
}
]
},
"id": "a0986a04-da68-47e7-9a06-f7abf83604c8",
"name": "Code11",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [640, 2640]
},
@@ -274,21 +540,47 @@
},
{
"parameters": {
"jsCode": "return [\n {\n id: 1,\n data: \"2019-08-30T22:54:40.273Z\",\n },\n {\n id: 2,\n data: '{\"foo\": \"foo\", \"bar\": \"bar\"}',\n },\n {\n id: 3,\n data: {},\n },\n];"
"data": [
{
"id": 1,
"data": "2019-08-30T22:54:40.273Z"
},
{
"id": 2,
"data": "{\"foo\": \"foo\", \"bar\": \"bar\"}"
},
{
"id": 3,
"data": {}
}
]
},
"id": "80c1f595-9d0e-4df9-b927-4b1459e217c1",
"name": "Code12",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [640, 2860]
},
{
"parameters": {
"jsCode": "return [\n {\n id: 1,\n data: 'Sat Aug 31 2019 01:54:40 GMT+0300 (Eastern European Summer Time)',\n },\n {\n id: 2,\n data: '{\"foo\": \"foo\", \"bar\": \"bar\"}',\n },\n {\n id: 3,\n data: \"{}\",\n },\n];"
"data": [
{
"id": 1,
"data": "Sat Aug 31 2019 01:54:40 GMT+0300 (Eastern European Summer Time)"
},
{
"id": 2,
"data": "{\"foo\": \"foo\", \"bar\": \"bar\"}"
},
{
"id": 3,
"data": "{}"
}
]
},
"id": "d9764a14-2b8b-4a12-ad06-8a4f09685e62",
"name": "Code13",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [640, 3060]
},
@@ -11,21 +11,32 @@
},
{
"parameters": {
"jsCode": "return {id: 1, data: null, data2: [], bar: 'bar', spam: []};"
"data": {
"id": 1,
"data": null,
"data2": [],
"bar": "bar",
"spam": []
}
},
"id": "c3c13247-1b60-4713-855e-bbddec8d02d0",
"name": "Code2",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [660, 460]
},
{
"parameters": {
"jsCode": "return {id: 1, data: [], data2: null ,foo: 'foo'};"
"data": {
"id": 1,
"data": [],
"data2": null,
"foo": "foo"
}
},
"id": "d8a8f3de-86cc-4a46-ac6b-db67c3442280",
"name": "Code3",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [660, 600]
},
@@ -11,21 +11,95 @@
},
{
"parameters": {
"jsCode": "return [\n\t{\n\t\tid: 1,\n\t\tdata: {\n\t\t\tname: 'John',\n\t\t\tage: 31,\n active: true,\n\t\t},\n\t\taddress: {\n\t\t\tcity: 'New York',\n\t\t\tcountry: 'USA',\n\t\t},\n\t},\n\t{\n\t\tid: 2,\n\t\tdata: {\n\t\t\tname: 'Jane',\n\t\t\tage: 26,\n active: true,\n\t\t},\n\t\taddress: {\n\t\t\tcity: 'London',\n\t\t\tcountry: 'UK',\n\t\t},\n\t},\n\t{\n\t\tid: 3,\n\t\tdata: {\n\t\t\tname: 'Jack',\n\t\t\tage: 36,\n active: true,\n\t\t},\n\t\taddress: {\n\t\t\tcity: 'Paris',\n\t\t\tcountry: 'France',\n\t\t},\n\t},\n]"
"data": [
{
"id": 1,
"data": {
"name": "John",
"age": 31,
"active": true
},
"address": {
"city": "New York",
"country": "USA"
}
},
{
"id": 2,
"data": {
"name": "Jane",
"age": 26,
"active": true
},
"address": {
"city": "London",
"country": "UK"
}
},
{
"id": 3,
"data": {
"name": "Jack",
"age": 36,
"active": true
},
"address": {
"city": "Paris",
"country": "France"
}
}
]
},
"id": "77327bfe-a4a8-49b8-a237-2f264536e5e3",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [660, 640]
},
{
"parameters": {
"jsCode": "return [\n\t{\n\t\tid: 1,\n\t\tdata: {\n\t\t\tname: 'John',\n\t\t\tage: 30,\n active: false,\n\t\t},\n\t\taddress: {\n\t\t\tcity: 'New York',\n\t\t\tcountry: 'us',\n \n\t\t},\n\t},\n\t{\n\t\tid: 2,\n\t\tdata: {\n\t\t\tname: 'Jane',\n\t\t\tage: 25,\n active: false,\n\t\t},\n\t\taddress: {\n\t\t\tcity: 'London',\n\t\t\tcountry: 'uk',\n\t\t},\n\t},\n\t{\n\t\tid: 3,\n\t\tdata: {\n\t\t\tname: 'Jack',\n\t\t\tage: 35,\n active: false,\n\t\t},\n\t\taddress: {\n\t\t\tcity: 'Paris',\n\t\t\tcountry: 'fr',\n\t\t},\n\t},\n]"
"data": [
{
"id": 1,
"data": {
"name": "John",
"age": 30,
"active": false
},
"address": {
"city": "New York",
"country": "us"
}
},
{
"id": 2,
"data": {
"name": "Jane",
"age": 25,
"active": false
},
"address": {
"city": "London",
"country": "uk"
}
},
{
"id": 3,
"data": {
"name": "Jack",
"age": 35,
"active": false
},
"address": {
"city": "Paris",
"country": "fr"
}
}
]
},
"id": "8ea09201-1ed6-4f9c-afb4-1261142a74a3",
"name": "Code1",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [660, 920]
},
@@ -11,21 +11,34 @@
},
{
"parameters": {
"jsCode": "return [\n {id: 1},\n {id: 2},\n {id: 3},\n {id: 4},\n];"
"data": [
{
"id": 1
},
{
"id": 2
},
{
"id": 3
},
{
"id": 4
}
]
},
"id": "cec18624-ced0-4de1-8987-d4b184b136b9",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1020, 200]
},
{
"parameters": {
"jsCode": "return [\n];"
"data": []
},
"id": "754d549c-82ce-4625-ba2b-6f8edcbf715e",
"name": "Code1",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1020, 400]
},
@@ -98,11 +98,13 @@
},
{
"parameters": {
"jsCode": "return {\"currentDate\":\"2023-04-11T13:51:59.965+00:00\"}\n"
"data": {
"currentDate": "2023-04-11T13:51:59.965+00:00"
}
},
"id": "7ba0c2a1-a683-4975-a2ca-70904111a3fc",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-140, 140]
}
@@ -1,93 +1,86 @@
{
"name": "Null Date",
"nodes": [
{
"parameters": {},
"id": "62bb450c-f2e3-41c9-9894-a954d2c5e115",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
1600,
740
]
},
{
"parameters": {
"jsCode": "return {date: null}"
},
"id": "47e4ce5b-2365-4987-a058-ae21964d135d",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
1820,
740
]
},
{
"parameters": {
"operation": "formatDate",
"date": "={{ $json.date }}",
"options": {}
},
"id": "9af21b91-9db6-40cd-98ee-ee969eb0a348",
"name": "Date & Time",
"type": "n8n-nodes-base.dateTime",
"typeVersion": 2,
"position": [
2040,
740
]
}
],
"pinData": {
"Date & Time": [
{
"json": {
"formattedDate": null
}
}
],
"Code": [
{
"json": {
"date": null
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Date & Time",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "",
"meta": {
"instanceId": "78577815012af39cf16dad7a787b0898c42fb7514b8a7f99b2136862c2af502c"
},
"tags": []
}
"name": "Null Date",
"nodes": [
{
"parameters": {},
"id": "62bb450c-f2e3-41c9-9894-a954d2c5e115",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [1600, 740]
},
{
"parameters": {
"data": {
"date": null
}
},
"id": "47e4ce5b-2365-4987-a058-ae21964d135d",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1820, 740]
},
{
"parameters": {
"operation": "formatDate",
"date": "={{ $json.date }}",
"options": {}
},
"id": "9af21b91-9db6-40cd-98ee-ee969eb0a348",
"name": "Date & Time",
"type": "n8n-nodes-base.dateTime",
"typeVersion": 2,
"position": [2040, 740]
}
],
"pinData": {
"Date & Time": [
{
"json": {
"formattedDate": null
}
}
],
"Code": [
{
"json": {
"date": null
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Date & Time",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "",
"meta": {
"instanceId": "78577815012af39cf16dad7a787b0898c42fb7514b8a7f99b2136862c2af502c"
},
"tags": []
}
@@ -23,12 +23,20 @@
},
{
"parameters": {
"jsCode": "return {\n \"id\": \"23423532\",\n \"name\": \"Jay Gatsby\",\n \"email\": \"gatsby@west-egg.com\",\n \"notes\": \"Keeps asking about a green light??\",\n \"country\": \"US\",\n \"created\": \"1925-04-10\",\n \"base64\": \"VGhpcyBpcyBzb21lIHRleHQgZW5jb2RlZCBhcyBiYXNlNjQ=\"\n }"
"data": {
"id": "23423532",
"name": "Jay Gatsby",
"email": "gatsby@west-egg.com",
"notes": "Keeps asking about a green light??",
"country": "US",
"created": "1925-04-10",
"base64": "VGhpcyBpcyBzb21lIHRleHQgZW5jb2RlZCBhcyBiYXNlNjQ="
}
},
"id": "ff53ab4c-43dd-4c35-b066-59d59e4a8209",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [520, 1040]
},
{
@@ -11,11 +11,36 @@
},
{
"parameters": {
"jsCode": "return [\n {\n id: 1,\n name: 'Adam',\n subscribed: false,\n updatedAt: '2011-10-05T14:48:00.000Z',\n notes: null,\n email: 'adam@mail.com',\n },\n {\n id: 2,\n name: 'Victor',\n subscribed: true,\n updatedAt: '2020-10-05T14:48:00.000Z',\n notes: 'some notes',\n email: 'victor@mail.com',\n },\n {\n id: 3,\n name: 'Sam',\n subscribed: true,\n updatedAt: '2021-10-05T14:48:00.000Z',\n notes: 'other notes',\n email: 'sam@mail.com',\n }, \n];"
"data": [
{
"id": 1,
"name": "Adam",
"subscribed": false,
"updatedAt": "2011-10-05T14:48:00.000Z",
"notes": null,
"email": "adam@mail.com"
},
{
"id": 2,
"name": "Victor",
"subscribed": true,
"updatedAt": "2020-10-05T14:48:00.000Z",
"notes": "some notes",
"email": "victor@mail.com"
},
{
"id": 3,
"name": "Sam",
"subscribed": true,
"updatedAt": "2021-10-05T14:48:00.000Z",
"notes": "other notes",
"email": "sam@mail.com"
}
]
},
"id": "032d6d92-27f4-4b07-b45f-5b79bdea594a",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [600, 1000]
},
@@ -1,335 +1,342 @@
{
"name": "Filter v2",
"nodes": [
{
"parameters": {
"jsCode": "return [\n {\n id: 1,\n name: 'Adam',\n subscribed: false,\n updatedAt: '2011-10-05T14:48:00.000Z',\n notes: null,\n email: 'adam@mail.com',\n },\n {\n id: 2,\n name: 'Victor',\n subscribed: true,\n updatedAt: '2020-10-05T14:48:00.000Z',\n notes: 'some notes',\n email: 'victor@mail.com',\n },\n {\n id: 3,\n name: 'Sam',\n subscribed: true,\n updatedAt: '2021-10-05T14:48:00.000Z',\n notes: 'other notes',\n email: 'sam@mail.com',\n }, \n];"
},
"id": "d8f7d6a2-02f5-40f6-83ca-540467f80ad8",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 1,
"position": [
2480,
1080
]
},
{
"parameters": {},
"id": "e112277f-9c6a-404f-a8f2-9b69fd88db16",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
2320,
1080
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
{
"parameters": {
"data": [
{
"id": 1,
"name": "Adam",
"subscribed": false,
"updatedAt": "2011-10-05T14:48:00.000Z",
"notes": null,
"email": "adam@mail.com"
},
{
"id": 2,
"name": "Victor",
"subscribed": true,
"updatedAt": "2020-10-05T14:48:00.000Z",
"notes": "some notes",
"email": "victor@mail.com"
},
{
"id": 3,
"name": "Sam",
"subscribed": true,
"updatedAt": "2021-10-05T14:48:00.000Z",
"notes": "other notes",
"email": "sam@mail.com"
}
]
},
"conditions": [
{
"id": "b65a0fbd-abdb-4622-8312-c12496444ad3",
"leftValue": "={{ $json.subscribed }}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
},
{
"id": "adf82766-a27f-450e-84a9-9616c5be5191",
"leftValue": "={{ $json.notes }}",
"rightValue": "",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
"id": "d8f7d6a2-02f5-40f6-83ca-540467f80ad8",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [2480, 1080]
},
"id": "daaa1445-f279-4edb-b2d6-b6415cb5fb55",
"name": "Filter Boolean",
"type": "n8n-nodes-base.filter",
"typeVersion": 2,
"position": [
2700,
800
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
{
"parameters": {},
"id": "e112277f-9c6a-404f-a8f2-9b69fd88db16",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [2320, 1080]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "b65a0fbd-abdb-4622-8312-c12496444ad3",
"leftValue": "={{ $json.subscribed }}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
},
{
"id": "adf82766-a27f-450e-84a9-9616c5be5191",
"leftValue": "={{ $json.notes }}",
"rightValue": "",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"conditions": [
{
"id": "480a5f38-0e31-44c5-9f61-5c34344d265e",
"leftValue": "={{ $json.updatedAt }}",
"rightValue": "2018-12-31T22:00:00",
"operator": {
"type": "dateTime",
"operation": "after"
}
},
{
"id": "a9240497-a583-4a6a-97e5-a4197036e04d",
"leftValue": "={{ $json.updatedAt }}",
"rightValue": "2021-08-03T03:30:08",
"operator": {
"type": "dateTime",
"operation": "before"
}
}
],
"combinator": "and"
},
"options": {}
"id": "daaa1445-f279-4edb-b2d6-b6415cb5fb55",
"name": "Filter Boolean",
"type": "n8n-nodes-base.filter",
"typeVersion": 2,
"position": [2700, 800]
},
"id": "816b4bac-2213-4057-b50e-1f7f39542476",
"name": "Filter Date",
"type": "n8n-nodes-base.filter",
"typeVersion": 2,
"position": [
2700,
960
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "loose"
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "480a5f38-0e31-44c5-9f61-5c34344d265e",
"leftValue": "={{ $json.updatedAt }}",
"rightValue": "2018-12-31T22:00:00",
"operator": {
"type": "dateTime",
"operation": "after"
}
},
{
"id": "a9240497-a583-4a6a-97e5-a4197036e04d",
"leftValue": "={{ $json.updatedAt }}",
"rightValue": "2021-08-03T03:30:08",
"operator": {
"type": "dateTime",
"operation": "before"
}
}
],
"combinator": "and"
},
"options": {}
},
"conditions": [
{
"id": "21265681-4230-4648-ba79-5513b3d9260f",
"leftValue": "={{ $json.id }}",
"rightValue": 1,
"operator": {
"type": "number",
"operation": "gt"
}
},
{
"id": "b4f736a7-d60d-4acd-abc4-04c324581ccf",
"leftValue": "={{ $json.id }}",
"rightValue": 3,
"operator": {
"type": "number",
"operation": "lte"
}
},
{
"id": "8b29b1da-8dc3-42b0-9440-7394709e3619",
"leftValue": "={{ $json.id }}",
"rightValue": "",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {
"looseTypeValidation": true
}
"id": "816b4bac-2213-4057-b50e-1f7f39542476",
"name": "Filter Date",
"type": "n8n-nodes-base.filter",
"typeVersion": 2,
"position": [2700, 960]
},
"id": "66fe5d53-2652-4860-8d31-cb033af3a7c3",
"name": "Filter Number",
"type": "n8n-nodes-base.filter",
"typeVersion": 2,
"position": [
2700,
1120
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": false,
"leftValue": "",
"typeValidation": "strict"
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "loose"
},
"conditions": [
{
"id": "21265681-4230-4648-ba79-5513b3d9260f",
"leftValue": "={{ $json.id }}",
"rightValue": 1,
"operator": {
"type": "number",
"operation": "gt"
}
},
{
"id": "b4f736a7-d60d-4acd-abc4-04c324581ccf",
"leftValue": "={{ $json.id }}",
"rightValue": 3,
"operator": {
"type": "number",
"operation": "lte"
}
},
{
"id": "8b29b1da-8dc3-42b0-9440-7394709e3619",
"leftValue": "={{ $json.id }}",
"rightValue": "",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {
"looseTypeValidation": true
}
},
"conditions": [
{
"id": "dafeb20d-80ae-4bb5-8375-ff61002f1bdd",
"leftValue": "={{ $json.name }}",
"rightValue": "v",
"operator": {
"type": "string",
"operation": "startsWith"
}
},
{
"id": "8bb39457-005a-427d-9584-6985a05b589d",
"leftValue": "={{ $json.name }}",
"rightValue": "s",
"operator": {
"type": "string",
"operation": "notContains"
}
}
],
"combinator": "or"
},
"options": {
"ignoreCase": true
}
"id": "66fe5d53-2652-4860-8d31-cb033af3a7c3",
"name": "Filter Number",
"type": "n8n-nodes-base.filter",
"typeVersion": 2,
"position": [2700, 1120]
},
"id": "b625a4d4-4bd7-4480-a76a-622d460f4392",
"name": "Filter String",
"type": "n8n-nodes-base.filter",
"typeVersion": 2,
"position": [
2700,
1280
]
}
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": false,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "dafeb20d-80ae-4bb5-8375-ff61002f1bdd",
"leftValue": "={{ $json.name }}",
"rightValue": "v",
"operator": {
"type": "string",
"operation": "startsWith"
}
},
{
"id": "8bb39457-005a-427d-9584-6985a05b589d",
"leftValue": "={{ $json.name }}",
"rightValue": "s",
"operator": {
"type": "string",
"operation": "notContains"
}
}
],
"combinator": "or"
},
"options": {
"ignoreCase": true
}
},
"id": "b625a4d4-4bd7-4480-a76a-622d460f4392",
"name": "Filter String",
"type": "n8n-nodes-base.filter",
"typeVersion": 2,
"position": [2700, 1280]
}
],
"pinData": {
"Filter Boolean": [
{
"json": {
"id": 2,
"name": "Victor",
"subscribed": true,
"updatedAt": "2020-10-05T14:48:00.000Z",
"notes": "some notes",
"email": "victor@mail.com"
}
},
{
"json": {
"id": 3,
"name": "Sam",
"subscribed": true,
"updatedAt": "2021-10-05T14:48:00.000Z",
"notes": "other notes",
"email": "sam@mail.com"
}
}
],
"Filter Date": [
{
"json": {
"id": 2,
"name": "Victor",
"subscribed": true,
"updatedAt": "2020-10-05T14:48:00.000Z",
"notes": "some notes",
"email": "victor@mail.com"
}
}
],
"Filter Number": [
{
"json": {
"id": 2,
"name": "Victor",
"subscribed": true,
"updatedAt": "2020-10-05T14:48:00.000Z",
"notes": "some notes",
"email": "victor@mail.com"
}
},
{
"json": {
"id": 3,
"name": "Sam",
"subscribed": true,
"updatedAt": "2021-10-05T14:48:00.000Z",
"notes": "other notes",
"email": "sam@mail.com"
}
}
],
"Filter String": [
{
"json": {
"id": 1,
"name": "Adam",
"subscribed": false,
"updatedAt": "2011-10-05T14:48:00.000Z",
"notes": null,
"email": "adam@mail.com"
}
},
{
"json": {
"id": 2,
"name": "Victor",
"subscribed": true,
"updatedAt": "2020-10-05T14:48:00.000Z",
"notes": "some notes",
"email": "victor@mail.com"
}
}
]
"Filter Boolean": [
{
"json": {
"id": 2,
"name": "Victor",
"subscribed": true,
"updatedAt": "2020-10-05T14:48:00.000Z",
"notes": "some notes",
"email": "victor@mail.com"
}
},
{
"json": {
"id": 3,
"name": "Sam",
"subscribed": true,
"updatedAt": "2021-10-05T14:48:00.000Z",
"notes": "other notes",
"email": "sam@mail.com"
}
}
],
"Filter Date": [
{
"json": {
"id": 2,
"name": "Victor",
"subscribed": true,
"updatedAt": "2020-10-05T14:48:00.000Z",
"notes": "some notes",
"email": "victor@mail.com"
}
}
],
"Filter Number": [
{
"json": {
"id": 2,
"name": "Victor",
"subscribed": true,
"updatedAt": "2020-10-05T14:48:00.000Z",
"notes": "some notes",
"email": "victor@mail.com"
}
},
{
"json": {
"id": 3,
"name": "Sam",
"subscribed": true,
"updatedAt": "2021-10-05T14:48:00.000Z",
"notes": "other notes",
"email": "sam@mail.com"
}
}
],
"Filter String": [
{
"json": {
"id": 1,
"name": "Adam",
"subscribed": false,
"updatedAt": "2011-10-05T14:48:00.000Z",
"notes": null,
"email": "adam@mail.com"
}
},
{
"json": {
"id": 2,
"name": "Victor",
"subscribed": true,
"updatedAt": "2020-10-05T14:48:00.000Z",
"notes": "some notes",
"email": "victor@mail.com"
}
}
]
},
"connections": {
"Code": {
"main": [
[
{
"node": "Filter Boolean",
"type": "main",
"index": 0
},
{
"node": "Filter Date",
"type": "main",
"index": 0
},
{
"node": "Filter Number",
"type": "main",
"index": 0
},
{
"node": "Filter String",
"type": "main",
"index": 0
}
]
]
},
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
}
"Code": {
"main": [
[
{
"node": "Filter Boolean",
"type": "main",
"index": 0
},
{
"node": "Filter Date",
"type": "main",
"index": 0
},
{
"node": "Filter Number",
"type": "main",
"index": 0
},
{
"node": "Filter String",
"type": "main",
"index": 0
}
]
]
},
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
"executionOrder": "v1"
},
"versionId": "1c680397-66f2-4ec1-a8a6-bb60d6d564d7",
"id": "0nx3Xwa3s9uIqflV",
"tags": []
}
}
@@ -50,11 +50,24 @@
},
{
"parameters": {
"jsCode": "return [\n{\n\"id\":\n1,\n\"test\":\n\"111\"\n},\n{\n\"id\":\n2,\n\"test\":\n\"222\"\n},\n{\n\"id\":\n3,\n\"test\":\n\"333\"\n},\n];"
"data": [
{
"id": 1,
"test": "111"
},
{
"id": 2,
"test": "222"
},
{
"id": 3,
"test": "333"
}
]
},
"id": "11d06660-cbd3-4bd2-9619-68e82438a0e3",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [240, 340]
}
@@ -1,469 +1,418 @@
{
"name": "html extract fix",
"nodes": [
{
"parameters": {},
"id": "b421815f-bbeb-480d-a759-6a0360a050b6",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
480,
780
]
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "html"
}
]
},
"options": {
"cleanUpText": true
}
},
"id": "73ed18ec-3a26-4300-b917-240faa810a33",
"name": "HTML",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [
1280,
260
]
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "html",
"skipSelectors": "img, a"
}
]
},
"options": {}
},
"id": "d8eaf4c4-be91-43ba-b5ff-efcc7ece60b0",
"name": "HTML2",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [
1280,
600
]
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "p",
"returnArray": true
}
]
},
"options": {}
},
"id": "145a5168-69fd-49bd-a2a0-07841854937c",
"name": "HTML3",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [
1280,
760
]
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "=html"
}
]
},
"options": {
"trimValues": true
}
},
"id": "7a370ce9-e4c4-46e0-89a4-881a6c8a7019",
"name": "HTML1",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [
1280,
420
]
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "div",
"returnValue": "attribute"
}
]
},
"options": {}
},
"id": "64c9005d-f9fe-457e-8e24-f1c59e76aeae",
"name": "HTML4",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [
1280,
940
]
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "body",
"returnValue": "html"
}
]
},
"options": {}
},
"id": "eef6b477-2c28-4c20-884f-93bbd48f9d0d",
"name": "HTML5",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [
1280,
1120
]
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "#text-id",
"returnValue": "value"
}
]
},
"options": {}
},
"id": "a548e5e3-0dcd-4f52-a581-bd046ef325b3",
"name": "HTML6",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [
1280,
1280
]
},
{
"parameters": {
"jsCode": "return {\n data: `<html>\n<head>\n\t<title>My Page</title>\t\n</head>\n<body>\n\t<h1>My Page</h1>\n\t<p>Hello World</p>\n\t<div class=\"content\">\n\t\t<p>Another paragraph\\n</p>\n\t\t<p>Yet \\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\another paragraph\\n</p>\n\t\t<p>And\\one more\\n</p>\n\t</div>\n\t<img src=\"https://n8n.io/n8n-logo.png\" alt=\"n8n.io logo\" />\n\t<a href=\"https://n8n.io\">n8n.io</a>\n <input id=\"text-id\" type=\"text\" value=\"n8n\" />\n</body>\n</html>`\n};"
},
"id": "ed46f03d-6cde-4225-beab-fdbe82bf095f",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
780,
740
]
},
{
"parameters": {},
"id": "9d4c07df-3348-4b0e-b144-dfb038bddb99",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1500,
260
]
},
{
"parameters": {},
"id": "0dd56421-7e3a-4908-a933-c4e09de6b7d5",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1580,
620
]
},
{
"parameters": {},
"id": "15c21267-b4b7-4805-ad40-32060400fcef",
"name": "No Operation, do nothing2",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1600,
780
]
},
{
"parameters": {},
"id": "d6fd1d78-e24b-4237-bd66-620130f0e5fc",
"name": "No Operation, do nothing3",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1640,
1140
]
},
{
"parameters": {},
"id": "f8b7457b-7b46-4af6-958c-ad770f29e587",
"name": "No Operation, do nothing4",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1560,
960
]
},
{
"parameters": {},
"id": "f509b012-78ea-4e14-9ee4-ebdd562efe3e",
"name": "No Operation, do nothing5",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1560,
420
]
},
{
"parameters": {},
"id": "173f20fb-80aa-42d1-97b1-fc7a751fbedd",
"name": "No Operation, do nothing6",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1580,
1300
]
}
],
"pinData": {
"No Operation, do nothing4": [
{
"json": {
"data": {
"class": "content"
}
}
}
],
"No Operation, do nothing": [
{
"json": {
"data": "MY PAGEHello WorldAnother paragraphYet another paragraphAndone moren8n.io logo [https://n8n.io/n8n-logo.png] n8n.io [https://n8n.io]"
}
}
],
"No Operation, do nothing5": [
{
"json": {
"data": "MY PAGE\n\nHello World\n\nAnother paragraph\n\nYet another paragraph\n\nAndone more\n\nn8n.io logo [https://n8n.io/n8n-logo.png] n8n.io [https://n8n.io]"
}
}
],
"No Operation, do nothing1": [
{
"json": {
"data": "MY PAGE\n\nHello World\n\nAnother paragraph\n\nYet another paragraph\n\nAndone more"
}
}
],
"No Operation, do nothing2": [
{
"json": {
"data": [
"Hello World",
"Another paragraph",
"Yet another paragraph",
"Andone more"
]
}
}
],
"No Operation, do nothing3": [
{
"json": {
"data": "\n\t<h1>My Page</h1>\n\t<p>Hello World</p>\n\t<div class=\"content\">\n\t\t<p>Another paragraph\n</p>\n\t\t<p>Yet \n\n\t\t\t\t\t\tanother paragraph\n</p>\n\t\t<p>Andone more\n</p>\n\t</div>\n\t<img src=\"https://n8n.io/n8n-logo.png\" alt=\"n8n.io logo\">\n\t<a href=\"https://n8n.io\">n8n.io</a>\n <input id=\"text-id\" type=\"text\" value=\"n8n\">\n\n"
}
}
],
"No Operation, do nothing6": [
{
"json": {
"data": "n8n"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "HTML",
"type": "main",
"index": 0
},
{
"node": "HTML1",
"type": "main",
"index": 0
},
{
"node": "HTML2",
"type": "main",
"index": 0
},
{
"node": "HTML3",
"type": "main",
"index": 0
},
{
"node": "HTML4",
"type": "main",
"index": 0
},
{
"node": "HTML5",
"type": "main",
"index": 0
},
{
"node": "HTML6",
"type": "main",
"index": 0
}
]
]
},
"HTML": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
},
"HTML6": {
"main": [
[
{
"node": "No Operation, do nothing6",
"type": "main",
"index": 0
}
]
]
},
"HTML5": {
"main": [
[
{
"node": "No Operation, do nothing3",
"type": "main",
"index": 0
}
]
]
},
"HTML4": {
"main": [
[
{
"node": "No Operation, do nothing4",
"type": "main",
"index": 0
}
]
]
},
"HTML3": {
"main": [
[
{
"node": "No Operation, do nothing2",
"type": "main",
"index": 0
}
]
]
},
"HTML2": {
"main": [
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
]
]
},
"HTML1": {
"main": [
[
{
"node": "No Operation, do nothing5",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "170b087f-19bf-4cbd-90cf-d684fb112034",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "be251a83c052a9862eeac953816fbb1464f89dfbf79d7ac490a8e336a8cc8bfd"
},
"id": "vqwcz5PIBQmAw4SZ",
"tags": []
"name": "html extract fix",
"nodes": [
{
"parameters": {},
"id": "b421815f-bbeb-480d-a759-6a0360a050b6",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [480, 780]
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "html"
}
]
},
"options": {
"cleanUpText": true
}
},
"id": "73ed18ec-3a26-4300-b917-240faa810a33",
"name": "HTML",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [1280, 260]
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "html",
"skipSelectors": "img, a"
}
]
},
"options": {}
},
"id": "d8eaf4c4-be91-43ba-b5ff-efcc7ece60b0",
"name": "HTML2",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [1280, 600]
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "p",
"returnArray": true
}
]
},
"options": {}
},
"id": "145a5168-69fd-49bd-a2a0-07841854937c",
"name": "HTML3",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [1280, 760]
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "=html"
}
]
},
"options": {
"trimValues": true
}
},
"id": "7a370ce9-e4c4-46e0-89a4-881a6c8a7019",
"name": "HTML1",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [1280, 420]
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "div",
"returnValue": "attribute"
}
]
},
"options": {}
},
"id": "64c9005d-f9fe-457e-8e24-f1c59e76aeae",
"name": "HTML4",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [1280, 940]
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "body",
"returnValue": "html"
}
]
},
"options": {}
},
"id": "eef6b477-2c28-4c20-884f-93bbd48f9d0d",
"name": "HTML5",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [1280, 1120]
},
{
"parameters": {
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "#text-id",
"returnValue": "value"
}
]
},
"options": {}
},
"id": "a548e5e3-0dcd-4f52-a581-bd046ef325b3",
"name": "HTML6",
"type": "n8n-nodes-base.html",
"typeVersion": 1.2,
"position": [1280, 1280]
},
{
"parameters": {
"data": {
"data": "<html>\n<head>\n\t<title>My Page</title>\t\n</head>\n<body>\n\t<h1>My Page</h1>\n\t<p>Hello World</p>\n\t<div class=\"content\">\n\t\t<p>Another paragraph\n</p>\n\t\t<p>Yet \r\n\r\n\t\t\t\t\t\tanother paragraph\n</p>\n\t\t<p>Andone more\n</p>\n\t</div>\n\t<img src=\"https://n8n.io/n8n-logo.png\" alt=\"n8n.io logo\" />\n\t<a href=\"https://n8n.io\">n8n.io</a>\n <input id=\"text-id\" type=\"text\" value=\"n8n\" />\n</body>\n</html>"
}
},
"id": "ed46f03d-6cde-4225-beab-fdbe82bf095f",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [780, 740]
},
{
"parameters": {},
"id": "9d4c07df-3348-4b0e-b144-dfb038bddb99",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1500, 260]
},
{
"parameters": {},
"id": "0dd56421-7e3a-4908-a933-c4e09de6b7d5",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1580, 620]
},
{
"parameters": {},
"id": "15c21267-b4b7-4805-ad40-32060400fcef",
"name": "No Operation, do nothing2",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1600, 780]
},
{
"parameters": {},
"id": "d6fd1d78-e24b-4237-bd66-620130f0e5fc",
"name": "No Operation, do nothing3",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1640, 1140]
},
{
"parameters": {},
"id": "f8b7457b-7b46-4af6-958c-ad770f29e587",
"name": "No Operation, do nothing4",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1560, 960]
},
{
"parameters": {},
"id": "f509b012-78ea-4e14-9ee4-ebdd562efe3e",
"name": "No Operation, do nothing5",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1560, 420]
},
{
"parameters": {},
"id": "173f20fb-80aa-42d1-97b1-fc7a751fbedd",
"name": "No Operation, do nothing6",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1580, 1300]
}
],
"pinData": {
"No Operation, do nothing4": [
{
"json": {
"data": {
"class": "content"
}
}
}
],
"No Operation, do nothing": [
{
"json": {
"data": "MY PAGEHello WorldAnother paragraphYet another paragraphAndone moren8n.io logo [https://n8n.io/n8n-logo.png] n8n.io [https://n8n.io]"
}
}
],
"No Operation, do nothing5": [
{
"json": {
"data": "MY PAGE\n\nHello World\n\nAnother paragraph\n\nYet another paragraph\n\nAndone more\n\nn8n.io logo [https://n8n.io/n8n-logo.png] n8n.io [https://n8n.io]"
}
}
],
"No Operation, do nothing1": [
{
"json": {
"data": "MY PAGE\n\nHello World\n\nAnother paragraph\n\nYet another paragraph\n\nAndone more"
}
}
],
"No Operation, do nothing2": [
{
"json": {
"data": ["Hello World", "Another paragraph", "Yet another paragraph", "Andone more"]
}
}
],
"No Operation, do nothing3": [
{
"json": {
"data": "\n\t<h1>My Page</h1>\n\t<p>Hello World</p>\n\t<div class=\"content\">\n\t\t<p>Another paragraph\n</p>\n\t\t<p>Yet \n\n\t\t\t\t\t\tanother paragraph\n</p>\n\t\t<p>Andone more\n</p>\n\t</div>\n\t<img src=\"https://n8n.io/n8n-logo.png\" alt=\"n8n.io logo\">\n\t<a href=\"https://n8n.io\">n8n.io</a>\n <input id=\"text-id\" type=\"text\" value=\"n8n\">\n\n"
}
}
],
"No Operation, do nothing6": [
{
"json": {
"data": "n8n"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "HTML",
"type": "main",
"index": 0
},
{
"node": "HTML1",
"type": "main",
"index": 0
},
{
"node": "HTML2",
"type": "main",
"index": 0
},
{
"node": "HTML3",
"type": "main",
"index": 0
},
{
"node": "HTML4",
"type": "main",
"index": 0
},
{
"node": "HTML5",
"type": "main",
"index": 0
},
{
"node": "HTML6",
"type": "main",
"index": 0
}
]
]
},
"HTML": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
},
"HTML6": {
"main": [
[
{
"node": "No Operation, do nothing6",
"type": "main",
"index": 0
}
]
]
},
"HTML5": {
"main": [
[
{
"node": "No Operation, do nothing3",
"type": "main",
"index": 0
}
]
]
},
"HTML4": {
"main": [
[
{
"node": "No Operation, do nothing4",
"type": "main",
"index": 0
}
]
]
},
"HTML3": {
"main": [
[
{
"node": "No Operation, do nothing2",
"type": "main",
"index": 0
}
]
]
},
"HTML2": {
"main": [
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
]
]
},
"HTML1": {
"main": [
[
{
"node": "No Operation, do nothing5",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "170b087f-19bf-4cbd-90cf-d684fb112034",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "be251a83c052a9862eeac953816fbb1464f89dfbf79d7ac490a8e336a8cc8bfd"
},
"id": "vqwcz5PIBQmAw4SZ",
"tags": []
}
@@ -11,11 +11,33 @@
},
{
"parameters": {
"jsCode": "return [\n {\n \"headers\": {\n \"host\": \"n8n.mydomain.live\",\n \"user-agent\": \"axios/1.2.1\",\n \"content-length\": \"4405\",\n \"accept\": \"application/json, text/plain, */*\",\n \"accept-encoding\": \"gzip, compress, deflate, br\",\n \"content-type\": \"application/json\",\n \"x-forwarded-for\": \"85.203.36.52\",\n \"x-forwarded-host\": \"n8n.mydomain.live\",\n \"x-forwarded-port\": \"443\",\n \"x-forwarded-proto\": \"https\",\n \"x-forwarded-server\": \"8bd0a4ed6c1a\",\n \"x-real-ip\": \"85.203.36.52\"\n },\n \"params\": {},\n \"query\": {},\n \"body\": {\n \"html\": \"<html><head></head><body bgcolor=\\\"FFFFFf\\\" link=\\\"006666\\\" alink=\\\"8B4513\\\" vlink=\\\"006666\\\"><hmtl> <title>webpage1</title> <table width=\\\"75%\\\" align=\\\"center\\\"> <tbody><tr> <td> <div align=\\\"center\\\"><h1>STARTING . . . </h1></div> <div align=\\\"justify\\\"><p>There are lots of ways to create web pages using already coded programmes. These lessons will teach you how to use the underlying HyperText Markup Language - HTML. <br> </p><p>HTML isn't computer code, but is a language that uses US English to enable texts (words, images, sounds) to be inserted and formatting such as colo(u)r and centre/ering to be written in. The process is fairly simple; the main difficulties often lie in small mistakes - if you slip up while word processing your reader may pick up your typos, but the page will still be legible. However, if your HTML is inaccurate the page may not appear - writing web pages is, at the least, very good practice for proof reading!</p> <p>Learning HTML will enable you to: </p><ul> <li>create your own simple pages </li><li>read and appreciate pages created by others </li><li>develop an understanding of the creative and literary implications of web-texts </li><li>have the confidence to branch out into more complex web design </li></ul><p></p> <p>A HTML web page is made up of tags. Tags are placed in brackets like this <b>&lt; tag &gt; </b>. A tag tells the browser how to display information. Most tags need to be opened &lt; tag &gt; and closed &lt; /tag &gt;. </p><p> To make a simple web page you need to know only four tags: </p><ul> <li>&lt; HTML &gt; tells the browser your page is written in HTML format </li><li>&lt; HEAD &gt; this is a kind of preface of vital information that doesn't appear on the screen. </li><li>&lt; TITLE &gt;Write the title of the web page here - this is the information that viewers see on the upper bar of their screen. (I've given this page the title 'webpage1'). </li><li>&lt; BODY &gt;This is where you put the content of your page, the words and pictures that people read on the screen. </li></ul> <p>All these tags need to be closed. </p><h4>EXERCISE</h4> <p>Write a simple web page.</p> <p> Copy out exactly the HTML below, using a WP program such as Notepad.<br> Information in <i>italics</i> indicates where you can insert your own text, other information is HTML and needs to be exact. However, make sure there are no spaces between the tag brackets and the text inside.<br> (Find Notepad by going to the START menu PROGRAMS ACCESSORIES NOTEPAD). </p><p> &lt; HTML &gt;<br> &lt; HEAD &gt;<br> &lt; TITLE &gt;<i> title of page</i>&lt; /TITLE &gt;<br> &lt; /HEAD &gt;<br> &lt; BODY&gt;<br> <i> write what you like here: 'my first web page', or a piece about what you are reading, or a few thoughts on the course, or copy out a few words from a book or cornflake packet. Just type in your words using no extras such as bold, or italics, as these have special HTML tags, although you may use upper and lower case letters and single spaces. </i><br> &lt; /BODY &gt;<br> &lt; /HTML &gt;<br> </p><p>Save the file as 'first.html' (ie. call the file anything at all) It's useful if you start a folder - just as you would for word-processing - and call it something like WEBPAGES, and put your first.html file in the folder. </p><p>NOW - open your browser.<br> On Netscape the process is: <br> Top menu; FILE OPEN PAGE CHOOSE FILE<br> Click on your WEBPAGES folder FIRST file<br> Click 'open' and your page should appear. </p><p>On Internet Explorer: <br> Top menu; FILE OPEN BROWSE <br> Click on your WEBPAGES folder FIRST file<br> Click 'open' and your page should appear.<br> </p><p>If the page doesn't open, go back over your notepad typing and make sure that all the HTML tags are correct. Check there are no spaces between tags and internal text; check that all tags are closed; check that you haven't written &lt; HTLM &gt; or &lt; BDDY &gt;. Your page will work eventually. </p><p> Make another page. Call it somethingdifferent.html and place it in the same WEBPAGES folder as detailed above. </p><p>start formatting in <a href=\\\"webpage2.html\\\">lesson two</a> <br><a href=\\\"col3.html\\\">back to wws index</a> </p> <p></p> </div> </td> </tr> </tbody></table> </hmtl></body></html>\"\n }\n }\n];"
"data": [
{
"headers": {
"host": "n8n.mydomain.live",
"user-agent": "axios/1.2.1",
"content-length": "4405",
"accept": "application/json, text/plain, */*",
"accept-encoding": "gzip, compress, deflate, br",
"content-type": "application/json",
"x-forwarded-for": "85.203.36.52",
"x-forwarded-host": "n8n.mydomain.live",
"x-forwarded-port": "443",
"x-forwarded-proto": "https",
"x-forwarded-server": "8bd0a4ed6c1a",
"x-real-ip": "85.203.36.52"
},
"params": {},
"query": {},
"body": {
"html": "<html><head></head><body bgcolor=\"FFFFFf\" link=\"006666\" alink=\"8B4513\" vlink=\"006666\"><hmtl> <title>webpage1</title> <table width=\"75%\" align=\"center\"> <tbody><tr> <td> <div align=\"center\"><h1>STARTING . . . </h1></div> <div align=\"justify\"><p>There are lots of ways to create web pages using already coded programmes. These lessons will teach you how to use the underlying HyperText Markup Language - HTML. <br> </p><p>HTML isn't computer code, but is a language that uses US English to enable texts (words, images, sounds) to be inserted and formatting such as colo(u)r and centre/ering to be written in. The process is fairly simple; the main difficulties often lie in small mistakes - if you slip up while word processing your reader may pick up your typos, but the page will still be legible. However, if your HTML is inaccurate the page may not appear - writing web pages is, at the least, very good practice for proof reading!</p> <p>Learning HTML will enable you to: </p><ul> <li>create your own simple pages </li><li>read and appreciate pages created by others </li><li>develop an understanding of the creative and literary implications of web-texts </li><li>have the confidence to branch out into more complex web design </li></ul><p></p> <p>A HTML web page is made up of tags. Tags are placed in brackets like this <b>&lt; tag &gt; </b>. A tag tells the browser how to display information. Most tags need to be opened &lt; tag &gt; and closed &lt; /tag &gt;. </p><p> To make a simple web page you need to know only four tags: </p><ul> <li>&lt; HTML &gt; tells the browser your page is written in HTML format </li><li>&lt; HEAD &gt; this is a kind of preface of vital information that doesn't appear on the screen. </li><li>&lt; TITLE &gt;Write the title of the web page here - this is the information that viewers see on the upper bar of their screen. (I've given this page the title 'webpage1'). </li><li>&lt; BODY &gt;This is where you put the content of your page, the words and pictures that people read on the screen. </li></ul> <p>All these tags need to be closed. </p><h4>EXERCISE</h4> <p>Write a simple web page.</p> <p> Copy out exactly the HTML below, using a WP program such as Notepad.<br> Information in <i>italics</i> indicates where you can insert your own text, other information is HTML and needs to be exact. However, make sure there are no spaces between the tag brackets and the text inside.<br> (Find Notepad by going to the START menu PROGRAMS ACCESSORIES NOTEPAD). </p><p> &lt; HTML &gt;<br> &lt; HEAD &gt;<br> &lt; TITLE &gt;<i> title of page</i>&lt; /TITLE &gt;<br> &lt; /HEAD &gt;<br> &lt; BODY&gt;<br> <i> write what you like here: 'my first web page', or a piece about what you are reading, or a few thoughts on the course, or copy out a few words from a book or cornflake packet. Just type in your words using no extras such as bold, or italics, as these have special HTML tags, although you may use upper and lower case letters and single spaces. </i><br> &lt; /BODY &gt;<br> &lt; /HTML &gt;<br> </p><p>Save the file as 'first.html' (ie. call the file anything at all) It's useful if you start a folder - just as you would for word-processing - and call it something like WEBPAGES, and put your first.html file in the folder. </p><p>NOW - open your browser.<br> On Netscape the process is: <br> Top menu; FILE OPEN PAGE CHOOSE FILE<br> Click on your WEBPAGES folder FIRST file<br> Click 'open' and your page should appear. </p><p>On Internet Explorer: <br> Top menu; FILE OPEN BROWSE <br> Click on your WEBPAGES folder FIRST file<br> Click 'open' and your page should appear.<br> </p><p>If the page doesn't open, go back over your notepad typing and make sure that all the HTML tags are correct. Check there are no spaces between tags and internal text; check that all tags are closed; check that you haven't written &lt; HTLM &gt; or &lt; BDDY &gt;. Your page will work eventually. </p><p> Make another page. Call it somethingdifferent.html and place it in the same WEBPAGES folder as detailed above. </p><p>start formatting in <a href=\"webpage2.html\">lesson two</a> <br><a href=\"col3.html\">back to wws index</a> </p> <p></p> </div> </td> </tr> </tbody></table> </hmtl></body></html>"
}
}
]
},
"id": "88a269af-c315-491c-b897-578cfb81268a",
"name": "Mock data",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [520, 580]
},
@@ -7,23 +7,26 @@
"name": "On clicking 'execute'",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-2440,
520
]
"position": [-2440, 520]
},
{
"parameters": {
"jsCode": "return [\n { value: true, value2: false },\n { value: false, value2: true },\n];"
"data": [
{
"value": true,
"value2": false
},
{
"value": false,
"value2": true
}
]
},
"id": "2aa0a57b-b25a-4293-b7bf-fc240d4d21f4",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [
-2240,
520
]
"position": [-2240, 520]
},
{
"parameters": {
@@ -45,10 +48,7 @@
"name": "IF ANY",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-2000,
700
],
"position": [-2000, 700],
"alwaysOutputData": false
},
{
@@ -57,10 +57,7 @@
"name": "On True ANY",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-1760,
620
]
"position": [-1760, 620]
},
{
"parameters": {},
@@ -68,10 +65,7 @@
"name": "On False ANY",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-1760,
800
]
"position": [-1760, 800]
},
{
"parameters": {
@@ -88,10 +82,7 @@
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-2000,
340
]
"position": [-2000, 340]
},
{
"parameters": {},
@@ -99,10 +90,7 @@
"name": "On True",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-1760,
260
]
"position": [-1760, 260]
},
{
"parameters": {},
@@ -110,10 +98,7 @@
"name": "On False",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-1760,
420
]
"position": [-1760, 420]
},
{
"parameters": {
@@ -131,10 +116,7 @@
"name": "IF Not Equal",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-1420,
520
]
"position": [-1420, 520]
},
{
"parameters": {},
@@ -142,10 +124,7 @@
"name": "On True Not Equal",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-1180,
420
]
"position": [-1180, 420]
},
{
"parameters": {},
@@ -153,10 +132,7 @@
"name": "On False Not Equal",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-1180,
600
]
"position": [-1180, 600]
}
],
"pinData": {
@@ -303,4 +279,4 @@
"instanceId": "104a4d08d8897b8bdeb38aaca515021075e0bd8544c983c2bb8c86e6a8e6081c"
},
"tags": []
}
}
@@ -7,23 +7,26 @@
"name": "On clicking 'execute'",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
140,
1560
]
"position": [140, 1560]
},
{
"parameters": {
"jsCode": "return [\n { dayOne: '2023-01-01T00:00:00.000-05:00', dayTwo: '2023-01-02T00:00:00.000-05:00' },\n { dayOne: '2023-01-02T00:00:00.000-05:00', dayTwo: '2023-01-01T00:00:00.000-05:00' },\n];"
"data": [
{
"dayOne": "2023-01-01T00:00:00.000-05:00",
"dayTwo": "2023-01-02T00:00:00.000-05:00"
},
{
"dayOne": "2023-01-02T00:00:00.000-05:00",
"dayTwo": "2023-01-01T00:00:00.000-05:00"
}
]
},
"id": "c5d906bc-909a-45d9-a990-9ea6279cc807",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [
340,
1560
]
"position": [340, 1560]
},
{
"parameters": {
@@ -40,10 +43,7 @@
"name": "IF Occured After",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
560,
1440
]
"position": [560, 1440]
},
{
"parameters": {},
@@ -51,10 +51,7 @@
"name": "On False Occured After",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
980,
1460
]
"position": [980, 1460]
},
{
"parameters": {},
@@ -62,10 +59,7 @@
"name": "On True Occured After",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
760,
1420
]
"position": [760, 1420]
},
{
"parameters": {
@@ -83,10 +77,7 @@
"name": "IF Occured Before",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
560,
1680
]
"position": [560, 1680]
},
{
"parameters": {},
@@ -94,10 +85,7 @@
"name": "On True Occured Before",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
760,
1660
]
"position": [760, 1660]
},
{
"parameters": {},
@@ -105,10 +93,7 @@
"name": "On False Occured Before",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
980,
1700
]
"position": [980, 1700]
}
],
"pinData": {
@@ -218,4 +203,4 @@
"instanceId": "104a4d08d8897b8bdeb38aaca515021075e0bd8544c983c2bb8c86e6a8e6081c"
},
"tags": []
}
}
@@ -7,23 +7,24 @@
"name": "On clicking 'execute'",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-5180,
3020
]
"position": [-5180, 3020]
},
{
"parameters": {
"jsCode": "return [\n { value: 1 },\n { value: 2 },\n];"
"data": [
{
"value": 1
},
{
"value": 2
}
]
},
"id": "77e63f88-e5fc-4662-af2e-6947a4768cf3",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [
-4980,
3020
]
"position": [-4980, 3020]
},
{
"parameters": {
@@ -40,10 +41,7 @@
"name": "IF Smaller",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-4760,
2480
]
"position": [-4760, 2480]
},
{
"parameters": {
@@ -61,10 +59,7 @@
"name": "IF Smaller or Equal",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-4760,
2660
]
"position": [-4760, 2660]
},
{
"parameters": {},
@@ -72,10 +67,7 @@
"name": "On True Smaller",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-4560,
2460
]
"position": [-4560, 2460]
},
{
"parameters": {},
@@ -83,10 +75,7 @@
"name": "On False Smaller",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-4320,
2500
]
"position": [-4320, 2500]
},
{
"parameters": {},
@@ -94,10 +83,7 @@
"name": "On True Smaller or Equal",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-4560,
2640
]
"position": [-4560, 2640]
},
{
"parameters": {
@@ -115,10 +101,7 @@
"name": "IF Equal",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-4760,
2840
]
"position": [-4760, 2840]
},
{
"parameters": {},
@@ -126,10 +109,7 @@
"name": "On True Equal",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-4560,
2820
]
"position": [-4560, 2820]
},
{
"parameters": {},
@@ -137,10 +117,7 @@
"name": "On False Equal",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-4320,
2860
]
"position": [-4320, 2860]
},
{
"parameters": {
@@ -158,10 +135,7 @@
"name": "IF Not Equal",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-4760,
3020
]
"position": [-4760, 3020]
},
{
"parameters": {},
@@ -169,10 +143,7 @@
"name": "On True Not Equal",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-4560,
3000
]
"position": [-4560, 3000]
},
{
"parameters": {},
@@ -180,10 +151,7 @@
"name": "On False Not Equal",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-4320,
3040
]
"position": [-4320, 3040]
},
{
"parameters": {
@@ -201,10 +169,7 @@
"name": "IF Larger",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-4760,
3200
]
"position": [-4760, 3200]
},
{
"parameters": {},
@@ -212,10 +177,7 @@
"name": "On True Larger",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-4560,
3180
]
"position": [-4560, 3180]
},
{
"parameters": {},
@@ -223,10 +185,7 @@
"name": "On False Larger",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-4320,
3220
]
"position": [-4320, 3220]
},
{
"parameters": {
@@ -244,10 +203,7 @@
"name": "IF Larger or Equal",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-4760,
3400
]
"position": [-4760, 3400]
},
{
"parameters": {},
@@ -255,10 +211,7 @@
"name": "On True Larger or Equal",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-4560,
3380
]
"position": [-4560, 3380]
},
{
"parameters": {
@@ -275,10 +228,7 @@
"name": "IF Is Empty",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-4760,
3600
]
"position": [-4760, 3600]
},
{
"parameters": {},
@@ -286,10 +236,7 @@
"name": "On False Is Empty",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-4320,
3620
]
"position": [-4320, 3620]
},
{
"parameters": {
@@ -306,10 +253,7 @@
"name": "IF Is Not Empty",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-4760,
3780
]
"position": [-4760, 3780]
},
{
"parameters": {},
@@ -317,10 +261,7 @@
"name": "On True Is Not Empty",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-4560,
3760
]
"position": [-4560, 3760]
}
],
"pinData": {
@@ -613,4 +554,4 @@
"instanceId": "104a4d08d8897b8bdeb38aaca515021075e0bd8544c983c2bb8c86e6a8e6081c"
},
"tags": []
}
}
@@ -7,23 +7,24 @@
"name": "On clicking 'execute'",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-3120,
600
]
"position": [-3120, 600]
},
{
"parameters": {
"jsCode": "return [\n { name: \"Elon Musk\" },\n { name: \"Arnold Schwarzenegger\"},\n];"
"data": [
{
"name": "Elon Musk"
},
{
"name": "Arnold Schwarzenegger"
}
]
},
"id": "a35687af-99c1-43b2-aa43-955fcd87ff81",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [
-2920,
600
]
"position": [-2920, 600]
},
{
"parameters": {},
@@ -31,10 +32,7 @@
"name": "On True",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2460,
-500
]
"position": [-2460, -500]
},
{
"parameters": {},
@@ -42,10 +40,7 @@
"name": "On False",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2220,
-460
]
"position": [-2220, -460]
},
{
"parameters": {
@@ -63,10 +58,7 @@
"name": "IF Contains",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-2660,
-480
]
"position": [-2660, -480]
},
{
"parameters": {
@@ -84,10 +76,7 @@
"name": "IF Not Contains",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-2660,
-300
]
"position": [-2660, -300]
},
{
"parameters": {},
@@ -95,10 +84,7 @@
"name": "On True Contains",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2460,
-320
]
"position": [-2460, -320]
},
{
"parameters": {},
@@ -106,10 +92,7 @@
"name": "On False Contains",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2220,
-280
]
"position": [-2220, -280]
},
{
"parameters": {
@@ -127,10 +110,7 @@
"name": "IF Ends With",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-2660,
-120
]
"position": [-2660, -120]
},
{
"parameters": {},
@@ -138,10 +118,7 @@
"name": "On True Ends With",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2460,
-140
]
"position": [-2460, -140]
},
{
"parameters": {},
@@ -149,10 +126,7 @@
"name": "On False Ends With",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2220,
-100
]
"position": [-2220, -100]
},
{
"parameters": {},
@@ -160,10 +134,7 @@
"name": "On True Not Ends With",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2460,
20
]
"position": [-2460, 20]
},
{
"parameters": {
@@ -181,10 +152,7 @@
"name": "IF Not Ends With",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-2660,
40
]
"position": [-2660, 40]
},
{
"parameters": {},
@@ -192,10 +160,7 @@
"name": "On False Not Ends With",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2220,
60
]
"position": [-2220, 60]
},
{
"parameters": {
@@ -212,10 +177,7 @@
"name": "IF Equal",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-2660,
240
]
"position": [-2660, 240]
},
{
"parameters": {},
@@ -223,10 +185,7 @@
"name": "On True Equal",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2460,
220
]
"position": [-2460, 220]
},
{
"parameters": {},
@@ -234,10 +193,7 @@
"name": "On False Equal",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2220,
260
]
"position": [-2220, 260]
},
{
"parameters": {
@@ -255,10 +211,7 @@
"name": "IF Not Equal",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-2660,
420
]
"position": [-2660, 420]
},
{
"parameters": {},
@@ -266,10 +219,7 @@
"name": "On True Not Equal",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2460,
400
]
"position": [-2460, 400]
},
{
"parameters": {},
@@ -277,10 +227,7 @@
"name": "On False Not Equal",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2220,
440
]
"position": [-2220, 440]
},
{
"parameters": {
@@ -298,10 +245,7 @@
"name": "IF Regex",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-2660,
600
]
"position": [-2660, 600]
},
{
"parameters": {},
@@ -309,10 +253,7 @@
"name": "On True Regex",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2460,
580
]
"position": [-2460, 580]
},
{
"parameters": {},
@@ -320,10 +261,7 @@
"name": "On False Regex",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2220,
620
]
"position": [-2220, 620]
},
{
"parameters": {
@@ -341,10 +279,7 @@
"name": "IF Not Regex",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-2660,
780
]
"position": [-2660, 780]
},
{
"parameters": {},
@@ -352,10 +287,7 @@
"name": "On True Not Regex",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2460,
760
]
"position": [-2460, 760]
},
{
"parameters": {},
@@ -363,10 +295,7 @@
"name": "On False Not Regex",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2220,
800
]
"position": [-2220, 800]
},
{
"parameters": {
@@ -384,10 +313,7 @@
"name": "IF Starts With",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-2660,
980
]
"position": [-2660, 980]
},
{
"parameters": {},
@@ -395,10 +321,7 @@
"name": "On True Starts With",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2460,
960
]
"position": [-2460, 960]
},
{
"parameters": {},
@@ -406,10 +329,7 @@
"name": "On False Starts With",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2220,
1000
]
"position": [-2220, 1000]
},
{
"parameters": {
@@ -427,10 +347,7 @@
"name": "IF Not Starts With",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-2660,
1180
]
"position": [-2660, 1180]
},
{
"parameters": {},
@@ -438,10 +355,7 @@
"name": "On True Not Starts With",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2460,
1160
]
"position": [-2460, 1160]
},
{
"parameters": {},
@@ -449,10 +363,7 @@
"name": "On False Not Starts With",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2220,
1200
]
"position": [-2220, 1200]
},
{
"parameters": {
@@ -469,10 +380,7 @@
"name": "IF Is Empty",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-2660,
1380
]
"position": [-2660, 1380]
},
{
"parameters": {},
@@ -480,10 +388,7 @@
"name": "On False Is Empty",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2220,
1400
]
"position": [-2220, 1400]
},
{
"parameters": {
@@ -500,10 +405,7 @@
"name": "IF Is Not Empty",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
-2660,
1560
]
"position": [-2660, 1560]
},
{
"parameters": {},
@@ -511,10 +413,7 @@
"name": "On True Is Not Empty",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
-2460,
1540
]
"position": [-2460, 1540]
}
],
"pinData": {
@@ -973,4 +872,4 @@
"instanceId": "104a4d08d8897b8bdeb38aaca515021075e0bd8544c983c2bb8c86e6a8e6081c"
},
"tags": []
}
}
@@ -1,174 +1,180 @@
{
"name": "Filter test: boolean",
"nodes": [
{
"parameters": {},
"id": "9e2c2dc5-bd37-460b-a5a4-943860dcc03e",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-720,
160
]
},
{
"parameters": {},
"id": "3184fda2-b1d0-400a-a882-5844bbe99ae3",
"name": "false",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
0,
260
]
},
{
"parameters": {
"jsCode": "return [\n {\n email: \"shane@yahoo.com\",\n admin: false\n },\n {\n email: \"sharon@yahoo.com\",\n admin: true\n },\n {\n email: \"sarah@gmail.com\",\n admin: 'false'\n },\n {\n email: \"tom@gmail.com\",\n admin: '0'\n },\n {\n email: \"jane@gmail.com\",\n admin: 1\n }\n]"
},
"id": "85de5f5c-0a4c-4da1-805b-9e056089bcd5",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
-500,
160
]
},
{
"parameters": {},
"id": "8577ab3b-b9f8-4c4d-a3a1-abb6a9269473",
"name": "true",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
0,
100
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "loose",
"version": 2
},
"conditions": [
{
"id": "307e4ea0-3a82-4722-aca6-68d882115e8b",
"leftValue": "={{ $json.admin }}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
},
"looseTypeValidation": true,
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
-280,
160
],
"id": "d5d17556-45e6-44a1-8580-a08395ca38c4",
"name": "loose"
}
],
"pinData": {
"true": [
{
"json": {
"email": "sharon@yahoo.com",
"admin": true
}
},
{
"json": {
"email": "jane@gmail.com",
"admin": 1
}
}
],
"false": [
{
"json": {
"email": "shane@yahoo.com",
"admin": false
}
},
{
"json": {
"email": "sarah@gmail.com",
"admin": "false"
}
},
{
"json": {
"email": "tom@gmail.com",
"admin": "0"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "loose",
"type": "main",
"index": 0
}
]
]
},
"loose": {
"main": [
[
{
"node": "true",
"type": "main",
"index": 0
}
],
[
{
"node": "false",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "35631b37-dc5e-4155-a54f-41b38584f38e",
"meta": {
"instanceId": "27cc9b56542ad45b38725555722c50a1c3fee1670bbb67980558314ee08517c4"
},
"id": "JQsdJ4gnZtuDb7Oo",
"tags": []
"name": "Filter test: boolean",
"nodes": [
{
"parameters": {},
"id": "9e2c2dc5-bd37-460b-a5a4-943860dcc03e",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [-720, 160]
},
{
"parameters": {},
"id": "3184fda2-b1d0-400a-a882-5844bbe99ae3",
"name": "false",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [0, 260]
},
{
"parameters": {
"data": [
{
"email": "shane@yahoo.com",
"admin": false
},
{
"email": "sharon@yahoo.com",
"admin": true
},
{
"email": "sarah@gmail.com",
"admin": "false"
},
{
"email": "tom@gmail.com",
"admin": "0"
},
{
"email": "jane@gmail.com",
"admin": 1
}
]
},
"id": "85de5f5c-0a4c-4da1-805b-9e056089bcd5",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-500, 160]
},
{
"parameters": {},
"id": "8577ab3b-b9f8-4c4d-a3a1-abb6a9269473",
"name": "true",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [0, 100]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "loose",
"version": 2
},
"conditions": [
{
"id": "307e4ea0-3a82-4722-aca6-68d882115e8b",
"leftValue": "={{ $json.admin }}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
},
"looseTypeValidation": true,
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [-280, 160],
"id": "d5d17556-45e6-44a1-8580-a08395ca38c4",
"name": "loose"
}
],
"pinData": {
"true": [
{
"json": {
"email": "sharon@yahoo.com",
"admin": true
}
},
{
"json": {
"email": "jane@gmail.com",
"admin": 1
}
}
],
"false": [
{
"json": {
"email": "shane@yahoo.com",
"admin": false
}
},
{
"json": {
"email": "sarah@gmail.com",
"admin": "false"
}
},
{
"json": {
"email": "tom@gmail.com",
"admin": "0"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "loose",
"type": "main",
"index": 0
}
]
]
},
"loose": {
"main": [
[
{
"node": "true",
"type": "main",
"index": 0
}
],
[
{
"node": "false",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "35631b37-dc5e-4155-a54f-41b38584f38e",
"meta": {
"instanceId": "27cc9b56542ad45b38725555722c50a1c3fee1670bbb67980558314ee08517c4"
},
"id": "JQsdJ4gnZtuDb7Oo",
"tags": []
}
@@ -1,165 +1,165 @@
{
"name": "Filter test",
"nodes": [
{
"parameters": {},
"id": "f332a7d1-31b4-4e78-b31e-9e8db945bf3f",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-60,
480
]
},
{
"parameters": {
"jsCode": "return [\n {\n \"date\": \"2023-10-26T16:45:52.367Z\",\n \"label\": \"Apple\",\n },\n {\n \"date\": \"2023-10-20T16:45:52.367Z\",\n \"label\": \"Banana\"\n },\n {\n \"date\": \"2023-10-20T16:45:52.367Z\",\n \"label\": \"Kiwi\"\n },\n {\n \"date\": \"2023-10-20T16:45:52.367Z\",\n \"label\": \"Orange\"\n }\n]"
},
"id": "60697c7f-3948-4790-97ba-8aba03d02ac2",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
160,
480
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": ""
},
"conditions": [
{
"leftValue": "={{ $json.date }}",
"rightValue": "2023-10-21",
"operator": {
"type": "dateTime",
"operation": "before"
}
}
],
"combinator": "or"
},
"options": {}
},
"id": "7531191b-5ac3-45dc-8afb-27ae83d8f33a",
"name": "If",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
380,
480
]
},
{
"parameters": {},
"id": "d8c614ea-0bbf-4b12-ad7d-c9ebe09ce583",
"name": "Then",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
600,
400
]
},
{
"parameters": {},
"id": "69364770-60d2-4ef4-9f29-9570718a9a10",
"name": "Else",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
600,
580
]
}
],
"pinData": {
"Then": [
{
"json": {
"date": "2023-10-20T16:45:52.367Z",
"label": "Banana"
}
},
{
"json": {
"date": "2023-10-20T16:45:52.367Z",
"label": "Kiwi"
}
},
{
"json": {
"date": "2023-10-20T16:45:52.367Z",
"label": "Orange"
}
}
],
"Else": [
{
"json": {
"date": "2023-10-26T16:45:52.367Z",
"label": "Apple"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "Then",
"type": "main",
"index": 0
}
],
[
{
"node": "Else",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "ce7ed9ae-704e-4da8-b178-24556f720b2a",
"id": "BWUTRs5RHxVgQ4uT",
"meta": {
"instanceId": "78577815012af39cf16dad7a787b0898c42fb7514b8a7f99b2136862c2af502c"
},
"tags": []
"name": "Filter test",
"nodes": [
{
"parameters": {},
"id": "f332a7d1-31b4-4e78-b31e-9e8db945bf3f",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [-60, 480]
},
{
"parameters": {
"data": [
{
"date": "2023-10-26T16:45:52.367Z",
"label": "Apple"
},
{
"date": "2023-10-20T16:45:52.367Z",
"label": "Banana"
},
{
"date": "2023-10-20T16:45:52.367Z",
"label": "Kiwi"
},
{
"date": "2023-10-20T16:45:52.367Z",
"label": "Orange"
}
]
},
"id": "60697c7f-3948-4790-97ba-8aba03d02ac2",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [160, 480]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": ""
},
"conditions": [
{
"leftValue": "={{ $json.date }}",
"rightValue": "2023-10-21",
"operator": {
"type": "dateTime",
"operation": "before"
}
}
],
"combinator": "or"
},
"options": {}
},
"id": "7531191b-5ac3-45dc-8afb-27ae83d8f33a",
"name": "If",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [380, 480]
},
{
"parameters": {},
"id": "d8c614ea-0bbf-4b12-ad7d-c9ebe09ce583",
"name": "Then",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [600, 400]
},
{
"parameters": {},
"id": "69364770-60d2-4ef4-9f29-9570718a9a10",
"name": "Else",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [600, 580]
}
],
"pinData": {
"Then": [
{
"json": {
"date": "2023-10-20T16:45:52.367Z",
"label": "Banana"
}
},
{
"json": {
"date": "2023-10-20T16:45:52.367Z",
"label": "Kiwi"
}
},
{
"json": {
"date": "2023-10-20T16:45:52.367Z",
"label": "Orange"
}
}
],
"Else": [
{
"json": {
"date": "2023-10-26T16:45:52.367Z",
"label": "Apple"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "Then",
"type": "main",
"index": 0
}
],
[
{
"node": "Else",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "ce7ed9ae-704e-4da8-b178-24556f720b2a",
"id": "BWUTRs5RHxVgQ4uT",
"meta": {
"instanceId": "78577815012af39cf16dad7a787b0898c42fb7514b8a7f99b2136862c2af502c"
},
"tags": []
}
@@ -1,165 +1,163 @@
{
"name": "Filter test",
"nodes": [
{
"parameters": {},
"id": "f332a7d1-31b4-4e78-b31e-9e8db945bf3f",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-60,
480
]
},
{
"parameters": {
"jsCode": "return [\n {\n \"count\": 1,\n \"label\": \"Apple\",\n },\n {\n \"count\": 5,\n \"label\": \"Banana\"\n },\n {\n \"count\": 12,\n \"label\": \"Kiwi\"\n }\n]"
},
"id": "60697c7f-3948-4790-97ba-8aba03d02ac2",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
160,
480
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": ""
},
"conditions": [
{
"leftValue": "={{ $json.count }}",
"rightValue": "1",
"operator": {
"type": "number",
"operation": "equals"
}
},
{
"leftValue": "={{ $json.count }}",
"rightValue": "10",
"operator": {
"type": "number",
"operation": "gt"
}
}
],
"combinator": "or"
},
"options": {}
},
"id": "7531191b-5ac3-45dc-8afb-27ae83d8f33a",
"name": "If",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
380,
480
]
},
{
"parameters": {},
"id": "d8c614ea-0bbf-4b12-ad7d-c9ebe09ce583",
"name": "Then",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
600,
400
]
},
{
"parameters": {},
"id": "69364770-60d2-4ef4-9f29-9570718a9a10",
"name": "Else",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
600,
580
]
}
],
"pinData": {
"Then": [
{
"json": {
"count": 1,
"label": "Apple"
}
},
{
"json": {
"count": 12,
"label": "Kiwi"
}
}
],
"Else": [
{
"json": {
"count": 5,
"label": "Banana"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "Then",
"type": "main",
"index": 0
}
],
[
{
"node": "Else",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "78d54316-4f39-4012-bbb8-c789f1f8865b",
"id": "BWUTRs5RHxVgQ4uT",
"meta": {
"instanceId": "78577815012af39cf16dad7a787b0898c42fb7514b8a7f99b2136862c2af502c"
},
"tags": []
"name": "Filter test",
"nodes": [
{
"parameters": {},
"id": "f332a7d1-31b4-4e78-b31e-9e8db945bf3f",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [-60, 480]
},
{
"parameters": {
"data": [
{
"count": 1,
"label": "Apple"
},
{
"count": 5,
"label": "Banana"
},
{
"count": 12,
"label": "Kiwi"
}
]
},
"id": "60697c7f-3948-4790-97ba-8aba03d02ac2",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [160, 480]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": ""
},
"conditions": [
{
"leftValue": "={{ $json.count }}",
"rightValue": "1",
"operator": {
"type": "number",
"operation": "equals"
}
},
{
"leftValue": "={{ $json.count }}",
"rightValue": "10",
"operator": {
"type": "number",
"operation": "gt"
}
}
],
"combinator": "or"
},
"options": {}
},
"id": "7531191b-5ac3-45dc-8afb-27ae83d8f33a",
"name": "If",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [380, 480]
},
{
"parameters": {},
"id": "d8c614ea-0bbf-4b12-ad7d-c9ebe09ce583",
"name": "Then",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [600, 400]
},
{
"parameters": {},
"id": "69364770-60d2-4ef4-9f29-9570718a9a10",
"name": "Else",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [600, 580]
}
],
"pinData": {
"Then": [
{
"json": {
"count": 1,
"label": "Apple"
}
},
{
"json": {
"count": 12,
"label": "Kiwi"
}
}
],
"Else": [
{
"json": {
"count": 5,
"label": "Banana"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "Then",
"type": "main",
"index": 0
}
],
[
{
"node": "Else",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "78d54316-4f39-4012-bbb8-c789f1f8865b",
"id": "BWUTRs5RHxVgQ4uT",
"meta": {
"instanceId": "78577815012af39cf16dad7a787b0898c42fb7514b8a7f99b2136862c2af502c"
},
"tags": []
}
@@ -1,182 +1,185 @@
{
"name": "Filter test",
"nodes": [
{
"parameters": {},
"id": "f332a7d1-31b4-4e78-b31e-9e8db945bf3f",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-60,
480
]
},
{
"parameters": {
"jsCode": "return [\n {\n \"label\": \"Apple\",\n tags: [],\n meta: {foo: 'bar'}\n },\n {\n \"label\": \"Banana\",\n tags: ['exotic'],\n meta: {}\n },\n {\n \"label\": \"Kiwi\",\n tags: ['exotic'],\n meta: {}\n },\n {\n \"label\": \"Orange\",\n meta: {}\n }\n]"
},
"id": "60697c7f-3948-4790-97ba-8aba03d02ac2",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
160,
480
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": ""
},
"conditions": [
{
"leftValue": "={{ $json.tags }}",
"rightValue": "exotic",
"operator": {
"type": "array",
"operation": "contains",
"rightType": "any"
}
},
{
"leftValue": "={{ $json.meta }}",
"rightValue": "",
"operator": {
"type": "object",
"operation": "notEmpty",
"singleValue": true
}
}
],
"combinator": "or"
},
"options": {}
},
"id": "7531191b-5ac3-45dc-8afb-27ae83d8f33a",
"name": "If",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
380,
480
]
},
{
"parameters": {},
"id": "d8c614ea-0bbf-4b12-ad7d-c9ebe09ce583",
"name": "Then",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
600,
400
]
},
{
"parameters": {},
"id": "69364770-60d2-4ef4-9f29-9570718a9a10",
"name": "Else",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
600,
580
]
}
],
"pinData": {
"Then": [
{
"json": {
"label": "Apple",
"tags": [],
"meta": {
"foo": "bar"
}
}
},
{
"json": {
"label": "Banana",
"tags": [
"exotic"
],
"meta": {}
}
},
{
"json": {
"label": "Kiwi",
"tags": [
"exotic"
],
"meta": {}
}
}
],
"Else": [
{
"json": {
"label": "Orange",
"meta": {}
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "Then",
"type": "main",
"index": 0
}
],
[
{
"node": "Else",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "a6249f48-d88f-4b80-9ed9-79555e522d48",
"id": "BWUTRs5RHxVgQ4uT",
"meta": {
"instanceId": "78577815012af39cf16dad7a787b0898c42fb7514b8a7f99b2136862c2af502c"
},
"tags": []
"name": "Filter test",
"nodes": [
{
"parameters": {},
"id": "f332a7d1-31b4-4e78-b31e-9e8db945bf3f",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [-60, 480]
},
{
"parameters": {
"data": [
{
"label": "Apple",
"tags": [],
"meta": {
"foo": "bar"
}
},
{
"label": "Banana",
"tags": ["exotic"],
"meta": {}
},
{
"label": "Kiwi",
"tags": ["exotic"],
"meta": {}
},
{
"label": "Orange",
"meta": {}
}
]
},
"id": "60697c7f-3948-4790-97ba-8aba03d02ac2",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [160, 480]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": ""
},
"conditions": [
{
"leftValue": "={{ $json.tags }}",
"rightValue": "exotic",
"operator": {
"type": "array",
"operation": "contains",
"rightType": "any"
}
},
{
"leftValue": "={{ $json.meta }}",
"rightValue": "",
"operator": {
"type": "object",
"operation": "notEmpty",
"singleValue": true
}
}
],
"combinator": "or"
},
"options": {}
},
"id": "7531191b-5ac3-45dc-8afb-27ae83d8f33a",
"name": "If",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [380, 480]
},
{
"parameters": {},
"id": "d8c614ea-0bbf-4b12-ad7d-c9ebe09ce583",
"name": "Then",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [600, 400]
},
{
"parameters": {},
"id": "69364770-60d2-4ef4-9f29-9570718a9a10",
"name": "Else",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [600, 580]
}
],
"pinData": {
"Then": [
{
"json": {
"label": "Apple",
"tags": [],
"meta": {
"foo": "bar"
}
}
},
{
"json": {
"label": "Banana",
"tags": ["exotic"],
"meta": {}
}
},
{
"json": {
"label": "Kiwi",
"tags": ["exotic"],
"meta": {}
}
}
],
"Else": [
{
"json": {
"label": "Orange",
"meta": {}
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "Then",
"type": "main",
"index": 0
}
],
[
{
"node": "Else",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "a6249f48-d88f-4b80-9ed9-79555e522d48",
"id": "BWUTRs5RHxVgQ4uT",
"meta": {
"instanceId": "78577815012af39cf16dad7a787b0898c42fb7514b8a7f99b2136862c2af502c"
},
"tags": []
}
@@ -1,178 +1,179 @@
{
"name": "Filter test",
"nodes": [
{
"parameters": {},
"id": "96490c63-a3f4-4923-b969-8f9adcbb1bbb",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-160,
300
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": false,
"leftValue": ""
},
"conditions": [
{
"leftValue": "={{ $json.firstname }}",
"rightValue": "s",
"operator": {
"type": "string",
"operation": "startsWith"
}
},
{
"leftValue": "={{ $json.lastname }}",
"rightValue": "",
"operator": {
"type": "any",
"operation": "exists"
}
},
{
"leftValue": "={{ $json.email }}",
"rightValue": "@yahoo.com",
"operator": {
"type": "string",
"operation": "endsWith"
}
}
],
"combinator": "and"
},
"options": {
"caseSensitive": false
}
},
"id": "48399b31-219a-42fa-bb5b-380dbb4a2e7d",
"name": "If",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
260,
300
]
},
{
"parameters": {},
"id": "8a59a941-bafd-46a6-8692-878de715d912",
"name": "false",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
560,
440
]
},
{
"parameters": {},
"id": "b82546fa-f9e9-4fa3-9dcb-e2c94a3784de",
"name": "Then",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
560,
140
]
},
{
"parameters": {
"jsCode": "return [\n {\n \"email\": \"Shane@yahoo.com\",\n \"firstname\": \"Shane\",\n \"lastname\": \"Martin\"\n },\n {\n \"email\": \"Sharon@yahoo.com\",\n \"firstname\": \"Sharon\",\n \"lastname\": \"Tromp\"\n },\n {\n \"email\": \"sarah@gmail.com\",\n \"firstname\": \"Sarah\",\n \"lastname\": \"Dawson\"\n }\n]"
},
"id": "674c5688-ac03-49a7-83fb-62460a10cc10",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
60,
300
]
}
],
"pinData": {
"Then": [
{
"json": {
"email": "Shane@yahoo.com",
"firstname": "Shane",
"lastname": "Martin"
}
},
{
"json": {
"email": "Sharon@yahoo.com",
"firstname": "Sharon",
"lastname": "Tromp"
}
}
],
"false": [
{
"json": {
"email": "sarah@gmail.com",
"firstname": "Sarah",
"lastname": "Dawson"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "Then",
"type": "main",
"index": 0
}
],
[
{
"node": "false",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "48c6a584-e79b-4ce4-ab4b-2b4ab663b89d",
"id": "BWUTRs5RHxVgQ4uT",
"meta": {
"instanceId": "78577815012af39cf16dad7a787b0898c42fb7514b8a7f99b2136862c2af502c"
},
"tags": []
}
"name": "Filter test",
"nodes": [
{
"parameters": {},
"id": "96490c63-a3f4-4923-b969-8f9adcbb1bbb",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [-160, 300]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": false,
"leftValue": ""
},
"conditions": [
{
"leftValue": "={{ $json.firstname }}",
"rightValue": "s",
"operator": {
"type": "string",
"operation": "startsWith"
}
},
{
"leftValue": "={{ $json.lastname }}",
"rightValue": "",
"operator": {
"type": "any",
"operation": "exists"
}
},
{
"leftValue": "={{ $json.email }}",
"rightValue": "@yahoo.com",
"operator": {
"type": "string",
"operation": "endsWith"
}
}
],
"combinator": "and"
},
"options": {
"caseSensitive": false
}
},
"id": "48399b31-219a-42fa-bb5b-380dbb4a2e7d",
"name": "If",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [260, 300]
},
{
"parameters": {},
"id": "8a59a941-bafd-46a6-8692-878de715d912",
"name": "false",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [560, 440]
},
{
"parameters": {},
"id": "b82546fa-f9e9-4fa3-9dcb-e2c94a3784de",
"name": "Then",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [560, 140]
},
{
"parameters": {
"data": [
{
"email": "Shane@yahoo.com",
"firstname": "Shane",
"lastname": "Martin"
},
{
"email": "Sharon@yahoo.com",
"firstname": "Sharon",
"lastname": "Tromp"
},
{
"email": "sarah@gmail.com",
"firstname": "Sarah",
"lastname": "Dawson"
}
]
},
"id": "674c5688-ac03-49a7-83fb-62460a10cc10",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [60, 300]
}
],
"pinData": {
"Then": [
{
"json": {
"email": "Shane@yahoo.com",
"firstname": "Shane",
"lastname": "Martin"
}
},
{
"json": {
"email": "Sharon@yahoo.com",
"firstname": "Sharon",
"lastname": "Tromp"
}
}
],
"false": [
{
"json": {
"email": "sarah@gmail.com",
"firstname": "Sarah",
"lastname": "Dawson"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "Then",
"type": "main",
"index": 0
}
],
[
{
"node": "false",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "48c6a584-e79b-4ce4-ab4b-2b4ab663b89d",
"id": "BWUTRs5RHxVgQ4uT",
"meta": {
"instanceId": "78577815012af39cf16dad7a787b0898c42fb7514b8a7f99b2136862c2af502c"
},
"tags": []
}
@@ -11,11 +11,32 @@
},
{
"parameters": {
"jsCode": "return [\n {id: 1, char: 'a'},\n {id: 2, char: 'b'},\n {id: 3, char: 'c'},\n {id: 4, char: 'd'},\n {id: 5, char: 'e'},\n];"
"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-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-180, 260]
},
@@ -11,11 +11,27 @@
},
{
"parameters": {
"jsCode": "return [\n {entry: 1},\n {entry: 2},\n {entry: 3},\n {entry: 4},\n {entry: 5},\n];"
"data": [
{
"entry": 1
},
{
"entry": 2
},
{
"entry": 3
},
{
"entry": 4
},
{
"entry": 5
}
]
},
"id": "21185d7a-f0c1-49a0-9c2d-f0f198ceea7e",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [520, 180]
},
@@ -11,11 +11,37 @@
},
{
"parameters": {
"jsCode": "return [\n {entry: 1, data: 'a', char: 'a'},\n {entry: 1, data: 'b', char: 'a'},\n {entry: 1, data: 'a', char: 'a'},\n {entry: 4, data: 'd', char: 'a'},\n {entry: 5, data: 'e', char: 'a'},\n];"
"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-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1120, 340]
},
@@ -7,23 +7,66 @@
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
960,
520
]
"position": [960, 520]
},
{
"parameters": {
"jsCode": "return [\n { mixed: \"1\", match: \"foo\" },\n { mixed: 1, match: \"foo\" },\n { mixed: true, match: \"foo\" },\n { mixed: false, match: \"foo\" },\n { mixed: {}, match: \"foo\" },\n { mixed: [], match: \"foo\" },\n //duplicates\n { mixed: \"1\", match: \"foo\" },\n { mixed: 1, match: \"foo\" },\n { mixed: true, match: \"foo\" },\n { mixed: false, match: \"foo\" },\n { mixed: {}, match: \"foo\" },\n { mixed: [], match: \"foo\" },\n];"
"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-base.code",
"typeVersion": 2,
"position": [
1160,
520
]
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1160, 520]
},
{
"parameters": {
@@ -33,10 +76,7 @@
"name": "Remove duplicates",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3.1,
"position": [
1440,
160
]
"position": [1440, 160]
},
{
"parameters": {
@@ -49,10 +89,7 @@
"name": "Remove duplicates by mixed",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3.1,
"position": [
1440,
340
]
"position": [1440, 340]
},
{
"parameters": {
@@ -65,10 +102,7 @@
"name": "Remove duplicates by match",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3.1,
"position": [
1440,
520
]
"position": [1440, 520]
},
{
"parameters": {
@@ -81,10 +115,7 @@
"name": "Remove duplicates except by mixed",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3.1,
"position": [
1440,
720
]
"position": [1440, 720]
},
{
"parameters": {
@@ -97,10 +128,7 @@
"name": "Remove duplicates except by match",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 3.1,
"position": [
1440,
940
]
"position": [1440, 940]
}
],
"pinData": {
@@ -289,4 +317,4 @@
"instanceId": "104a4d08d8897b8bdeb38aaca515021075e0bd8544c983c2bb8c86e6a8e6081c"
},
"tags": []
}
}
@@ -11,11 +11,44 @@
},
{
"parameters": {
"jsCode": "return { \ndata:[\n {id: 3, char: 'c'},\n {id: 4, char: 'd'},\n {id: 5, char: 'e'},\n {id: 1, char: 'a'},\n {id: 2, char: 'b'},\n],\ndata2: [\n {text: 'foo'},\n],\ndata3: [\n {text: 'bar'},\n],\n};"
"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-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-180, 400]
},
@@ -30,11 +30,34 @@
},
{
"parameters": {
"jsCode": "const data = {\n entry1: {\n id: 1,\n info: 'some info 1',\n },\n entry2: {\n id: 2,\n info: 'some info 2',\n },\n entry3: {\n id: 3,\n info: 'some info 3',\n },\n};\n\n\nconst data2 = [\n 'a', 'b', 'c'\n];\n\nconst data3 = {\n a: 1,\n b: 2,\n c: 3,\n};\n\nreturn {data, data2, data3, data4: null, tag: 'bar'};"
"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-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [760, 800]
},
@@ -11,11 +11,54 @@
},
{
"parameters": {
"jsCode": "return [\n {\n category: 'red',\n text: 'foo',\n char: 'a',\n value: 1,\n },\n {\n category: 'blue',\n text: 'spam',\n char: 'b',\n value: 2,\n },\n {\n category: 'green',\n text: 'bar',\n char: 'c',\n value: 3,\n },\n {\n category: 'red',\n text: 'foo',\n char: 'a',\n value: 4,\n },\n {\n category: 'red',\n text: 'bar',\n char: 'a',\n value: 5,\n },\n {\n category: 'blue',\n text: 'foo',\n char: 'a',\n value: 6,\n },\n {\n category: 'blue',\n text: 'foo',\n char: 'a',\n value: 7,\n },\n];"
"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-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-180, 420]
},
@@ -157,21 +157,49 @@
},
{
"parameters": {
"jsCode": "return {data:[\n {id: 1},\n {id: 2},\n {id: 3},\n {id: 4},\n]};"
"data": {
"data": [
{
"id": 1
},
{
"id": 2
},
{
"id": 3
},
{
"id": 4
}
]
}
},
"id": "b97e2dd3-8934-4f61-a217-e4251c3c018f",
"name": "Code2",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [600, 500]
},
{
"parameters": {
"jsCode": "return [\n {id: 1},\n {id: 2},\n {id: 3},\n {id: 4},\n];"
"data": [
{
"id": 1
},
{
"id": 2
},
{
"id": 3
},
{
"id": 4
}
]
},
"id": "cc63d7e0-0ecb-4aa8-ae15-69c6b32ce6d9",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [660, 1260]
},
@@ -30,11 +30,34 @@
},
{
"parameters": {
"jsCode": "const data = {\n entry1: {\n id: 1,\n info: 'some info 1',\n },\n entry2: {\n id: 2,\n info: 'some info 2',\n },\n entry3: {\n id: 3,\n info: 'some info 3',\n },\n};\n\n\nconst data2 = [\n 'a', 'b', 'c'\n];\n\nconst data3 = {\n a: 1,\n b: 2,\n c: 3,\n};\n\nreturn {data, data2, data3, data4: null, tag: 'bar'};"
"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-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [160, 820]
},
@@ -66,10 +66,19 @@
},
{
"parameters": {
"jsCode": "return [\n {\n \"name\": \"First item\",\n \"code\": 1\n },\n {\n \"name\": \"Second item\",\n \"code\": 2\n }\n]"
"data": [
{
"name": "First item",
"code": 1
},
{
"name": "Second item",
"code": 2
}
]
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [220, -100],
"id": "50ce815c-cf9a-4d83-8739-c95f9c3d7ec6",
"name": "Test Data"
@@ -36,11 +36,13 @@
},
{
"parameters": {
"jsCode": "return {\n\"data\":\n`<!doctype html> <html> <head> <title>Example Domain</title> <meta charset=\"utf-8\" /> <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" /> <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /> <style type=\"text/css\"> body { background-color: #f0f0f2; margin: 0; padding: 0; font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif; } div { width: 600px; margin: 5em auto; padding: 2em; background-color: #fdfdff; border-radius: 0.5em; box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02); } a:link, a:visited { color: #38488f; text-decoration: none; } @media (max-width: 700px) { div { margin: 0 auto; width: auto; } } </style> </head> <body> <div> <h1>Example Domain</h1> <p>This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.</p> <p><a href=\"https://www.iana.org/domains/example\">More information...</a></p> </div> </body> </html>`\n};"
"data": {
"data": "<!doctype html> <html> <head> <title>Example Domain</title> <meta charset=\"utf-8\" /> <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" /> <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /> <style type=\"text/css\"> body { background-color: #f0f0f2; margin: 0; padding: 0; font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif; } div { width: 600px; margin: 5em auto; padding: 2em; background-color: #fdfdff; border-radius: 0.5em; box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02); } a:link, a:visited { color: #38488f; text-decoration: none; } @media (max-width: 700px) { div { margin: 0 auto; width: auto; } } </style> </head> <body> <div> <h1>Example Domain</h1> <p>This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.</p> <p><a href=\"https://www.iana.org/domains/example\">More information...</a></p> </div> </body> </html>"
}
},
"id": "d1f890b1-c484-441f-be70-7b35959ba9b4",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [940, 420]
},
@@ -11,11 +11,21 @@
},
{
"parameters": {
"jsCode": "return [\n {id: 1},\n {id: 2},\n {id: 3}, \n];"
"data": [
{
"id": 1
},
{
"id": 2
},
{
"id": 3
}
]
},
"id": "263d9c7f-32d4-4112-b271-73d09b73809a",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1020, 220]
},
@@ -24,16 +34,26 @@
"id": "82ff69e1-596b-48dd-b724-388ef454a822",
"name": "Merge",
"type": "n8n-nodes-base.merge",
"typeVersion": 2,
"typeVersion": 1,
"position": [1280, 360]
},
{
"parameters": {
"jsCode": "return [\n {id: 4},\n {id: 5},\n {id: 6}, \n];"
"data": [
{
"id": 4
},
{
"id": 5
},
{
"id": 6
}
]
},
"id": "3defcf5a-ec5e-4d23-a1f6-a99b7362a241",
"name": "Code1",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1040, 540]
}
@@ -1,145 +1,138 @@
{
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "8d731d98fab18fb8e68289d44c50faa5d5c5378aedc3f892abdd7d5d3b7061c5"
},
"nodes": [
{
"parameters": {
"fields": {
"values": [
{
"name": "one",
"stringValue": "={{ $('Code').item.json.id }}"
},
{
"name": "two",
"stringValue": "={{ $('Code1').item.json.id }}"
}
]
},
"options": {}
},
"id": "853f9e11-e59b-4f21-81ba-08ec2d69c87a",
"name": "Edit Fields",
"type": "n8n-nodes-base.set",
"typeVersion": 3.2,
"position": [
900,
580
]
},
{
"parameters": {},
"id": "8310a9da-b02b-4a77-80d4-7c2de5bcbae8",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
180,
600
]
},
{
"parameters": {
"jsCode": "return [\n {id: 1},\n];"
},
"id": "0f1fb40d-0c6c-455d-bb3b-0c0fa818e063",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 1,
"position": [
420,
520
]
},
{
"parameters": {
"jsCode": "return [\n {id: 2},\n];"
},
"id": "873fcccc-86c1-40fd-bdae-2bb31e971382",
"name": "Code1",
"type": "n8n-nodes-base.code",
"typeVersion": 1,
"position": [
420,
680
]
},
{
"parameters": {
"mode": "chooseBranch",
"output": "empty"
},
"id": "b81a2372-9f8b-4899-b2fd-c581bcf930d8",
"name": "Merge3",
"type": "n8n-nodes-base.merge",
"typeVersion": 2,
"position": [
700,
580
]
}
],
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
},
{
"node": "Code1",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Merge3",
"type": "main",
"index": 0
}
]
]
},
"Code1": {
"main": [
[
{
"node": "Merge3",
"type": "main",
"index": 1
}
]
]
},
"Merge3": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {
"Edit Fields": [
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "8d731d98fab18fb8e68289d44c50faa5d5c5378aedc3f892abdd7d5d3b7061c5"
},
"nodes": [
{
"parameters": {
"fields": {
"values": [
{
"name": "one",
"stringValue": "={{ $('Code').item.json.id }}"
},
{
"name": "two",
"stringValue": "={{ $('Code1').item.json.id }}"
}
]
},
"options": {}
},
"id": "853f9e11-e59b-4f21-81ba-08ec2d69c87a",
"name": "Edit Fields",
"type": "n8n-nodes-base.set",
"typeVersion": 3.2,
"position": [900, 580]
},
{
"parameters": {},
"id": "8310a9da-b02b-4a77-80d4-7c2de5bcbae8",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [180, 600]
},
{
"parameters": {
"data": [
{
"id": 1
}
]
},
"id": "0f1fb40d-0c6c-455d-bb3b-0c0fa818e063",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [420, 520]
},
{
"parameters": {
"data": [
{
"id": 2
}
]
},
"id": "873fcccc-86c1-40fd-bdae-2bb31e971382",
"name": "Code1",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [420, 680]
},
{
"parameters": {
"mode": "chooseBranch",
"output": "empty"
},
"id": "b81a2372-9f8b-4899-b2fd-c581bcf930d8",
"name": "Merge3",
"type": "n8n-nodes-base.merge",
"typeVersion": 2,
"position": [700, 580]
}
],
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
},
{
"node": "Code1",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Merge3",
"type": "main",
"index": 0
}
]
]
},
"Code1": {
"main": [
[
{
"node": "Merge3",
"type": "main",
"index": 1
}
]
]
},
"Merge3": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {
"Edit Fields": [
{
"json": {
"one": "1",
"two": "2"
}
}
]
}
]
}
}
@@ -11,21 +11,41 @@
},
{
"parameters": {
"jsCode": "return [\n {id: 1},\n {id: 2},\n {id: 3}, \n];"
"data": [
{
"id": 1
},
{
"id": 2
},
{
"id": 3
}
]
},
"id": "263d9c7f-32d4-4112-b271-73d09b73809a",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1020, 220]
},
{
"parameters": {
"jsCode": "return [\n {id: 4},\n {id: 5},\n {id: 6}, \n];"
"data": [
{
"id": 4
},
{
"id": 5
},
{
"id": 6
}
]
},
"id": "3defcf5a-ec5e-4d23-a1f6-a99b7362a241",
"name": "Code1",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1040, 540]
},
@@ -11,21 +11,53 @@
},
{
"parameters": {
"jsCode": "return [\n {id: 1, data: 'a', input: 1, text: 'foo'},\n {id: 2, data: 'b', input: 1, text: 'foo'},\n];"
"data": [
{
"id": 1,
"data": "a",
"input": 1,
"text": "foo"
},
{
"id": 2,
"data": "b",
"input": 1,
"text": "foo"
}
]
},
"id": "263d9c7f-32d4-4112-b271-73d09b73809a",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [900, 540]
},
{
"parameters": {
"jsCode": "return [\n {id: 1, data: 'c', input: 2, tag: 'second'},\n {id: 2, data: 'd', input: 2, tag: 'second'},\n {id: 3, data: 'e', input: 2, tag: 'second'},\n];"
"data": [
{
"id": 1,
"data": "c",
"input": 2,
"tag": "second"
},
{
"id": 2,
"data": "d",
"input": 2,
"tag": "second"
},
{
"id": 3,
"data": "e",
"input": 2,
"tag": "second"
}
]
},
"id": "3defcf5a-ec5e-4d23-a1f6-a99b7362a241",
"name": "Code1",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [900, 780]
},
@@ -11,21 +11,48 @@
},
{
"parameters": {
"jsCode": "return [\n {id: 1, data: 'a', input: 1},\n {id: 2, data: 'b', input: 1},\n];"
"data": [
{
"id": 1,
"data": "a",
"input": 1
},
{
"id": 2,
"data": "b",
"input": 1
}
]
},
"id": "263d9c7f-32d4-4112-b271-73d09b73809a",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1040, 200]
},
{
"parameters": {
"jsCode": "return [\n {id: 1, data: 'c', input: 2},\n {id: 2, data: 'd', input: 2},\n {id: 3, data: 'e', input: 2},\n];"
"data": [
{
"id": 1,
"data": "c",
"input": 2
},
{
"id": 2,
"data": "d",
"input": 2
},
{
"id": 3,
"data": "e",
"input": 2
}
]
},
"id": "3defcf5a-ec5e-4d23-a1f6-a99b7362a241",
"name": "Code1",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1060, 520]
},
@@ -11,21 +11,43 @@
},
{
"parameters": {
"jsCode": "return [\n {id: 1, data: 'a', input: 1},\n {id: 2, data: 'b', input: 1},\n];"
"data": [
{
"id": 1,
"data": "a",
"input": 1
},
{
"id": 2,
"data": "b",
"input": 1
}
]
},
"id": "263d9c7f-32d4-4112-b271-73d09b73809a",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1020, 220]
},
{
"parameters": {
"jsCode": "return [\n {id: 1, data: 'c', input: 2},\n {id: 2, data: 'd', input: 2},\n];"
"data": [
{
"id": 1,
"data": "c",
"input": 2
},
{
"id": 2,
"data": "d",
"input": 2
}
]
},
"id": "3defcf5a-ec5e-4d23-a1f6-a99b7362a241",
"name": "Code1",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1040, 540]
},
@@ -11,22 +11,73 @@
},
{
"parameters": {
"jsCode": "return [\n {\n \"id\": 1,\n \"first_name\": \"John\",\n \"last_name\": \"Doe\"\n },\n {\n \"id\": 2,\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\"\n },\n {\n \"id\": 3,\n \"first_name\": \"Michael\",\n \"last_name\": \"Johnson\"\n },\n {\n \"id\": 4,\n \"first_name\": \"Emily\",\n \"last_name\": \"Davis\"\n },\n {\n \"id\": 5,\n \"first_name\": \"Robert\",\n \"last_name\": \"Taylor\"\n },\n {\n \"id\": 6,\n \"first_name\": \"Olivia\",\n \"last_name\": \"Martin\"\n },\n {\n \"id\": 7,\n \"first_name\": \"William\",\n \"last_name\": \"Brown\"\n },\n {\n \"id\": 8,\n \"first_name\": \"Sophia\",\n \"last_name\": \"Anderson\"\n },\n {\n \"id\": 9,\n \"first_name\": \"Daniel\",\n \"last_name\": \"Wilson\"\n },\n {\n \"id\": 10,\n \"first_name\": \"Ava\",\n \"last_name\": \"Miller\"\n }\n];"
"data": [
{
"id": 1,
"first_name": "John",
"last_name": "Doe"
},
{
"id": 2,
"first_name": "Jane",
"last_name": "Smith"
},
{
"id": 3,
"first_name": "Michael",
"last_name": "Johnson"
},
{
"id": 4,
"first_name": "Emily",
"last_name": "Davis"
},
{
"id": 5,
"first_name": "Robert",
"last_name": "Taylor"
},
{
"id": 6,
"first_name": "Olivia",
"last_name": "Martin"
},
{
"id": 7,
"first_name": "William",
"last_name": "Brown"
},
{
"id": 8,
"first_name": "Sophia",
"last_name": "Anderson"
},
{
"id": 9,
"first_name": "Daniel",
"last_name": "Wilson"
},
{
"id": 10,
"first_name": "Ava",
"last_name": "Miller"
}
]
},
"id": "da82fbb0-b689-4c4e-b310-303361e8411c",
"name": "Mock data A",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [340, 840]
},
{
"parameters": {
"jsCode": "return [\n];"
"data": []
},
"id": "493ecb02-52e7-43b7-8c73-d45a3f7e76f6",
"name": "Mock data B",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [340, 1040]
},
{
@@ -11,21 +11,34 @@
},
{
"parameters": {
"jsCode": "return [\n {id: 1},\n {id: 2},\n {id: 3},\n {id: 4},\n];"
"data": [
{
"id": 1
},
{
"id": 2
},
{
"id": 3
},
{
"id": 4
}
]
},
"id": "cec18624-ced0-4de1-8987-d4b184b136b9",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1020, 200]
},
{
"parameters": {
"jsCode": "return [\n];"
"data": []
},
"id": "754d549c-82ce-4625-ba2b-6f8edcbf715e",
"name": "Code1",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1020, 400]
},
@@ -91,11 +91,16 @@
},
{
"parameters": {
"jsCode": "return {\n id: 4,\n name: 'Don',\n age: 37,\n data: 'data 44',\n};"
"data": {
"id": 4,
"name": "Don",
"age": 37,
"data": "data 44"
}
},
"id": "2919f9b9-e3ac-42cd-a792-774738fd2195",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1080, 500]
}
@@ -89,11 +89,16 @@
},
{
"parameters": {
"jsCode": "return {\n id: 3,\n name: 'Don',\n age: 37,\n data: 'data 44',\n};"
"data": {
"id": 3,
"name": "Don",
"age": 37,
"data": "data 44"
}
},
"id": "eb908630-7324-46a5-890d-b5cfccf17cb2",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [660, 380]
}
@@ -91,11 +91,16 @@
},
{
"parameters": {
"jsCode": "return {\n id: 4,\n name: 'Don',\n age: 37,\n data: 'data 44',\n};"
"data": {
"id": 4,
"name": "Don",
"age": 37,
"data": "data 44"
}
},
"id": "93453ccb-5ac3-425b-8ac4-d20f0dfe9bab",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [820, 460]
}
@@ -13,11 +13,26 @@
},
{
"parameters": {
"jsCode": "return [\n {\n label: 'Free Users',\n labels: [\"Berlin\", \"Paris\", \"Rome\", \"New York\"],\n data: [50, 60, 70, 180],\n backgroundColor: '#121d6d77',\n chartType: 'line'\n },\n {\n label: 'Paid Users',\n labels: [\"Berlin\", \"Paris\", \"Rome\", \"New York\"],\n data: [30, 10, 14, 25],\n backgroundColor: '#0c0d0d96',\n chartType: 'bar'\n },\n]"
"data": [
{
"label": "Free Users",
"labels": ["Berlin", "Paris", "Rome", "New York"],
"data": [50, 60, 70, 180],
"backgroundColor": "#121d6d77",
"chartType": "line"
},
{
"label": "Paid Users",
"labels": ["Berlin", "Paris", "Rome", "New York"],
"data": [30, 10, 14, 25],
"backgroundColor": "#0c0d0d96",
"chartType": "bar"
}
]
},
"id": "2e81f78c-41a5-48de-80c4-74abf163cd57",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [980, 320]
},
@@ -33,11 +33,64 @@
},
{
"parameters": {
"jsCode": "return [\n {\n \"string\": {\n test2: \"hello\",\n test3: \" \",\n test4: \"\",\n test5: \"3\",\n test6: \"3,14\",\n test7: \"3.14\",\n test8: \"false\",\n test8: \"TRUE\",\n test9: \"false\",\n test10: \"1\",\n test11: '[\"apples\", \"oranges\"]',\n test12: '\"apples\", \"oranges\"',\n test13: '[1, 2]',\n test14: '{\"a\": 1, \"b\": { \"c\": 10, \"d\": \"test\"}}',\n test15: '{\"a\": 1}',\n test16: \"null\",\n test17: \"undefined\",\n test18: \"0\",\n },\n \"number\": {\n test1: 52472,\n test2: -1,\n test3: 0,\n test4: 1.334535,\n test5: null,\n test6: undefined,\n test7: 1,\n },\n \"boolean\": {\n // test1: 1,\n // test2: 0,\n test3: true,\n test4: false,\n },\n \"date\": {\n test1: $now,\n test2: \"2023-08-01T12:34:56Z\",\n test3: \"2016-05-25T09:24:15.123\",\n test4: \"Tue, 01 Nov 2016 13:23:12 +0630\",\n test5: \"2017-05-15 09:24:15\",\n test6: \"1542674993\",\n test7: 1542674993,\n },\n \"array\": {\n test13: [1,2,3,4],\n },\n \"object\": {\n obj: {\n objKey: 2,\n objArray: [1,2,3,4],\n objBool: true\n }\n },\n }\n];"
"data": [
{
"string": {
"test2": "hello",
"test3": " ",
"test4": "",
"test5": "3",
"test6": "3,14",
"test7": "3.14",
"test8": "TRUE",
"test9": "false",
"test10": "1",
"test11": "[\"apples\", \"oranges\"]",
"test12": "\"apples\", \"oranges\"",
"test13": "[1, 2]",
"test14": "{\"a\": 1, \"b\": { \"c\": 10, \"d\": \"test\"}}",
"test15": "{\"a\": 1}",
"test16": "null",
"test17": "undefined",
"test18": "0"
},
"number": {
"test1": 52472,
"test2": -1,
"test3": 0,
"test4": 1.334535,
"test5": null,
"test7": 1
},
"boolean": {
"test3": true,
"test4": false
},
"date": {
"test1": "2024-01-01T00:00:00.000Z",
"test2": "2023-08-01T12:34:56Z",
"test3": "2016-05-25T09:24:15.123",
"test4": "Tue, 01 Nov 2016 13:23:12 +0630",
"test5": "2017-05-15 09:24:15",
"test6": "1542674993",
"test7": 1542674993
},
"array": {
"test13": [1, 2, 3, 4]
},
"object": {
"obj": {
"objKey": 2,
"objArray": [1, 2, 3, 4],
"objBool": true
}
}
}
]
},
"id": "70c10657-5d81-46c5-b931-966024d7ce45",
"name": "Code1",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [640, 1460]
},
@@ -479,12 +532,27 @@
},
{
"parameters": {
"jsCode": "return [{name: 'John Doe', age: 32, object: {nested: true}}, {name: 'Jane Doe', age: 35, object: {nested: true}}]"
"data": [
{
"name": "John Doe",
"age": 32,
"object": {
"nested": true
}
},
{
"name": "Jane Doe",
"age": 35,
"object": {
"nested": true
}
}
]
},
"id": "c120da29-6807-4059-9a2a-13b9032f93cd",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [480, 2420]
}
],
@@ -14,11 +14,64 @@
},
{
"parameters": {
"jsCode": "return [\n {\n \"string\": {\n test2: \"hello\",\n test3: \" \",\n test4: \"\",\n test5: \"3\",\n test6: \"3,14\",\n test7: \"3.14\",\n test8: \"false\",\n test8: \"TRUE\",\n test9: \"false\",\n test10: \"1\",\n test11: '[\"apples\", \"oranges\"]',\n test12: '\"apples\", \"oranges\"',\n test13: '[1, 2]',\n test14: '{\"a\": 1, \"b\": { \"c\": 10, \"d\": \"test\"}}',\n test15: '{\"a\": 1}',\n test16: \"null\",\n test17: \"undefined\",\n test18: \"0\",\n },\n \"number\": {\n test1: 52472,\n test2: -1,\n test3: 0,\n test4: 1.334535,\n test5: null,\n test6: undefined,\n test7: 1,\n },\n \"boolean\": {\n // test1: 1,\n // test2: 0,\n test3: true,\n test4: false,\n },\n \"date\": {\n test1: $now,\n test2: \"2023-08-01T12:34:56Z\",\n test3: \"2016-05-25T09:24:15.123\",\n test4: \"Tue, 01 Nov 2016 13:23:12 +0630\",\n test5: \"2017-05-15 09:24:15\",\n test6: \"1542674993\",\n test7: 1542674993,\n },\n \"array\": {\n test13: [1,2,3,4],\n },\n \"object\": {\n obj: {\n objKey: 2,\n objArray: [1,2,3,4],\n objBool: true\n }\n },\n }\n];"
"data": [
{
"string": {
"test2": "hello",
"test3": " ",
"test4": "",
"test5": "3",
"test6": "3,14",
"test7": "3.14",
"test8": "TRUE",
"test9": "false",
"test10": "1",
"test11": "[\"apples\", \"oranges\"]",
"test12": "\"apples\", \"oranges\"",
"test13": "[1, 2]",
"test14": "{\"a\": 1, \"b\": { \"c\": 10, \"d\": \"test\"}}",
"test15": "{\"a\": 1}",
"test16": "null",
"test17": "undefined",
"test18": "0"
},
"number": {
"test1": 52472,
"test2": -1,
"test3": 0,
"test4": 1.334535,
"test5": null,
"test7": 1
},
"boolean": {
"test3": true,
"test4": false
},
"date": {
"test1": "2024-01-01T00:00:00.000Z",
"test2": "2023-08-01T12:34:56Z",
"test3": "2016-05-25T09:24:15.123",
"test4": "Tue, 01 Nov 2016 13:23:12 +0630",
"test5": "2017-05-15 09:24:15",
"test6": "1542674993",
"test7": 1542674993
},
"array": {
"test13": [1, 2, 3, 4]
},
"object": {
"obj": {
"objKey": 2,
"objArray": [1, 2, 3, 4],
"objBool": true
}
}
}
]
},
"id": "8afc51b7-f9ed-417a-a58b-2fe251ba4b93",
"name": "Code1",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [420, 4240]
},
@@ -525,12 +578,27 @@
},
{
"parameters": {
"jsCode": "return [{name: 'John Doe', age: 32, object: {nested: true}}, {name: 'Jane Doe', age: 35, object: {nested: true}}]"
"data": [
{
"name": "John Doe",
"age": 32,
"object": {
"nested": true
}
},
{
"name": "Jane Doe",
"age": 35,
"object": {
"nested": true
}
}
]
},
"id": "7f9a81c4-5207-493f-bf48-9e52e4c350c6",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [480, 5240]
}
],
@@ -7,10 +7,7 @@
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
900,
2560
]
"position": [900, 2560]
},
{
"parameters": {
@@ -40,23 +37,24 @@
"name": "Set",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1380,
2200
]
"position": [1380, 2200]
},
{
"parameters": {
"jsCode": "return [\n { nested: { foo: \"bar\" }, list: [\"foo\" ] }\n]"
"data": [
{
"nested": {
"foo": "bar"
},
"list": ["foo"]
}
]
},
"id": "a7e51ac7-734a-4652-bb02-d9f0a4d8410b",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [
1120,
2560
]
"position": [1120, 2560]
},
{
"parameters": {
@@ -87,10 +85,7 @@
"name": "Set Keep Only Set",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1380,
2380
]
"position": [1380, 2380]
},
{
"parameters": {
@@ -120,10 +115,7 @@
"name": "Set to Array",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1380,
2940
]
"position": [1380, 2940]
},
{
"parameters": {
@@ -153,10 +145,7 @@
"name": "Set to Object",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1380,
2560
]
"position": [1380, 2560]
},
{
"parameters": {
@@ -188,10 +177,7 @@
"name": "Set Disable Dot Notation",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1380,
2740
]
"position": [1380, 2740]
}
],
"pinData": {
@@ -201,9 +187,7 @@
"nested": {
"foo": "bar"
},
"list": [
"foo"
],
"list": ["foo"],
"boolean": true,
"number": 1,
"string": "foo"
@@ -228,9 +212,7 @@
"number": 1,
"string": "foo"
},
"list": [
"foo"
]
"list": ["foo"]
}
}
],
@@ -240,9 +222,7 @@
"nested": {
"foo": "bar"
},
"list": [
"foo"
],
"list": ["foo"],
"nested.boolean": true,
"nested.number": 1,
"nested.string": "foo"
@@ -255,12 +235,7 @@
"nested": {
"foo": "bar"
},
"list": [
"foo",
"bar",
true,
1
]
"list": ["foo", "bar", true, 1]
}
}
]
@@ -317,4 +292,4 @@
"instanceId": "104a4d08d8897b8bdeb38aaca515021075e0bd8544c983c2bb8c86e6a8e6081c"
},
"tags": []
}
}
@@ -11,11 +11,42 @@
},
{
"parameters": {
"jsCode": "const newItems = [];\n\nfor (let i=0;i<10;i++) {\n newItems.push({json:{i}});\n}\n\nreturn newItems;"
"data": [
{
"i": 0
},
{
"i": 1
},
{
"i": 2
},
{
"i": 3
},
{
"i": 4
},
{
"i": 5
},
{
"i": 6
},
{
"i": 7
},
{
"i": 8
},
{
"i": 9
}
]
},
"id": "3962fba9-8f67-4b16-b2a2-69fc4b374fc8",
"name": "Create Test Data",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1080, 400]
},
@@ -136,11 +136,18 @@
},
{
"parameters": {
"jsCode": "return [\n {\n key: '0'\n },\n {\n key: '1'\n }\n];"
"data": [
{
"key": "0"
},
{
"key": "1"
}
]
},
"id": "cf21ca09-ca2e-4334-a6ea-e7453d8598ca",
"name": "Mock Data 1",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1000, 840]
},
@@ -156,11 +163,18 @@
},
{
"parameters": {
"jsCode": "return [\n {\n key: '0'\n },\n {\n key: '1'\n }\n];"
"data": [
{
"key": "0"
},
{
"key": "1"
}
]
},
"id": "f4b7b020-7d07-4aff-a99b-f0d6bfe656ff",
"name": "Mock Data 2",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1000, 1280]
},
@@ -176,11 +190,18 @@
},
{
"parameters": {
"jsCode": "return [\n {\n key: '0'\n },\n {\n key: '1'\n }\n];"
"data": [
{
"key": "0"
},
{
"key": "1"
}
]
},
"id": "d20015b3-6e15-4094-bd18-c62be7fbcf9e",
"name": "Mock Data 3",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1000, 1560]
},
@@ -1,171 +1,167 @@
{
"name": "My workflow 109",
"nodes": [
{
"parameters": {},
"id": "7ae16f96-5c2c-44a3-9f96-167e426336f9",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
620,
720
]
},
{
"parameters": {
"jsCode": "return [{\n \"output\": \"third\",\n \"text\": \"third output text\"\n}, {\n \"output\": \"fourth\",\n \"text\": \"fourth output text\"\n}, {\n \"output\": \"first\",\n \"text\": \"first output text\"\n}, {\n \"output\": \"second\",\n \"text\": \"second output text\"\n}]"
},
"id": "31e9aada-7aa2-4c62-8e15-0cecb91788e4",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
840,
720
]
},
{
"parameters": {},
"id": "cf10b4c7-16a6-4c16-a17c-7b83f954f7b9",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1380,
560
]
},
{
"parameters": {},
"id": "3e7e7f4a-bff9-4ce1-a5e5-58505853260f",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1380,
720
]
},
{
"parameters": {},
"id": "205f59d6-52f5-4412-9511-b680a91d0be2",
"name": "No Operation, do nothing2",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1380,
880
]
},
{
"parameters": {
"mode": "expression",
"output": "={{ Math.max(0, ['first', 'second', 'third'].indexOf( $json.output)) }}",
"outputsAmount": 3
},
"id": "9c3dc163-0103-45c2-8455-e6ab3e84679c",
"name": "Switch1",
"type": "n8n-nodes-base.switch",
"typeVersion": 2,
"position": [
1100,
720
]
}
],
"pinData": {
"No Operation, do nothing2": [
{
"json": {
"output": "third",
"text": "third output text"
}
}
],
"No Operation, do nothing1": [
{
"json": {
"output": "second",
"text": "second output text"
}
}
],
"No Operation, do nothing": [
{
"json": {
"output": "fourth",
"text": "fourth output text"
}
},
{
"json": {
"output": "first",
"text": "first output text"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Switch1",
"type": "main",
"index": 0
}
]
]
},
"Switch1": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing2",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "cca0f0b9-d01e-435b-9125-9616007f4aea",
"id": "xjPY8ZYJK53G6nQ1",
"meta": {
"instanceId": "ec7a5f4ffdb34436e59d23eaccb5015b5238de2a877e205b28572bf1ffecfe04"
},
"tags": []
"name": "My workflow 109",
"nodes": [
{
"parameters": {},
"id": "7ae16f96-5c2c-44a3-9f96-167e426336f9",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [620, 720]
},
{
"parameters": {
"data": [
{
"output": "third",
"text": "third output text"
},
{
"output": "fourth",
"text": "fourth output text"
},
{
"output": "first",
"text": "first output text"
},
{
"output": "second",
"text": "second output text"
}
]
},
"id": "31e9aada-7aa2-4c62-8e15-0cecb91788e4",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [840, 720]
},
{
"parameters": {},
"id": "cf10b4c7-16a6-4c16-a17c-7b83f954f7b9",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 560]
},
{
"parameters": {},
"id": "3e7e7f4a-bff9-4ce1-a5e5-58505853260f",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 720]
},
{
"parameters": {},
"id": "205f59d6-52f5-4412-9511-b680a91d0be2",
"name": "No Operation, do nothing2",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 880]
},
{
"parameters": {
"mode": "expression",
"output": "={{ Math.max(0, ['first', 'second', 'third'].indexOf( $json.output)) }}",
"outputsAmount": 3
},
"id": "9c3dc163-0103-45c2-8455-e6ab3e84679c",
"name": "Switch1",
"type": "n8n-nodes-base.switch",
"typeVersion": 2,
"position": [1100, 720]
}
],
"pinData": {
"No Operation, do nothing2": [
{
"json": {
"output": "third",
"text": "third output text"
}
}
],
"No Operation, do nothing1": [
{
"json": {
"output": "second",
"text": "second output text"
}
}
],
"No Operation, do nothing": [
{
"json": {
"output": "fourth",
"text": "fourth output text"
}
},
{
"json": {
"output": "first",
"text": "first output text"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Switch1",
"type": "main",
"index": 0
}
]
]
},
"Switch1": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing2",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "cca0f0b9-d01e-435b-9125-9616007f4aea",
"id": "xjPY8ZYJK53G6nQ1",
"meta": {
"instanceId": "ec7a5f4ffdb34436e59d23eaccb5015b5238de2a877e205b28572bf1ffecfe04"
},
"tags": []
}
@@ -1,187 +1,183 @@
{
"name": "My workflow 109",
"nodes": [
{
"parameters": {},
"id": "7ae16f96-5c2c-44a3-9f96-167e426336f9",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
620,
720
]
},
{
"parameters": {
"jsCode": "return [{\n \"output\": \"third\",\n \"text\": \"third output text\"\n}, {\n \"output\": \"fourth\",\n \"text\": \"fourth output text\"\n}, {\n \"output\": \"first\",\n \"text\": \"first output text\"\n}, {\n \"output\": \"second\",\n \"text\": \"second output text\"\n}]"
},
"id": "31e9aada-7aa2-4c62-8e15-0cecb91788e4",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
840,
720
]
},
{
"parameters": {
"dataType": "string",
"value1": "={{ $json.output }}",
"rules": {
"rules": [
{
"value2": "first",
"outputKey": "First Output"
},
{
"value2": "second",
"outputKey": "Second Output"
},
{
"value2": "third",
"outputKey": "Third Output"
}
]
},
"fallbackOutput": 2
},
"id": "0dd6e98a-2830-42fb-9a9d-6d4ff8678cbd",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"typeVersion": 2,
"position": [
1120,
720
]
},
{
"parameters": {},
"id": "cf10b4c7-16a6-4c16-a17c-7b83f954f7b9",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1380,
560
]
},
{
"parameters": {},
"id": "3e7e7f4a-bff9-4ce1-a5e5-58505853260f",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1380,
720
]
},
{
"parameters": {},
"id": "205f59d6-52f5-4412-9511-b680a91d0be2",
"name": "No Operation, do nothing2",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1380,
880
]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"output": "first",
"text": "first output text"
}
}
],
"No Operation, do nothing1": [
{
"json": {
"output": "second",
"text": "second output text"
}
}
],
"No Operation, do nothing2": [
{
"json": {
"output": "third",
"text": "third output text"
}
},
{
"json": {
"output": "fourth",
"text": "fourth output text"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing2",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "627af20f-47fc-47a7-8da6-a7e7b21225df",
"id": "xjPY8ZYJK53G6nQ1",
"meta": {
"instanceId": "ec7a5f4ffdb34436e59d23eaccb5015b5238de2a877e205b28572bf1ffecfe04"
},
"tags": []
"name": "My workflow 109",
"nodes": [
{
"parameters": {},
"id": "7ae16f96-5c2c-44a3-9f96-167e426336f9",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [620, 720]
},
{
"parameters": {
"data": [
{
"output": "third",
"text": "third output text"
},
{
"output": "fourth",
"text": "fourth output text"
},
{
"output": "first",
"text": "first output text"
},
{
"output": "second",
"text": "second output text"
}
]
},
"id": "31e9aada-7aa2-4c62-8e15-0cecb91788e4",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [840, 720]
},
{
"parameters": {
"dataType": "string",
"value1": "={{ $json.output }}",
"rules": {
"rules": [
{
"value2": "first",
"outputKey": "First Output"
},
{
"value2": "second",
"outputKey": "Second Output"
},
{
"value2": "third",
"outputKey": "Third Output"
}
]
},
"fallbackOutput": 2
},
"id": "0dd6e98a-2830-42fb-9a9d-6d4ff8678cbd",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"typeVersion": 2,
"position": [1120, 720]
},
{
"parameters": {},
"id": "cf10b4c7-16a6-4c16-a17c-7b83f954f7b9",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 560]
},
{
"parameters": {},
"id": "3e7e7f4a-bff9-4ce1-a5e5-58505853260f",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 720]
},
{
"parameters": {},
"id": "205f59d6-52f5-4412-9511-b680a91d0be2",
"name": "No Operation, do nothing2",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 880]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"output": "first",
"text": "first output text"
}
}
],
"No Operation, do nothing1": [
{
"json": {
"output": "second",
"text": "second output text"
}
}
],
"No Operation, do nothing2": [
{
"json": {
"output": "third",
"text": "third output text"
}
},
{
"json": {
"output": "fourth",
"text": "fourth output text"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing2",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "627af20f-47fc-47a7-8da6-a7e7b21225df",
"id": "xjPY8ZYJK53G6nQ1",
"meta": {
"instanceId": "ec7a5f4ffdb34436e59d23eaccb5015b5238de2a877e205b28572bf1ffecfe04"
},
"tags": []
}
@@ -1,168 +1,167 @@
{
"name": "My workflow 64",
"nodes": [
{
"parameters": {},
"id": "58cc2d21-a8b1-424d-a8e4-e79d39955fa8",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
0,
620
]
},
{
"parameters": {
"jsCode": "return [{\n \"output\": \"third\",\n \"text\": \"third output text\"\n}, {\n \"output\": \"fourth\",\n \"text\": \"fourth output text\"\n}, {\n \"output\": \"first\",\n \"text\": \"first output text\"\n}, {\n \"output\": \"second\",\n \"text\": \"second output text\"\n}]"
},
"id": "85adf7fc-2d33-49aa-b4bb-2000cce07ce0",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
220,
620
]
},
{
"parameters": {},
"id": "ebab0b65-6feb-416c-828e-ca5e766ea048",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
760,
460
]
},
{
"parameters": {},
"id": "2f58a703-b7ae-4279-a60b-a0243af3b563",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
760,
620
]
},
{
"parameters": {},
"id": "b1d0b310-6edf-4a40-a66d-689078ddbf31",
"name": "No Operation, do nothing2",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
760,
780
]
},
{
"parameters": {
"mode": "expression",
"numberOutputs": 3,
"output": "={{ Math.max(0, ['first', 'second', 'third'].indexOf( $json.output)) }}"
},
"id": "437e2c46-81d8-4c76-a036-db767576f55d",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"typeVersion": 3,
"position": [
460,
620
]
}
],
"pinData": {
"No Operation, do nothing2": [
{
"json": {
"output": "third",
"text": "third output text"
}
}
],
"No Operation, do nothing1": [
{
"json": {
"output": "second",
"text": "second output text"
}
}
],
"No Operation, do nothing": [
{
"json": {
"output": "fourth",
"text": "fourth output text"
}
},
{
"json": {
"output": "first",
"text": "first output text"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing2",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "c72f2f9b-5089-42c2-8939-b70d9467a718",
"id": "1vDZkJN9SpYXu0Ic",
"meta": {
"instanceId": "b888bd11cd1ddbb95450babf3e199556799d999b896f650de768b8370ee50363"
},
"tags": []
"name": "My workflow 64",
"nodes": [
{
"parameters": {},
"id": "58cc2d21-a8b1-424d-a8e4-e79d39955fa8",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [0, 620]
},
{
"parameters": {
"data": [
{
"output": "third",
"text": "third output text"
},
{
"output": "fourth",
"text": "fourth output text"
},
{
"output": "first",
"text": "first output text"
},
{
"output": "second",
"text": "second output text"
}
]
},
"id": "85adf7fc-2d33-49aa-b4bb-2000cce07ce0",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [220, 620]
},
{
"parameters": {},
"id": "ebab0b65-6feb-416c-828e-ca5e766ea048",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [760, 460]
},
{
"parameters": {},
"id": "2f58a703-b7ae-4279-a60b-a0243af3b563",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [760, 620]
},
{
"parameters": {},
"id": "b1d0b310-6edf-4a40-a66d-689078ddbf31",
"name": "No Operation, do nothing2",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [760, 780]
},
{
"parameters": {
"mode": "expression",
"numberOutputs": 3,
"output": "={{ Math.max(0, ['first', 'second', 'third'].indexOf( $json.output)) }}"
},
"id": "437e2c46-81d8-4c76-a036-db767576f55d",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"typeVersion": 3,
"position": [460, 620]
}
],
"pinData": {
"No Operation, do nothing2": [
{
"json": {
"output": "third",
"text": "third output text"
}
}
],
"No Operation, do nothing1": [
{
"json": {
"output": "second",
"text": "second output text"
}
}
],
"No Operation, do nothing": [
{
"json": {
"output": "fourth",
"text": "fourth output text"
}
},
{
"json": {
"output": "first",
"text": "first output text"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing2",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "c72f2f9b-5089-42c2-8939-b70d9467a718",
"id": "1vDZkJN9SpYXu0Ic",
"meta": {
"instanceId": "b888bd11cd1ddbb95450babf3e199556799d999b896f650de768b8370ee50363"
},
"tags": []
}
@@ -1,242 +1,241 @@
{
"name": "My workflow 64",
"nodes": [
{
"parameters": {},
"id": "2c6504d1-9412-4da5-bd51-e5f9d6a84721",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-560,
620
]
},
{
"parameters": {
"jsCode": "return [{\n \"output\": \"third\",\n \"text\": \"third output text\"\n}, {\n \"output\": \"fourth\",\n \"text\": \"fourth output text\"\n}, {\n \"output\": \"first\",\n \"text\": \"first output text\"\n}, {\n \"output\": \"second\",\n \"text\": \"second output text\"\n}]"
},
"id": "73d838de-89f2-476e-9dc8-a4dc59e4bdfb",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
-340,
620
]
},
{
"parameters": {},
"id": "d19a786e-e9fc-4480-af8a-c1abc9d9ef9a",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
200,
460
]
},
{
"parameters": {},
"id": "82d5a7b9-6a29-4df8-823a-bd926f2000a9",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
200,
620
]
},
{
"parameters": {},
"id": "40276b8e-eaad-49bd-9271-cd82c6688f24",
"name": "No Operation, do nothing2",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
200,
780
]
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"leftValue": "={{ $json.output }}",
"rightValue": "first",
"operator": {
"type": "string",
"operation": "equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "First Output"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "199d4f8c-1c92-48cd-99ad-e1da186ed54f",
"leftValue": "={{ $json.output }}",
"rightValue": "second",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Second Output"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "e894662a-7496-4df4-a084-7200c3192485",
"leftValue": "={{ $json.output }}",
"rightValue": "third",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Third Output"
}
]
},
"options": {
"fallbackOutput": 2
}
},
"id": "0c34bae5-89c8-4adb-bb38-092d5a0e349e",
"name": "Switch1",
"type": "n8n-nodes-base.switch",
"typeVersion": 3,
"position": [
-120,
620
]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"output": "first",
"text": "first output text"
}
}
],
"No Operation, do nothing1": [
{
"json": {
"output": "second",
"text": "second output text"
}
}
],
"No Operation, do nothing2": [
{
"json": {
"output": "third",
"text": "third output text"
}
},
{
"json": {
"output": "fourth",
"text": "fourth output text"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Switch1",
"type": "main",
"index": 0
}
]
]
},
"Switch1": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing2",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "c9c4d7fd-b704-4664-8fde-d1c2414e68f0",
"id": "1vDZkJN9SpYXu0Ic",
"meta": {
"instanceId": "b888bd11cd1ddbb95450babf3e199556799d999b896f650de768b8370ee50363"
},
"tags": []
"name": "My workflow 64",
"nodes": [
{
"parameters": {},
"id": "2c6504d1-9412-4da5-bd51-e5f9d6a84721",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [-560, 620]
},
{
"parameters": {
"data": [
{
"output": "third",
"text": "third output text"
},
{
"output": "fourth",
"text": "fourth output text"
},
{
"output": "first",
"text": "first output text"
},
{
"output": "second",
"text": "second output text"
}
]
},
"id": "73d838de-89f2-476e-9dc8-a4dc59e4bdfb",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-340, 620]
},
{
"parameters": {},
"id": "d19a786e-e9fc-4480-af8a-c1abc9d9ef9a",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [200, 460]
},
{
"parameters": {},
"id": "82d5a7b9-6a29-4df8-823a-bd926f2000a9",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [200, 620]
},
{
"parameters": {},
"id": "40276b8e-eaad-49bd-9271-cd82c6688f24",
"name": "No Operation, do nothing2",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [200, 780]
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"leftValue": "={{ $json.output }}",
"rightValue": "first",
"operator": {
"type": "string",
"operation": "equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "First Output"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "199d4f8c-1c92-48cd-99ad-e1da186ed54f",
"leftValue": "={{ $json.output }}",
"rightValue": "second",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Second Output"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "e894662a-7496-4df4-a084-7200c3192485",
"leftValue": "={{ $json.output }}",
"rightValue": "third",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Third Output"
}
]
},
"options": {
"fallbackOutput": 2
}
},
"id": "0c34bae5-89c8-4adb-bb38-092d5a0e349e",
"name": "Switch1",
"type": "n8n-nodes-base.switch",
"typeVersion": 3,
"position": [-120, 620]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"output": "first",
"text": "first output text"
}
}
],
"No Operation, do nothing1": [
{
"json": {
"output": "second",
"text": "second output text"
}
}
],
"No Operation, do nothing2": [
{
"json": {
"output": "third",
"text": "third output text"
}
},
{
"json": {
"output": "fourth",
"text": "fourth output text"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Switch1",
"type": "main",
"index": 0
}
]
]
},
"Switch1": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing2",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "c9c4d7fd-b704-4664-8fde-d1c2414e68f0",
"id": "1vDZkJN9SpYXu0Ic",
"meta": {
"instanceId": "b888bd11cd1ddbb95450babf3e199556799d999b896f650de768b8370ee50363"
},
"tags": []
}
@@ -11,11 +11,32 @@
},
{
"parameters": {
"jsCode": "return [\n {id: 1, char: 'a'},\n {id: 2, char: 'b'},\n {id: 3, char: 'c'},\n {id: 4, char: 'd'},\n {id: 5, char: 'e'},\n];"
"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-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-180, 260]
},
@@ -11,11 +11,27 @@
},
{
"parameters": {
"jsCode": "return [\n {entry: 1},\n {entry: 2},\n {entry: 3},\n {entry: 4},\n {entry: 5},\n];"
"data": [
{
"entry": 1
},
{
"entry": 2
},
{
"entry": 3
},
{
"entry": 4
},
{
"entry": 5
}
]
},
"id": "21185d7a-f0c1-49a0-9c2d-f0f198ceea7e",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [520, 180]
},
@@ -1,326 +1,316 @@
{
"name": "Remove Duplicates",
"nodes": [
{
"parameters": {},
"id": "a4da10da-991f-48ab-b873-9d633a11311f",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
760,
420
]
},
{
"parameters": {
"jsCode": "return [{ id: 1, name: 'John Doe', age: 18 },{ id: 1, name: 'John Doe', age: 18 },\n { id: 1, name: 'John Doe', age: 98 },\n { id: 3, name: 'Bob Johnson', age:34 }]"
{
"parameters": {},
"id": "a4da10da-991f-48ab-b873-9d633a11311f",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [760, 420]
},
"id": "7ab7d5cd-0b1e-48bc-bdbd-57c91e201cf3",
"name": "Code",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
980,
420
]
},
{
"parameters": {},
"id": "c336939c-062e-475e-ba7c-8601e3662e8c",
"name": "Remove Duplicates (All Fields)",
"type": "n8n-nodes-base.removeDuplicates",
"typeVersion": 1,
"position": [
1200,
260
]
},
{
"parameters": {
"compare": "selectedFields",
"fieldsToCompare": "name",
"options": {}
{
"parameters": {
"data": [
{
"id": 1,
"name": "John Doe",
"age": 18
},
{
"id": 1,
"name": "John Doe",
"age": 18
},
{
"id": 1,
"name": "John Doe",
"age": 98
},
{
"id": 3,
"name": "Bob Johnson",
"age": 34
}
]
},
"id": "7ab7d5cd-0b1e-48bc-bdbd-57c91e201cf3",
"name": "Code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [980, 420]
},
"id": "d4343ffe-8a9e-4e34-a0a1-aa463afedd80",
"name": "Remove Duplicates (Selected Fields)",
"type": "n8n-nodes-base.removeDuplicates",
"typeVersion": 1,
"position": [
1200,
420
]
},
{
"parameters": {
"compare": "allFieldsExcept",
"fieldsToExclude": "age",
"options": {}
{
"parameters": {},
"id": "c336939c-062e-475e-ba7c-8601e3662e8c",
"name": "Remove Duplicates (All Fields)",
"type": "n8n-nodes-base.removeDuplicates",
"typeVersion": 1,
"position": [1200, 260]
},
"id": "b67daea4-4545-429e-9e2a-58f2d6a7df7b",
"name": "Remove Duplicates (Except Fields)",
"type": "n8n-nodes-base.removeDuplicates",
"typeVersion": 1,
"position": [
1200,
580
]
},
{
"parameters": {},
"id": "813e690f-a83e-4a38-a64a-c3d72afcc9ba",
"name": "All Fields",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1380,
260
]
},
{
"parameters": {},
"id": "b5c5c946-2e96-451b-b9a6-78e478504d6c",
"name": "Selected Fields",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1380,
420
]
},
{
"parameters": {},
"id": "afb92bc5-beba-4b0a-aefb-b47cc708a125",
"name": "Except Fields",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1380,
580
]
},
{
"parameters": {
"compare": "allFieldsExcept",
"fieldsToExclude": "age",
"options": {
"removeOtherFields": true
}
{
"parameters": {
"compare": "selectedFields",
"fieldsToCompare": "name",
"options": {}
},
"id": "d4343ffe-8a9e-4e34-a0a1-aa463afedd80",
"name": "Remove Duplicates (Selected Fields)",
"type": "n8n-nodes-base.removeDuplicates",
"typeVersion": 1,
"position": [1200, 420]
},
"id": "f92c5533-ac29-476c-aebb-4849ddd22110",
"name": "Remove Duplicates (Remove)",
"type": "n8n-nodes-base.removeDuplicates",
"typeVersion": 1,
"position": [
1200,
760
]
},
{
"parameters": {},
"id": "1e142ab7-b32e-4f67-b5cc-5c9fb63fba89",
"name": "Remove",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1380,
760
]
}
{
"parameters": {
"compare": "allFieldsExcept",
"fieldsToExclude": "age",
"options": {}
},
"id": "b67daea4-4545-429e-9e2a-58f2d6a7df7b",
"name": "Remove Duplicates (Except Fields)",
"type": "n8n-nodes-base.removeDuplicates",
"typeVersion": 1,
"position": [1200, 580]
},
{
"parameters": {},
"id": "813e690f-a83e-4a38-a64a-c3d72afcc9ba",
"name": "All Fields",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 260]
},
{
"parameters": {},
"id": "b5c5c946-2e96-451b-b9a6-78e478504d6c",
"name": "Selected Fields",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 420]
},
{
"parameters": {},
"id": "afb92bc5-beba-4b0a-aefb-b47cc708a125",
"name": "Except Fields",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 580]
},
{
"parameters": {
"compare": "allFieldsExcept",
"fieldsToExclude": "age",
"options": {
"removeOtherFields": true
}
},
"id": "f92c5533-ac29-476c-aebb-4849ddd22110",
"name": "Remove Duplicates (Remove)",
"type": "n8n-nodes-base.removeDuplicates",
"typeVersion": 1,
"position": [1200, 760]
},
{
"parameters": {},
"id": "1e142ab7-b32e-4f67-b5cc-5c9fb63fba89",
"name": "Remove",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1380, 760]
}
],
"pinData": {
"Code": [
{
"json": {
"id": 1,
"name": "John Doe",
"age": 18
}
},
{
"json": {
"id": 1,
"name": "John Doe",
"age": 18
}
},
{
"json": {
"id": 1,
"name": "John Doe",
"age": 98
}
},
{
"json": {
"id": 3,
"name": "Bob Johnson",
"age": 34
}
}
],
"All Fields": [
{
"json": {
"id": 1,
"name": "John Doe",
"age": 18
}
},
{
"json": {
"id": 1,
"name": "John Doe",
"age": 98
}
},
{
"json": {
"id": 3,
"name": "Bob Johnson",
"age": 34
}
}
],
"Selected Fields": [
{
"json": {
"id": 1,
"name": "John Doe",
"age": 18
}
},
{
"json": {
"id": 3,
"name": "Bob Johnson",
"age": 34
}
}
],
"Except Fields": [
{
"json": {
"id": 1,
"name": "John Doe",
"age": 18
}
},
{
"json": {
"id": 3,
"name": "Bob Johnson",
"age": 34
}
}
],
"Remove": [
{
"json": {
"id": 1,
"name": "John Doe"
}
},
{
"json": {
"id": 3,
"name": "Bob Johnson"
}
}
]
"Code": [
{
"json": {
"id": 1,
"name": "John Doe",
"age": 18
}
},
{
"json": {
"id": 1,
"name": "John Doe",
"age": 18
}
},
{
"json": {
"id": 1,
"name": "John Doe",
"age": 98
}
},
{
"json": {
"id": 3,
"name": "Bob Johnson",
"age": 34
}
}
],
"All Fields": [
{
"json": {
"id": 1,
"name": "John Doe",
"age": 18
}
},
{
"json": {
"id": 1,
"name": "John Doe",
"age": 98
}
},
{
"json": {
"id": 3,
"name": "Bob Johnson",
"age": 34
}
}
],
"Selected Fields": [
{
"json": {
"id": 1,
"name": "John Doe",
"age": 18
}
},
{
"json": {
"id": 3,
"name": "Bob Johnson",
"age": 34
}
}
],
"Except Fields": [
{
"json": {
"id": 1,
"name": "John Doe",
"age": 18
}
},
{
"json": {
"id": 3,
"name": "Bob Johnson",
"age": 34
}
}
],
"Remove": [
{
"json": {
"id": 1,
"name": "John Doe"
}
},
{
"json": {
"id": 3,
"name": "Bob Johnson"
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Remove Duplicates (All Fields)",
"type": "main",
"index": 0
},
{
"node": "Remove Duplicates (Selected Fields)",
"type": "main",
"index": 0
},
{
"node": "Remove Duplicates (Except Fields)",
"type": "main",
"index": 0
},
{
"node": "Remove Duplicates (Remove)",
"type": "main",
"index": 0
}
]
]
},
"Remove Duplicates (All Fields)": {
"main": [
[
{
"node": "All Fields",
"type": "main",
"index": 0
}
]
]
},
"Remove Duplicates (Selected Fields)": {
"main": [
[
{
"node": "Selected Fields",
"type": "main",
"index": 0
}
]
]
},
"Remove Duplicates (Except Fields)": {
"main": [
[
{
"node": "Except Fields",
"type": "main",
"index": 0
}
]
]
},
"Remove Duplicates (Remove)": {
"main": [
[
{
"node": "Remove",
"type": "main",
"index": 0
}
]
]
}
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Code": {
"main": [
[
{
"node": "Remove Duplicates (All Fields)",
"type": "main",
"index": 0
},
{
"node": "Remove Duplicates (Selected Fields)",
"type": "main",
"index": 0
},
{
"node": "Remove Duplicates (Except Fields)",
"type": "main",
"index": 0
},
{
"node": "Remove Duplicates (Remove)",
"type": "main",
"index": 0
}
]
]
},
"Remove Duplicates (All Fields)": {
"main": [
[
{
"node": "All Fields",
"type": "main",
"index": 0
}
]
]
},
"Remove Duplicates (Selected Fields)": {
"main": [
[
{
"node": "Selected Fields",
"type": "main",
"index": 0
}
]
]
},
"Remove Duplicates (Except Fields)": {
"main": [
[
{
"node": "Except Fields",
"type": "main",
"index": 0
}
]
]
},
"Remove Duplicates (Remove)": {
"main": [
[
{
"node": "Remove",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
"executionOrder": "v1"
},
"versionId": "5bb09766-4c67-4fb4-ae53-89d8db4727e3",
"id": "74gMYOHjjPArZg4q",
"meta": {
"instanceId": "27cc9b56542ad45b38725555722c50a1c3fee1670bbb67980558314ee08517c4"
"instanceId": "27cc9b56542ad45b38725555722c50a1c3fee1670bbb67980558314ee08517c4"
},
"tags": [
]
}
"tags": []
}
@@ -11,11 +11,44 @@
},
{
"parameters": {
"jsCode": "return { \ndata:[\n {id: 3, char: 'c'},\n {id: 4, char: 'd'},\n {id: 5, char: 'e'},\n {id: 1, char: 'a'},\n {id: 2, char: 'b'},\n],\ndata2: [\n {text: 'foo'},\n],\ndata3: [\n {text: 'bar'},\n],\n};"
"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-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-180, 400]
},
@@ -48,11 +81,6 @@
"include": "selectedOtherFields",
"fieldsToInclude": ["data3"],
"options": {}
},
"id": "7ea63dc7-8141-4233-af47-9894919c7fe4",
@@ -24,11 +24,34 @@
},
{
"parameters": {
"jsCode": "const data = {\n entry1: {\n id: 1,\n info: 'some info 1',\n },\n entry2: {\n id: 2,\n info: 'some info 2',\n },\n entry3: {\n id: 3,\n info: 'some info 3',\n },\n};\n\n\nconst data2 = [\n 'a', 'b', 'c'\n];\n\nconst data3 = {\n a: 1,\n b: 2,\n c: 3,\n};\n\nreturn {data, data2, data3, data4: null, tag: 'bar'};"
"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-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [760, 800]
},
@@ -11,11 +11,67 @@
},
{
"parameters": {
"jsCode": "return [\n {\n category: \"red\",\n text: \"foo\",\n char: \"a\",\n value: 1,\n \"params.interval\": \"1 day\",\n params: {\n interval: \"1 day\",\n },\n },\n {\n category: \"blue\",\n text: \"spam\",\n char: \"b\",\n value: 2,\n params: {\n interval: \"1 hour\",\n },\n },\n {\n category: \"green\",\n text: \"bar\",\n char: \"c\",\n value: 3,\n },\n {\n category: \"red\",\n text: \"foo\",\n char: \"a\",\n value: 4,\n },\n {\n category: \"red\",\n text: \"bar\",\n char: \"a\",\n value: 5,\n params: {\n interval: \"1 minute\",\n },\n },\n {\n category: \"blue\",\n text: \"foo\",\n char: \"a\",\n value: 6,\n },\n {\n category: \"blue\",\n text: \"foo\",\n char: \"a\",\n value: 7,\n params: {\n interval: \"1 second\",\n },\n },\n];\n"
"data": [
{
"category": "red",
"text": "foo",
"char": "a",
"value": 1,
"params.interval": "1 day",
"params": {
"interval": "1 day"
}
},
{
"category": "blue",
"text": "spam",
"char": "b",
"value": 2,
"params": {
"interval": "1 hour"
}
},
{
"category": "green",
"text": "bar",
"char": "c",
"value": 3
},
{
"category": "red",
"text": "foo",
"char": "a",
"value": 4
},
{
"category": "red",
"text": "bar",
"char": "a",
"value": 5,
"params": {
"interval": "1 minute"
}
},
{
"category": "blue",
"text": "foo",
"char": "a",
"value": 6
},
{
"category": "blue",
"text": "foo",
"char": "a",
"value": 7,
"params": {
"interval": "1 second"
}
}
]
},
"id": "5a71d6f2-96fb-4616-94b7-5644c71e3bfb",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [60, 340]
},
@@ -11,10 +11,18 @@
},
{
"parameters": {
"jsCode": "return [\n { review: \"Great product!\" },\n { review: \"\" }, // Empty string\n { review: null }, // Null value\n { review: null }, // Null value\n { review: \"Bad product\" },\n { review: undefined }, // Undefined value\n { review: undefined } // Undefined value\n];\n // { region: \"North\", sales: 100 },\n // { region: \"North\", sales: 200 },\n // { region: \"South\", sales: null },\n // { region: \"\", sales: 300 },\n // { region: \"East\", sales: undefined },\n // { region: \"West\", sales: 400 }\n"
"data": [
{ "review": "Great product!" },
{ "review": "" },
{ "review": null },
{ "review": null },
{ "review": "Bad product" },
{},
{}
]
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-520, -80],
"id": "80f3462d-7ea5-4af1-bd13-f3f46b0ee43f",
"name": "sample data1"
@@ -93,10 +101,34 @@
},
{
"parameters": {
"jsCode": "return [\n { region: \"North\", sales: 100 },\n { region: \"North\", sales: 200 },\n { region: \"South\", sales: null },\n { region: \"\", sales: 300 },\n { region: \"East\", sales: undefined },\n { region: \"West\", sales: 400 }\n];"
"data": [
{
"region": "North",
"sales": 100
},
{
"region": "North",
"sales": 200
},
{
"region": "South",
"sales": null
},
{
"region": "",
"sales": 300
},
{
"region": "East"
},
{
"region": "West",
"sales": 400
}
]
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-520, 500],
"id": "0de1d232-09c1-412f-9481-0120db0792bf",
"name": "sample data2"
@@ -11,10 +11,91 @@
},
{
"parameters": {
"jsCode": "return [\n {\n \"uid\": \"a0e797c2-ffcf-495b-96f3-982f7bc4eae5\",\n \"email\": \"Alfredo83@gmail.com\",\n \"firstname\": \"Charlie\",\n \"lastname\": \"Jacobi\",\n \"password\": \"34~XLKdGit\",\n \"Group\": 0\n },\n {\n \"uid\": \"5713682e-4f32-47dc-ae89-ae4a8ac28a46\",\n \"email\": \"Zachary43@yahoo.com\",\n \"firstname\": \"Leonard\",\n \"lastname\": \"Blick\",\n \"password\": \"4sh5z!R\",\n \"Group\": 0\n },\n {\n \"uid\": \"1bb2a432-d2fb-48e4-a7b0-39030ef0d784\",\n \"email\": \"Cory_Wilderman@yahoo.com\",\n \"firstname\": \"Debra\",\n \"lastname\": \"Corkery\",\n \"password\": \"-8X1CKMFh\",\n \"Group\": 1\n },\n {\n \"uid\": \"4edb11bc-9256-4f26-9be6-f8b04e90ecb2\",\n \"email\": \"Mindy_Murazik86@gmail.com\",\n \"firstname\": \"Wendy\",\n \"lastname\": \"Schiller\",\n \"password\": \"WF373t,fe\",\n \"Group\": 2\n },\n {\n \"uid\": \"ec6efd3d-508c-4f1e-acae-c9467b74f5a6\",\n \"email\": \"Darin_Vandervort@yahoo.com\",\n \"firstname\": \"Dolores\",\n \"lastname\": \"Walter\",\n \"password\": \".45KCBk\",\n \"Group\": 2\n },\n {\n \"uid\": \"173ee780-4e4f-4164-aa39-41a0402cd2ad\",\n \"email\": \"Claude.Grady6@gmail.com\",\n \"firstname\": \"Leonard\",\n \"lastname\": \"Krajcik\",\n \"password\": \"6x6-MN8vch\",\n \"Group\": null\n },\n {\n \"uid\": \"b1f191d8-4f95-49f6-8533-042048b4c162\",\n \"email\": \"Ismael_Volkman@hotmail.com\",\n \"firstname\": \"Terri\",\n \"lastname\": \"Kuphal\",\n \"password\": \"62+BNNCk\",\n \"Group\": null\n },\n {\n \"uid\": \"ee8c6d18-1e77-435d-8c9a-5215141d7697\",\n \"email\": \"Paulette.Hudson@hotmail.com\",\n \"firstname\": \"Clinton\",\n \"lastname\": \"Murphy\",\n \"password\": \"2+R8IRxHL\",\n \"Group\": null\n },\n {\n \"uid\": \"feeb4357-0e20-4b15-9199-f161c23da1a2\",\n \"email\": \"Guillermo.Kub33@gmail.com\",\n \"firstname\": \"Edward\",\n \"lastname\": \"Schaden\",\n \"password\": \"Kv23S1_H\",\n \"Group\": 0\n },\n {\n \"uid\": \"676003ec-8a40-4105-8237-ba1d9eb51fc2\",\n \"email\": \"Cindy.White@hotmail.com\",\n \"firstname\": \"Esther\",\n \"lastname\": \"Monahan\",\n \"password\": \"5q$RyBhp\",\n \"Group\": 2\n }\n]"
"data": [
{
"uid": "a0e797c2-ffcf-495b-96f3-982f7bc4eae5",
"email": "Alfredo83@gmail.com",
"firstname": "Charlie",
"lastname": "Jacobi",
"password": "34~XLKdGit",
"Group": 0
},
{
"uid": "5713682e-4f32-47dc-ae89-ae4a8ac28a46",
"email": "Zachary43@yahoo.com",
"firstname": "Leonard",
"lastname": "Blick",
"password": "4sh5z!R",
"Group": 0
},
{
"uid": "1bb2a432-d2fb-48e4-a7b0-39030ef0d784",
"email": "Cory_Wilderman@yahoo.com",
"firstname": "Debra",
"lastname": "Corkery",
"password": "-8X1CKMFh",
"Group": 1
},
{
"uid": "4edb11bc-9256-4f26-9be6-f8b04e90ecb2",
"email": "Mindy_Murazik86@gmail.com",
"firstname": "Wendy",
"lastname": "Schiller",
"password": "WF373t,fe",
"Group": 2
},
{
"uid": "ec6efd3d-508c-4f1e-acae-c9467b74f5a6",
"email": "Darin_Vandervort@yahoo.com",
"firstname": "Dolores",
"lastname": "Walter",
"password": ".45KCBk",
"Group": 2
},
{
"uid": "173ee780-4e4f-4164-aa39-41a0402cd2ad",
"email": "Claude.Grady6@gmail.com",
"firstname": "Leonard",
"lastname": "Krajcik",
"password": "6x6-MN8vch",
"Group": null
},
{
"uid": "b1f191d8-4f95-49f6-8533-042048b4c162",
"email": "Ismael_Volkman@hotmail.com",
"firstname": "Terri",
"lastname": "Kuphal",
"password": "62+BNNCk",
"Group": null
},
{
"uid": "ee8c6d18-1e77-435d-8c9a-5215141d7697",
"email": "Paulette.Hudson@hotmail.com",
"firstname": "Clinton",
"lastname": "Murphy",
"password": "2+R8IRxHL",
"Group": null
},
{
"uid": "feeb4357-0e20-4b15-9199-f161c23da1a2",
"email": "Guillermo.Kub33@gmail.com",
"firstname": "Edward",
"lastname": "Schaden",
"password": "Kv23S1_H",
"Group": 0
},
{
"uid": "676003ec-8a40-4105-8237-ba1d9eb51fc2",
"email": "Cindy.White@hotmail.com",
"firstname": "Esther",
"lastname": "Monahan",
"password": "5q$RyBhp",
"Group": 2
}
]
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [-100, -80],
"id": "691f2744-8689-4b5c-91e7-2bb378691ecf",
"name": "sample data"
@@ -11,11 +11,19 @@
},
{
"parameters": {
"jsCode": "return [\n {\n json: {\n a: {\n b: {\n c: 1\n }\n }\n }\n }\n];\n"
"data": [
{
"a": {
"b": {
"c": 1
}
}
}
]
},
"id": "be80ce82-d312-460d-ac79-05c0626845ad",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [1080, 380]
},
@@ -22,11 +22,18 @@
},
{
"parameters": {
"jsCode": "return {\n data: {\n id: 1,\n firstName: 'Adam',\n secondName: 'Smith',\n fullName: 'Adam Smith',\n }\n}"
"data": {
"data": {
"id": 1,
"firstName": "Adam",
"secondName": "Smith",
"fullName": "Adam Smith"
}
}
},
"id": "6a04ca32-c9cc-4cb1-a6b9-3a505b1c2dd5",
"name": "Code",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [700, 400]
},
@@ -45,11 +52,13 @@
},
{
"parameters": {
"jsCode": "return {\n\"data\":\n'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?> <data> <id>1</id> <firstName>Adam</firstName> <secondName>Smith</secondName> <fullName>Adam Smith</fullName> </data>'\n}"
"data": {
"data": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?> <data> <id>1</id> <firstName>Adam</firstName> <secondName>Smith</secondName> <fullName>Adam Smith</fullName> </data>"
}
},
"id": "817afbf7-9342-403f-8dc0-c4a3905fde4d",
"name": "Code1",
"type": "n8n-nodes-base.code",
"type": "n8n-nodes-testing.testData",
"typeVersion": 1,
"position": [680, 640]
},