My flow as below
My flow as below
TransformMessage(dw application/json) ->Attach Excel File(set attachment : name: <>.xlsx. value: #flowvars.excelFileContent, content type - binary/octet-stream) ->
Attache CSV File(set attachment : name: <>.csv. value: #flowvars.fileContent, content type - text/csv)->SMTP
Then json in TransformMessage goes to Mail body. Where excelFileContent - payload is set in the flow variable.
Thanks in advance!
Hi Shekh,
Thank you for your reply.
Tried the link above. But no luck. Still getting the same issue for the type .xlsx. Able to receive the attachment with 412 bytes - file size. When I save this in my local (file size is zero) and tried to open, getting the below error message. Anything need to check from smtp side? No clue on what I am missing here.
<set-attachment attachmentName="#flowVars.fileNamePattern.xlsx" value="#payload" contentType="text/html" doc:name="Attach Excel File"/>