adding the workflow collection to git
This commit is contained in:
83
workflows/2349_workflow_2349.json
Normal file
83
workflows/2349_workflow_2349.json
Normal file
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"meta": {
|
||||
"instanceId": "84ba6d895254e080ac2b4916d987aa66b000f88d4d919a6b9c76848f9b8a7616",
|
||||
"templateId": "2349"
|
||||
},
|
||||
"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": {}
|
||||
},
|
||||
"credentials": {
|
||||
"n8nApi": {
|
||||
"id": "eGEre3g3El08ZItb",
|
||||
"name": "n8n account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"pinData": {},
|
||||
"connections": {
|
||||
"Error Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Get execution data",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Get execution data": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Extract webhook data",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user