You need to sign in to do that
Don't have an account?
Shatrughna Salunke
file type is getting changed after file downloads
Hi,
I'm send excel attachment through apex class but after download the file file type is getting changed to file, but I can see in googl sheet file is open in excel format but not after downloading
emailAttachment.setContentType('application/xlsx');
emailAttachment.setBody(Blob.valueOf(csvFile));
Note : I tried with diffrent format csv, pdf but all are not working afte downloading the file.
I'm send excel attachment through apex class but after download the file file type is getting changed to file, but I can see in googl sheet file is open in excel format but not after downloading
emailAttachment.setContentType('application/xlsx');
emailAttachment.setBody(Blob.valueOf(csvFile));
Note : I tried with diffrent format csv, pdf but all are not working afte downloading the file.
Which browser are you using? Does it happen across all the browsers?Thanks
I'm sending attachment to email using apex class and trying to open from the microsoft 365 outlook.
Thanks,
Shatrughna
Apologies for the delay. Can you confirm if you have a relevant file opener like MS office? If you change the file property to .xlsx after download, does it work? Is this behaviour specific to your machine or happens for all?Thanks