Kaffeeundcode
n8n Flow-Bibliothek
n8n Workflow 01.06.2026

Flow Arbeitsbereich

Remote Action Webhook

Flow prüfen, Nodes verstehen, JSON importieren und Credentials sauber anpassen.

Workflow Diagramm

auto-generiert
graph LR
    N0(["⚡ Webhook Trigger"])
    N1{"🔀 Check Action Type"}
    N2["🔧 Execute Reboot"]
    N3["🔧 Execute Sync"]
    N4(["⚡ Response Success"])
    N0 --> N1
    N1 --> N2
    N1 --> N3
    N2 --> N4
    N3 --> N4

    classDef trigger fill:#f59e0b,stroke:#b45309,color:#000
    classDef action fill:#292524,stroke:#44403c,color:#e7e5e4
    classDef logic fill:#1e1b4b,stroke:#4338ca,color:#c7d2fe
    class N0 trigger
    class N1 logic
    class N2 action
    class N3 action
    class N4 trigger

09_Remote_Action_Webhook.json

{
    "name": "09_Remote_Action_Webhook",
    "nodes": [
        {
            "parameters": {
                "httpMethod": "POST",
                "path": "intune-action",
                "options": {}
            },
            "name": "Webhook Trigger",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 1,
            "position": [
                250,
                300
            ]
        },
        {
            "parameters": {
                "conditions": {
                    "string": [
                        {
                            "value1": "={{ $json.body.action }}",
                            "operation": "equal",
                            "value2": "rebootNow"
                        }
                    ]
                }
            },
            "name": "Check Action Type",
            "type": "n8n-nodes-base.if",
            "typeVersion": 1,
            "position": [
                450,
                300
            ]
        },
        {
            "parameters": {
                "authentication": "predefinedCredentialType",
                "nodeCredentialType": "microsoftGraphOAuth2Api",
                "requestMethod": "POST",
                "url": "=https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/{{ $json.body.deviceId }}/rebootNow",
                "options": {}
            },
            "name": "Execute Reboot",
            "type": "n8n-nodes-base.httpRequest",
            "typeVersion": 3,
            "position": [
                650,
                200
            ],
            "credentials": {
                "microsoftGraphOAuth2Api": {
                    "id": "YOUR_CREDENTIAL_ID",
                    "name": "Microsoft Graph Account"
                }
            }
        },
        {
            "parameters": {
                "authentication": "predefinedCredentialType",
                "nodeCredentialType": "microsoftGraphOAuth2Api",
                "requestMethod": "POST",
                "url": "=https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/{{ $json.body.deviceId }}/syncDevice",
                "options": {}
            },
            "name": "Execute Sync",
            "type": "n8n-nodes-base.httpRequest",
            "typeVersion": 3,
            "position": [
                650,
                400
            ],
            "credentials": {
                "microsoftGraphOAuth2Api": {
                    "id": "YOUR_CREDENTIAL_ID",
                    "name": "Microsoft Graph Account"
                }
            }
        },
        {
            "parameters": {
                "options": {}
            },
            "name": "Response Success",
            "type": "n8n-nodes-base.respondToWebhook",
            "typeVersion": 1,
            "position": [
                850,
                300
            ]
        }
    ],
    "connections": {
        "Webhook Trigger": {
            "main": [
                [
                    {
                        "node": "Check Action Type",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Check Action Type": {
            "main": [
                [
                    {
                        "node": "Execute Reboot",
                        "type": "main",
                        "index": 0
                    }
                ],
                [
                    {
                        "node": "Execute Sync",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Execute Reboot": {
            "main": [
                [
                    {
                        "node": "Response Success",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Execute Sync": {
            "main": [
                [
                    {
                        "node": "Response Success",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}