Skip to main content

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!

 

Hello, Did anyone face this issue in.xlsx file is corrupted after received in mail and try to open.  I wanted to send (.xlsx) and csv, two file to smtp as an attachment.  Able to open csv file only problem in .xlsx(content type: binary/octet-stream)

2 answers
  1. Aug 25, 2020, 9:44 AM

    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"/>

    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.

0/9000