I am using the Email Trigger node in my workflow. The flow is executing for new emails, and I am also getting the option to download attachments manually. However, I cannot download attachments through nodes like “Write Binary File” or “Move Binary Data” because there is no binary field containing the attachment data. Additionally, when I use the “Execute Command” node to echo the data, there is no available field from which I can extract the attachment data.
The attachment binary appears to be there, but you have an expression referencing the actual binary data content instead of the name of the binary data item, which is literally ‘attachment_0’.
If you know there will only ever be one attachment, you could grab its name, whatever it is, with an expression like {{ $binary.keys()[0] }}
If there could be multiple attachments, you can put a Split Out node in front of whatever you need to process the attachment binary data, and use $binary (literal text value, not an expression) as the Fields to Split Out.
There is a template showing an example of most of this here.