Email attachment through subworkflow

Hello

Describe the problem/error/question

I want to sort files automatically. According to a master workflow, files are moved from a source to the good destination. That is working.

As there are many destination, I want to notify by calling a sub-workflow which will send a notification to Teams and, if needed, will send the file from the parent workflow by email to an external address.

I am not comfortable with file data because sometimes we have to not use javascript; only “data”. Here that is a parameter so I don’t know if there is a link and if I have well defined parameters.

What is the error message (if any)?

No binary data exists on item!

Please share your workflow

What is sent from the parent workflow. file_binary is from several nodes back.

Sub-workflow

Example for an execution

Node to send email

Share the output returned by the last node

Error “No binary data exists on item!”

Information on your n8n setup

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

Thank you for your help !

Maybe to simplify things, convert the binary file to base64, pass that to the sub workflow, then convert the base64 back to binary when needed. This way you’re just passing text around between the workflows

Thank you for the tip.

The base64 was already sent. The missing step was to convert it to binary

1 Like

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