Created
October 10, 2019 00:49
-
-
Save flarco/e4b57c478116336e4f3515a4a1a36e2c to your computer and use it in GitHub Desktop.
n8n workflows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "", | |
"nodes": [ | |
{ | |
"parameters": {}, | |
"name": "Start", | |
"type": "n8n-nodes-base.start", | |
"typeVersion": 1, | |
"position": [ | |
250, | |
300 | |
] | |
}, | |
{ | |
"parameters": { | |
"url": "https://jsonplaceholder.typicode.com/posts?userId=1", | |
"options": {}, | |
"headerParametersUi": { | |
"parameter": [] | |
} | |
}, | |
"name": "Get Data", | |
"type": "n8n-nodes-base.httpRequest", | |
"position": [ | |
450, | |
450 | |
], | |
"typeVersion": 1 | |
}, | |
{ | |
"parameters": { | |
"functionCode": "const newItems = [];\nfor (const item of items[0].json) {\n newItems.push({json: item});\n}\nreturn newItems;" | |
}, | |
"name": "Split up", | |
"type": "n8n-nodes-base.function", | |
"position": [ | |
650, | |
450 | |
], | |
"typeVersion": 1 | |
}, | |
{ | |
"parameters": { | |
"operation": "toFile", | |
"fileFormat": "csv" | |
}, | |
"name": "Convert to XLS", | |
"type": "n8n-nodes-base.spreadsheetFile", | |
"position": [ | |
830, | |
440 | |
], | |
"typeVersion": 1 | |
} | |
], | |
"connections": { | |
"Get Data": { | |
"main": [ | |
[ | |
{ | |
"node": "Split up", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Split up": { | |
"main": [ | |
[ | |
{ | |
"node": "Convert to XLS", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Convert to XLS": { | |
"main": [ | |
[] | |
] | |
} | |
}, | |
"active": false, | |
"settings": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment