n8n
Workflow
Get Execute Command Data And Transfer To Json
This n8n workflow retrieves tasks and integrates with various services. Get Execute Command Data And Transfer To Json - ready to import and run in your n8n instance.
n8n
workflow.json
About This Script
This n8n workflow retrieves tasks and integrates with various services. Get Execute Command Data And Transfer To Json - ready to import and run in your n8n instance.
Features:
- Conditional logic and branching
- Custom JavaScript function processing
- Retrieves data from external sources
Source Code
{
"nodes": [
{
"name": "Execute Command",
"type": "n8n-nodes-base.executeCommand",
"position": [
600,
350
],
"parameters": {
"command": "echo \"{ \\\"value1\\\": true, \\\"value2\\\": 1 }\""
},
"typeVersion": 1,
"id": "745f6c41-0fa0-41ae-bcb1-7e3c82591a35"
},
{
"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,
"id": "7d67e3dc-ce05-468b-bcb7-f77118bccd96"
},
{
"name": "To Flow Data",
"type": "n8n-nodes-base.functionItem",
"position": [
800,
250
],
"parameters": {
"functionCode": "item = JSON.parse(item.stdout);\nreturn item;"
},
"typeVersion": 1,
"id": "feee6e15-9706-4a0d-ae64-b0b3fa7619db"
}
],
"connections": {
"Execute Command": {
"main": [
[
{
"node": "To Flow Data",
"type": "main",
"index": 0
},
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
}
},
"n8n_version": "1.5.0"
}
Requirements
n8n instance, API credentials for connected services
Tags
#n8n
#automation
#workflow