n8n Workflow

Create Add An Attachment And Send A Draft Using Microsoft Outlook

This n8n workflow creates tasks and integrates with various services. Create Add An Attachment And Send A Draft Using Microsoft Outlook - ready to import and run in your n8n instance.

n8n workflow.json

About This Script

This n8n workflow creates tasks and integrates with various services. Create Add An Attachment And Send A Draft Using Microsoft Outlook - ready to import and run in your n8n instance.
Features:
  • Makes HTTP requests to external APIs
  • Sends notifications or updates
Source Code
{
    "nodes": [
        {
            "name": "On clicking 'execute'",
            "type": "n8n-nodes-base.manualTrigger",
            "position": [
                250,
                300
            ],
            "parameters": [],
            "typeVersion": 1,
            "id": "673a12b2-36cf-4677-828b-9aff7464dcf5"
        },
        {
            "name": "Microsoft Outlook",
            "type": "n8n-nodes-base.microsoftOutlook",
            "position": [
                450,
                300
            ],
            "parameters": {
                "subject": "Hello from n8n!",
                "resource": "draft",
                "bodyContent": "<h1>Hello from n8n!</h1> <p>We are sending this email using the Microsoft Outlook node in <a href=\"https://n8n.io\">n8n</a></p> <p>Best,</p> <p>Sender</p>",
                "additionalFields": {
                    "bodyContentType": "html"
                }
            },
            "credentials": {
                "microsoftOutlookOAuth2Api": "Micrsoft Outlook Credentials"
            },
            "typeVersion": 1,
            "id": "962fec2e-a446-46f7-aa5f-e2a8d6b25c61"
        },
        {
            "name": "HTTP Request",
            "type": "n8n-nodes-base.httpRequest",
            "position": [
                650,
                300
            ],
            "parameters": {
                "url": "https://n8n.io/n8n-logo.png",
                "options": [],
                "responseFormat": "file"
            },
            "typeVersion": 1,
            "id": "c720c26e-38a4-4730-9daf-f27fe7ece619"
        },
        {
            "name": "Microsoft Outlook1",
            "type": "n8n-nodes-base.microsoftOutlook",
            "position": [
                850,
                300
            ],
            "parameters": {
                "resource": "messageAttachment",
                "messageId": "={{$node[\"Microsoft Outlook\"].json[\"id\"]}}",
                "additionalFields": {
                    "fileName": "n8n.png"
                }
            },
            "credentials": {
                "microsoftOutlookOAuth2Api": "Micrsoft Outlook Credentials"
            },
            "typeVersion": 1,
            "id": "d1ce3e2d-0006-4639-90b3-4a6780f3325b"
        },
        {
            "name": "Microsoft Outlook2",
            "type": "n8n-nodes-base.microsoftOutlook",
            "position": [
                1050,
                300
            ],
            "parameters": {
                "resource": "draft",
                "messageId": "={{$node[\"Microsoft Outlook\"].json[\"id\"]}}",
                "operation": "send",
                "additionalFields": {
                    "recipients": "abc@example.com"
                }
            },
            "credentials": {
                "microsoftOutlookOAuth2Api": "Micrsoft Outlook Credentials"
            },
            "typeVersion": 1,
            "id": "fdf7421b-6b46-4389-9470-e2e31322930c"
        }
    ],
    "connections": {
        "HTTP Request": {
            "main": [
                [
                    {
                        "node": "Microsoft Outlook1",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Microsoft Outlook": {
            "main": [
                [
                    {
                        "node": "HTTP Request",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Microsoft Outlook1": {
            "main": [
                [
                    {
                        "node": "Microsoft Outlook2",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "On clicking 'execute'": {
            "main": [
                [
                    {
                        "node": "Microsoft Outlook",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    },
    "n8n_version": "1.5.0"
}
Requirements
n8n instance, API credentials for connected services
Tags
#n8n #automation #workflow
Quick Actions
More in n8n Workflows