Not possible to create subflows

Hi,
sorry for asking a silly question.

Describe the problem/error/question

I followed this guide to build a sub-workflow: Sub-workflow

What is the error message (if any)?

There is no option in the workflow settings

Please share your workflow

{
“nodes”: [
{
“parameters”: {},
“type”: “n8n-nodes-base.manualTrigger”,
“typeVersion”: 1,
“position”: [
-260,
-100
],
“id”: “d303de9f-36d8-4098-a53c-e7772a4eb2a0”,
“name”: “When clicking ‘Test workflow’”
},
{
“parameters”: {
“inputSource”: “passthrough”
},
“type”: “n8n-nodes-base.executeWorkflowTrigger”,
“typeVersion”: 1.1,
“position”: [
-260,
100
],
“id”: “f6b29707-85ba-4164-b001-3b9f6257feaf”,
“name”: “When Executed by Another Workflow”
},
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “9356bfb9-6997-44e1-ab6f-04fdab8125a9”,
“name”: “field”,
“value”: “Subworkflow”,
“type”: “string”
},
{
“id”: “6980eb1a-7e58-45d1-869d-fcffdc1667f6”,
“name”: “number”,
“value”: 777,
“type”: “number”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
-40,
-100
],
“id”: “4e519f62-c500-44d5-b2df-d366bc36ca45”,
“name”: “Set Subworkflow Values”
}
],
“connections”: {
“When clicking ‘Test workflow’”: {
“main”: [
[
{
“node”: “Set Subworkflow Values”,
“type”: “main”,
“index”: 0
}
]
]
},
“When Executed by Another Workflow”: {
“main”: [
[
{
“node”: “Set Subworkflow Values”,
“type”: “main”,
“index”: 0
}
]
]
},
“Set Subworkflow Values”: {
“main”: [

]
}
},
“pinData”: {},
“meta”: {
“instanceId”: “3bc8ab9c59db2f22c3832c970f1e62277632f4f782dd45f31cd31a57b2e9877f”
}
}


## Information on your n8n setup
- **n8n version:1.83.2**
- **Database (default: SQLite):PostgreSQL**
- **n8n EXECUTIONS_PROCESS setting (default: own, main):main**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):Docker**
- **Operating system:Debian 12.7; proxmox**

Every workflow can be used a sub-workflow.
See the example.
The execute a workflow as sub-workflow you simply add the When Executed by Another Workflow trigger, define parameters, …

Hi Franz,
that helps me a lot and it’s working fine.
Maybe the documentation is a bit misleading

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.