From 4905e22f4dba676ab7682c2fbc4a27a007bf3654 Mon Sep 17 00:00:00 2001 From: m3tam3re <41329178+m3tam3re@users.noreply.github.com> Date: Mon, 27 Mar 2023 18:00:14 +0200 Subject: [PATCH] [N8N Backup] Rechnungen -> DATEV.json (new) --- workflows/Rechnungen -> DATEV.json | 187 +++++++++++++++++++++++++++++ 1 file changed, 187 insertions(+) create mode 100644 workflows/Rechnungen -> DATEV.json diff --git a/workflows/Rechnungen -> DATEV.json b/workflows/Rechnungen -> DATEV.json new file mode 100644 index 0000000..6f4d2d0 --- /dev/null +++ b/workflows/Rechnungen -> DATEV.json @@ -0,0 +1,187 @@ +{ + "active": true, + "connections": { + "Gmail Trigger": { + "main": [ + [ + { + "node": "Gmail", + "type": "main", + "index": 0 + } + ] + ] + }, + "Gmail": { + "main": [ + [ + { + "node": "IF", + "type": "main", + "index": 0 + } + ] + ] + }, + "IF": { + "main": [ + [ + { + "node": "An Datev weiterleiten", + "type": "main", + "index": 0 + } + ] + ] + }, + "An Datev weiterleiten": { + "main": [ + [ + { + "node": "Datev Label anhängen", + "type": "main", + "index": 0 + } + ] + ] + } + }, + "createdAt": "2023-03-27T11:07:01.918Z", + "id": 7, + "name": "Rechnungen -> DATEV", + "nodes": [ + { + "parameters": { + "pollTimes": { + "item": [ + { + "mode": "everyMinute" + } + ] + }, + "filters": {} + }, + "id": "b4421482-9533-4a70-a010-bc37198173de", + "name": "Gmail Trigger", + "type": "n8n-nodes-base.gmailTrigger", + "typeVersion": 1, + "position": [ + 280, + -200 + ], + "credentials": { + "gmailOAuth2": { + "id": "16", + "name": "Gmail - buchhaltung@lanakk.com" + } + } + }, + { + "parameters": { + "operation": "get", + "messageId": "={{$json[\"id\"]}}", + "simple": false, + "options": { + "dataPropertyAttachmentsPrefixName": "attachment_", + "downloadAttachments": true + } + }, + "id": "92850b56-b38e-49a1-8fd7-253b022a3fa2", + "name": "Gmail", + "type": "n8n-nodes-base.gmail", + "typeVersion": 2, + "position": [ + 500, + -200 + ], + "credentials": { + "gmailOAuth2": { + "id": "16", + "name": "Gmail - buchhaltung@lanakk.com" + } + } + }, + { + "parameters": { + "conditions": { + "string": [ + { + "value1": "={{$binary.attachment_0.fileExtension}}", + "operation": "isNotEmpty" + } + ] + } + }, + "id": "d7bbeaa9-8961-4f71-a21c-11009aad9712", + "name": "IF", + "type": "n8n-nodes-base.if", + "typeVersion": 1, + "position": [ + 720, + -200 + ] + }, + { + "parameters": { + "sendTo": "79e9685d-6952-420b-a9b0-db1950def732@uploadmail.datev.de", + "subject": "=Neuer Beleg - {{$now}}", + "message": "=", + "options": { + "attachmentsUi": { + "attachmentsBinary": [ + { + "property": "attachment_0" + } + ] + } + } + }, + "id": "92b1ec51-291e-43bb-9f62-96ab3acb1f6c", + "name": "An Datev weiterleiten", + "type": "n8n-nodes-base.gmail", + "typeVersion": 2, + "position": [ + 960, + -320 + ], + "credentials": { + "gmailOAuth2": { + "id": "16", + "name": "Gmail - buchhaltung@lanakk.com" + } + } + }, + { + "parameters": { + "operation": "addLabels", + "messageId": "={{$node[\"An Datev weiterleiten\"].json[\"id\"]}}", + "labelIds": [ + "Label_5013070903895930344" + ] + }, + "id": "94d4e183-8b86-48ea-9a7d-c620ce431b5e", + "name": "Datev Label anhängen", + "type": "n8n-nodes-base.gmail", + "typeVersion": 2, + "position": [ + 1160, + -320 + ], + "credentials": { + "gmailOAuth2": { + "id": "16", + "name": "Gmail - buchhaltung@lanakk.com" + } + } + } + ], + "pinData": {}, + "settings": {}, + "staticData": { + "node:Gmail Trigger": { + "lastTimeChecked": "1679932761" + } + }, + "tags": [], + "updatedAt": "2023-03-27T15:59:21.000Z" +} \ No newline at end of file