How do you pass specific data from a n8n execute node

How do you pass data from the Execute node back to the calling node
I currently have tried setting, always return data but the single variable getting sent back seems to ba random variable from the lower call.

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:

If you mean Execute Workflow, then its output will be the output of the last node called in that workflow. Check your executions and see what node ran last, as that will be the node returning values.
If you mean Execute Command, then to output you just put echo return_data as your last line and then access it from json.stdout.

JayF thank you for your response, I am trying to pass json data and binary data into a workflow execution, so that I can do some processing on that data and only return specific data both in binary format and in json format. I am struggling to copy the binary data into another execute node to test. Is this a feasible thing?

1 Like

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