{
  "nodes": [
    {
      "id": "d9c81685-d16e-45c0-a1ab-3927ef619568",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        380,
        240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "22089e9b-73ae-4d03-a11b-5f67f9b47fb4",
      "name": "Extract webhook data",
      "type": "n8n-nodes-base.code",
      "position": [
        820,
        240
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "const webhook_node_names = $json.workflowData.nodes.filter(x => x.type == 'n8n-nodes-base.webhook').map(x => x.name)\n\nconst webhook_data_array = webhook_node_names.map(n => $json.data.resultData.runData[n] ? $json.data.resultData.runData[n][0].data.main[0][0].json : null).filter(x => x != null)\n\nlet webhook_data = null;\nif (webhook_data_array.length > 0) {\n  webhook_data = webhook_data_array[0]\n}\n\nreturn {\n  'webhook_node_names': webhook_node_names,\n  'webook_node_payload': webhook_data\n}"
      },
      "typeVersion": 2
    },
    {
      "id": "b7fb5443-3faf-4e59-b464-4d3ca131a84f",
      "name": "Get execution data",
      "type": "n8n-nodes-base.n8n",
      "position": [
        600,
        240
      ],
      "parameters": {
        "options": {
          "activeWorkflows": true
        },
        "resource": "execution",
        "operation": "get",
        "executionId": "={{ $json.execution.id }}",
        "requestOptions": {}
      },
      "typeVersion": 1
    },
    {
      "id": "c960a022-eb54-5c3a-92f5-9af5d1457f9f",
      "name": "Publication · Overview and setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -800,
        0
      ],
      "parameters": {
        "content": "# report execution errors to get execution n8n\n\n## Purpose and structure\nThis folder contains the **report execution errors to get execution n8n** workflow. Its executable nodes use `code`, `errorTrigger`, `n8n`. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.\n\n## Setup\nImport inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.\n\n## Entry points\nError Trigger\n\n## Verification\nSanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.\n\n## Attribution\nhttps://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Error/0545_Error_N8N_Import_Triggered.json\nMIT; preserve source notices.",
        "width": 700,
        "height": 800,
        "color": 1
      }
    }
  ],
  "connections": {
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Get execution data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get execution data": {
      "main": [
        [
          {
            "node": "Extract webhook data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false
}
