Get output from Execute Workflow

I have an “Execute Workflow” node which takes in binary data and outputs a JSON response. When the process returns to the main workflow, I just get the initial binary data. I need to get the JSON response and respond with that to the initial webhook call.

Workflow 1:

Workflow 2, which runs in “Execute Workflow”:

(There should actually be an ‘if’ node to check if the execute command suceeded/failed, sorry. I just simplified the whole setup.)


- **n8n version:** 1.127.3
- **Database:** Default SQLite
- **n8n EXECUTIONS_PROCESS setting (default: own, main):** default
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** npm
- **Operating system:** Windows 10

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:

Hi @rootbeer58
welcome to the n8n community :wave:

If you want the output of the Workflow 2 to flow back into the Workflow 1, you don’t need to add the Respond to Webhook nodes there (“Success”, “Failure”). You need to have two branches like in this example:

once this workflows reaches the end of a branch, it will flow back to the parent.
More details here: Execute Workflow | n8n Docs

Hope this helps! Let me know if you have more questions

Hi Giulio, thanks a lot for your response.

Unfortunately I am still getting the same issue. It’s returning the response from OneDrive, instead of the fields in ‘Edit fields’ which I have set to ‘testKey:testValue’. I’ll attach my un-simplified workflows in case I’m making a mistake earlier in the process.

Workflow 1:

Workflow 2:

It does return the “Edit Fields 1” value, when OneDrive doesn’t run at all.

When If==True, and the bulk of the workflow runs, it seems to only return the OneDrive response, regardless of what data I end the workflow with.

Thanks a lot for your help

Hi @rootbeer58
you should try to set the “Include in Output” parameter in the “Edit Fields” node to “No input fields”.
In this way only the fields set inside the Edit Fields node are sent to the output.
(Instead if “All Input Fields” is set, also all incoming fields are added to the output)

Let me know if that helps!

2 Likes

Works perfectly - seems obvious in retrospect.

Thanks a lot Giulio!

1 Like

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