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.)
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
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.
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)