Oh, excellent! So, by default, the generatePDF query will still download this through the browser but after it is done the output data will be available for you to use in a follow up event/query.
Here is the example PDF Exporter content after running the default query:
The e-mail you are sending needs this file.data
output to use as the attachment using the following format (from the previously linked post):
[{
"name": generatePDF.data.file.name,
"type": "application/pdf",
"sizeBytes": atob(generatePDF.data.file.data).length,
"base64Data": generatePDF.data.file.data
}]
For whatever reason, the in-line Attachments area of the E-mail query doesn't like this format, but I ran it through a JS Query to return the data for me and that worked:
Using this output in the query:
ETA: final delivered e-mail: