Execute sub-workflow and data

I have a quick question that I could not find in the forum.
Adding a node that triggers another workflow seems to pass data to the sub-workflow but in my case only the preceding node and not the previous ones… is this a correct interpretation or am I missing something?

N8n version: 1.47.1
Self.hosted on ubuntu running with Docker container.

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

only what is in the active json gets passed to the other workflow. In the example below:

only the data from the “Second fields” node would be passed to the other workflow

you can check what is in the JSON by using an expression in an edit field node right before the Execute workflow node, as you can see below, it only shows the 2nd edit field node
Screenshot 2024-07-14 at 11.26.01 AM

To overcome that you can just use the merge node with combine

and you can see from the image below it now has the json from both nodes

Screenshot 2024-07-14 at 11.30.50 AM

Hope that answers your question. Let me know if that makes sense

That is a fantastic solution. Thanks Liam

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