{ "meta": { "instanceId": "46264913bc099c31e7222b2cfd112772e1c7867192afd7716e58254079b3333f" }, "nodes": [ { "id": "dac02623-ee83-444b-b039-fd310dee3260", "name": "When clicking ‘Test workflow’", "type": "n8n-nodes-base.manualTrigger", "position": [ 700, 1000 ], "parameters": {}, "typeVersion": 1 }, { "id": "7268d9c0-44ae-4226-9e5f-f3b19e3fbfa1", "name": "Notion", "type": "n8n-nodes-base.notion", "position": [ 1360, 980 ], "parameters": { "options": {}, "resource": "databasePage", "operation": "getAll", "databaseId": { "__rl": true, "mode": "list", "value": "b1e11f75-06df-42b4-8dd9-557ba937978d", "cachedResultUrl": "https://www.notion.so/b1e11f7506df42b48dd9557ba937978d", "cachedResultName": "Tasks" }, "filterType": "manual" }, "credentials": { "notionApi": { "id": "03mmrqQX1rffebZp", "name": "Notion David" } }, "typeVersion": 2.2 }, { "id": "607752ef-ac76-4a07-a3e7-39be7d5770e7", "name": "Sort by closest deadline", "type": "n8n-nodes-base.sort", "position": [ 1760, 880 ], "parameters": { "options": {}, "sortFieldsUi": { "sortField": [ { "fieldName": "property_deadline.start" } ] } }, "typeVersion": 1 }, { "id": "81c6ded2-7766-4351-b597-27794b595283", "name": "Filter for deadline", "type": "n8n-nodes-base.filter", "position": [ 1600, 880 ], "parameters": { "options": {}, "conditions": { "options": { "leftValue": "", "caseSensitive": true, "typeValidation": "strict" }, "combinator": "and", "conditions": [ { "id": "179eecfc-7eea-46b9-a971-78824e5774dc", "operator": { "type": "string", "operation": "exists", "singleValue": true }, "leftValue": "={{ $json.property_deadline.start }}", "rightValue": "" } ] } }, "typeVersion": 2.1 }, { "id": "21ecbd8d-7a2f-4a0a-8d99-3365c88a187b", "name": "Send Email", "type": "n8n-nodes-base.emailSend", "position": [ 4100, 900 ], "parameters": { "html": "={{ $json.html }}", "options": {}, "subject": "Weekly Update about Notion Tasks", "toEmail": "={{ $('Set Workflow vars').item.json.your_email }}", "fromEmail": "n8n@unitize.de" }, "credentials": { "smtp": { "id": "cvpDbugXPc0TsdmZ", "name": "Unitize - SMTP Mailserver" } }, "typeVersion": 2.1 }, { "id": "8379f4e4-cab6-46cd-9ba0-e6bf78076de5", "name": "HTML", "type": "n8n-nodes-base.html", "position": [ 3720, 900 ], "parameters": { "html": "\n\n\n
\n \n\n Deadline: {{ $json.property_deadline.start.toDateTime().format('dd.MM.yyyy') }}\n
\n Prio: {{ $json.property_prio }}\n
\n Status: {{ $json.property_status }}\n
\n Tags: {{ $json.property_tags }}\n