mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
79f23fb939
This adds support for 1. custom delimiters 2. reading offsets to avoid having to read a large CSV all at once 3. excluding byte-order-mark NODE-861 #7443
272 lines
4.8 KiB
JSON
272 lines
4.8 KiB
JSON
{
|
|
"nodes": [
|
|
{
|
|
"parameters": {},
|
|
"id": "087277cc-297d-4912-bd11-86626eff2d71",
|
|
"name": "When clicking \"Execute Workflow\"",
|
|
"type": "n8n-nodes-base.manualTrigger",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
620,
|
|
640
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {}
|
|
},
|
|
"id": "f55bc21c-c9a8-43af-bbc8-e4bdd30f0ce9",
|
|
"name": "Read From File",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1260,
|
|
640
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"fileSelector": "spreadsheet.csv"
|
|
},
|
|
"id": "d7620053-eb3d-43dd-b2cd-d60d9a08a9cc",
|
|
"name": "Read Binary File",
|
|
"type": "n8n-nodes-base.readBinaryFiles",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
840,
|
|
640
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "toFile",
|
|
"fileFormat": "csv",
|
|
"options": {}
|
|
},
|
|
"id": "21bc49fe-1e6b-46d6-a04d-cb474d138e02",
|
|
"name": "Write To File CSV",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1580,
|
|
280
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "toFile",
|
|
"fileFormat": "html",
|
|
"options": {}
|
|
},
|
|
"id": "a4c2c717-5a9d-4fd6-8450-6bb78e233c05",
|
|
"name": "Write To File HTML",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1580,
|
|
460
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "toFile",
|
|
"fileFormat": "ods",
|
|
"options": {}
|
|
},
|
|
"id": "58e5a423-0477-44df-a505-6b8a40dbf275",
|
|
"name": "Write To File ODS",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1580,
|
|
640
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "toFile",
|
|
"fileFormat": "rtf",
|
|
"options": {}
|
|
},
|
|
"id": "3ae6e9c5-bc0a-44e4-959e-cfc572f4179f",
|
|
"name": "Write To File RTF",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1580,
|
|
820
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "toFile",
|
|
"options": {}
|
|
},
|
|
"id": "7e6db847-d24c-4094-907d-92ffec626f68",
|
|
"name": "Write To File XLS",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1580,
|
|
1020
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {
|
|
"range": "A2:B3"
|
|
}
|
|
},
|
|
"id": "48934f0d-ac10-4862-ae0c-2ea591b111e3",
|
|
"name": "Read From File Range",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1060,
|
|
520
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {
|
|
"headerRow": false
|
|
}
|
|
},
|
|
"id": "dea6f3f6-f2fb-472e-97b2-8a0c0a36bc4d",
|
|
"name": "Read From File no Header Row",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1060,
|
|
320
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {
|
|
"rawData": true
|
|
}
|
|
},
|
|
"id": "38ed33fc-6906-4b09-8376-937ef3ca99be",
|
|
"name": "Read From File Raw Data",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1060,
|
|
740
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {
|
|
"readAsString": true
|
|
}
|
|
},
|
|
"id": "ffe09dc8-9b7a-4baf-bd03-bd65bbce2590",
|
|
"name": "Read From File Read as String",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1060,
|
|
940
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"fileFormat": "csv",
|
|
"options": {
|
|
"maxRowCount": 1
|
|
}
|
|
},
|
|
"id": "de905389-a11b-4dd8-8416-14d650804445",
|
|
"name": "Read CSV with Row Limit",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 2,
|
|
"position": [
|
|
-60,
|
|
1340
|
|
]
|
|
}
|
|
],
|
|
"connections": {
|
|
"When clicking \"Execute Workflow\"": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Read Binary File",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Read From File": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Write To File CSV",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Write To File HTML",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Write To File ODS",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Write To File RTF",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Write To File XLS",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Read Binary File": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Read From File",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Read From File Range",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Read From File no Header Row",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Read From File Raw Data",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Read From File Read as String",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Read CSV with Row Limit",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
}
|