Communication & Messaging
0055 Signl4 Interval Create Scheduled
0055 Signl4 Interval Create Scheduled
Manual
High
13
Nodes
Manual
Trigger
High
Complexity
7/22/2025
Added
Workflow Overview
Total Nodes
13
Node Types
0
Workflow JSON
11.69 KB
{
"name": "0055 Signl4 Interval Create Scheduled",
"nodes": [
{
"name": "Function",
"type": "n8n-nodes-base.function",
"position": [
230,
710
],
"parameters": {
"functionCode": "// Code here will run only once, no matter how many input items there are.\n// More info and help: https://docs.n8n.io/nodes/n8n-nodes-base.function\n\n// Loop over inputs and add a new field called 'myNewField' to the JSON of each one\nfor (item of items) {\n \nvar type = \"Status\";\n// Acknowledged\nif ((item.json.body.alert.statusCode == 2) && (item.json.body.eventType == 201)) {\n type = \"Acknowledged\";\n}\n// Closed\nif ((item.json.body.alert.statusCode == 4) & (item.json.body.eventType == 201)) {\n type = \"Closed\";\n}\n// New Alert\nif ((item.json.body.alert.statusCode == 1) & (item.json.body.eventType == 200)) {\n type = \"New Alert\";\n}\n\n// No one on duty\nif ((item.json.body.alert.statusCode == 16) & (item.json.body.eventT...Showing first 1000 characters. Click "Expand" to view the full JSON.