Hi I have this workflow:
Webhook → HTTP Request → Email
- Webhook gets data (works)
- HTTP Request -
Sends a request to an api and gets a word document back (works! The file and meta data is shown in the output field and offers me to download it, which works as well)
I want to send this file via email but how should I do that?
- I can’t drag the file into the attachment field
- I can’t access it viat $item.data or $item.body
Where is my file?
I solved it.
It is super easy, but - with all respect - poorly documented
When using the file node:
Field “Property Node” - here you can enter any value you like, in the next nodes you can access the file(s) with this variable e.g. “loadedFile”
When using an http request:
After you added the option Response > Response Format “File” > There is the field “Put Output in Field”, add a variable name here.
Dear n8n Team this explanation should be included in the https request node docs and the read binary file node - that would make everything easier!
So in my example I called it body and in the email node in the attachment field I just entered body and it works.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.