function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Naznin VhoraNaznin Vhora 

How to Convert Excel File into CSV using Apex ?

Hi All,
I have a requirement in my code where I need to convert uploaded Excel file into CSV.
Can anyone tell me how to do this ?

Thanks and Regards,
Naznin
Anuj Joshi 42Anuj Joshi 42
Hi Naznin,

Please refere this link http://www.sfdcpoint.com/salesforce/import-csv-file-using-apex-visualforce/

Thanks,
Anuj
Naznin VhoraNaznin Vhora
Hi Anuj,
I know how to parse CSV File.
My Query is that , How to convert Excel File Into CSV through Apex code.
Anuj Joshi 42Anuj Joshi 42
Hi Naznin,

Did you try using ontentType="text/csv#test.csv

Thanks,
Anuj
Naznin VhoraNaznin Vhora
Hi Anuj,
No, Where to use such?? please, give some example.
David Nash 8David Nash 8
Hi,

Try the X version of Excel Converter to convert to CSV using APEX. You can check it out here: https://www.coolutils.com/TotalExcelConverter
Hari Bhanu Prasad NandarapuHari Bhanu Prasad Nandarapu
Did you got the Solution Brother..?
Jigar Patel 31Jigar Patel 31
Try this
https://cloudmersive.medium.com/how-to-convert-excel-xlsx-to-csv-files-in-apex-63b569cc6ddc
Santoshi K VSantoshi K V
Hi Naznin

I hope this link may help you...

https://techietips99.wordpress.com/2018/09/22/convert-excel-to-csv-salesforce-heroku-integration/