Sub-workflow's output not being recognized by parent (calling) workflow

Describe the problem/error/question

Workflow sub-execution is returning JSON, but the calling workflow is not receiving it. I have the calling workflow set to wait for the sub-execution, but it still just outputs the previous node’s output instead of the sub-execution’s output.

What is the error message (if any)?

No error messages

Please share your workflow

This is the last node in the sub-execution workflow:

It’s output is:

[
  {
    "supplier_order_number": "12345"
  }
]

This is the node in the calling (parent) workflow that calls the sub-workflow:

However, it’s output is:

[
  {
    "workflow_name": "***",
    "order_info": {
      "order_number": "5678",
      "expected_shipping_cost": 5.75,
      "items": [
        {
          "sku": "abc",
          "quantity": 1
        }
      ],
      "shipping_address": {
        "first_name": "John",
        "last_name": "Doe",
        "email": "[email protected]",
        "phone": "+14175551212",
        "address_1": "123 St",
        "address_2": "",
        "city": "City",
        "state": "CA",
        "zip_code": "90210",
        "country": "US"
      }
    }
  }
]

which is the input to this node.

Information on your n8n setup

  • n8n version: 1.90.2
  • Database (default: SQLite): n/a
  • n8n EXECUTIONS_PROCESS setting (default: own, main): n/a
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • Operating system: n/a

The Execute Workflow node is designed to trigger another workflow and optionally wait until it finishes, but it does not pass back the output items so i think you can make that workflow reply through an HTTP interface as Webhook.

This is my suggestion:

Or use it like a tool for Agent

Output be like this:

😽

I hope you can give me :white_check_mark: Solution

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