Workflow: Executecommand Functionitem

Workflow Details

Download Workflow
{
    "nodes": [
        {
            "name": "Execute Command",
            "type": "n8n-nodes-base.executeCommand",
            "position": [
                600,
                350
            ],
            "parameters": {
                "command": "echo \"{ \\\"value1\\\": true, \\\"value2\\\": 1 }\""
            },
            "typeVersion": 1
        },
        {
            "name": "IF",
            "type": "n8n-nodes-base.if",
            "position": [
                800,
                450
            ],
            "parameters": {
                "conditions": {
                    "boolean": [
                        {
                            "value1": "={{JSON.parse($node[\"Execute Command\"].data[\"stdout\"]).value1}}",
                            "value2": true
                        }
                    ]
                }
            },
            "typeVersion": 1
        },
        {
            "name": "To Flow Data",
            "type": "n8n-nodes-base.functionItem",
            "position": [
                800,
                250
            ],
            "parameters": {
                "functionCode": "item = JSON.parse(item.stdout);\nreturn item;"
            },
            "typeVersion": 1
        }
    ],
    "connections": {
        "Execute Command": {
            "main": [
                [
                    {
                        "node": "To Flow Data",
                        "type": "main",
                        "index": 0
                    },
                    {
                        "node": "IF",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}
Back to Workflows

Related Workflows

Manual Readbinaryfile Create Triggered
View
Wait Redis Send Triggered
View
Create_Unique_Jira_tickets_from_Splunk_alerts
View
Code Form Automation Webhook
View
location_by_ip
View
New WooCommerce Product to Twitter and Telegram
View
🐋DeepSeek V3 Chat & R1 Reasoning Quick Start
View
Code Strava Automation Triggered
View
Code Slack Create Webhook
View
Get new time entries from Toggl
View