{
  "name": "Archive Outlook email attachments to DATEV DMS and notify Slack",
  "nodes": [
    {
      "id": "b85ccd6c-e2ee-4616-a1f2-328b619b7fa2",
      "name": "Upload a document file",
      "type": "@klardaten/n8n-nodes-datevconnect.documentManagement",
      "position": [
        864,
        288
      ]
    },
    {
      "id": "3debd2f0-ecdb-4406-86b6-f9cc701facc5",
      "name": "Create a document",
      "type": "@klardaten/n8n-nodes-datevconnect.documentManagement",
      "position": [
        1520,
        -16
      ]
    },
    {
      "id": "8538af21-5d11-4586-8273-c8ab7abf97f0",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        1840,
        -16
      ]
    },
    {
      "id": "3a5d3d5a-4bfe-4a33-9d33-67d1f992fa29",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1216,
        -32
      ]
    },
    {
      "id": "b11eea6a-7e91-4b8a-9c54-342375c7d95d",
      "name": "If we have attachments",
      "type": "n8n-nodes-base.if",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "99549ee5-4c78-4261-a841-443618878c79",
      "name": "Update a message",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        2112,
        -16
      ]
    },
    {
      "id": "fe603922-6a2f-453d-9530-6a2515859a67",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -304,
        -112
      ],
      "parameters": {
        "width": 480,
        "height": 320,
        "content": "## Trigger and filter emails with attachments"
      }
    },
    {
      "id": "f817e765-fb03-4f35-9d33-3ab5a3177298",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -256
      ],
      "parameters": {
        "width": 960,
        "height": 720,
        "content": "## DATEV DMS upload"
      }
    },
    {
      "id": "ff4e8d99-9438-4995-9736-15eb71c2719f",
      "name": "Get DATEV user",
      "type": "@klardaten/n8n-nodes-datevconnect.identityAndAccessManagement",
      "position": [
        864,
        -176
      ]
    },
    {
      "id": "25b4c4cf-d9de-4dd5-93f8-b6a5c0b95644",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        -96
      ],
      "parameters": {
        "width": 496,
        "height": 256,
        "content": "## Optional notifications & mailbox update"
      }
    },
    {
      "id": "675525b3-17f6-4267-b9d7-c57a3e01328f",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -304,
        -704
      ],
      "parameters": {
        "width": 992,
        "height": 544,
        "content": "## Automatically archive Outlook email attachments to DATEV DMS\nThis workflow watches your Outlook inbox for new emails with attachments and archives those attachments in DATEV DMS. It skips emails wi"
      }
    },
    {
      "id": "2024098c-b8b1-4952-a4f2-c1ac7df66755",
      "name": "Client lookup",
      "type": "@klardaten/n8n-nodes-datevconnect.masterData",
      "position": [
        272,
        -16
      ]
    },
    {
      "id": "3656dd7d-524a-45d9-8181-38d0b09ef1ca",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        -112
      ],
      "parameters": {
        "width": 198,
        "height": 320,
        "content": "## Client lookup\nDemo setup selects the first active client"
      }
    },
    {
      "id": "463fded9-2aa4-4f79-bbf6-4c6fbb48f521",
      "name": "Split attachments",
      "type": "n8n-nodes-base.code",
      "position": [
        528,
        -16
      ]
    },
    {
      "id": "dcc12ffc-978e-4c92-88e3-630cade3622f",
      "name": "New Outlook emal trigger",
      "type": "n8n-nodes-base.microsoftOutlookTrigger",
      "position": [
        -240,
        0
      ]
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Create a document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Client lookup": {
      "main": [
        [
          {
            "node": "Split attachments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get DATEV user": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        [
          {
            "node": "Update a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a document": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split attachments": {
      "main": [
        [
          {
            "node": "Upload a document file",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          },
          {
            "node": "Get DATEV user",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If we have attachments": {
      "main": [
        [
          {
            "node": "Client lookup",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload a document file": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "New Outlook emal trigger": {
      "main": [
        [
          {
            "node": "If we have attachments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}