Cloudmersive

How to convert Excel XLSX to CSV Files in Salesforce Apex

Need an easy method for converting XLSX into CSV? Look no further! We’ve got you covered.

To start things off, download and extract our API client into the folder of your Apex project.

Now all that’s left is to use convertDocumentXlsxToCsv on your Excel file:

SwagConvertDocumentApi api = new SwagConvertDocumentApi();

Our API will now do the heavy lifting for us and return our file in CSV form. There is also a similar function called that is compatible with the older XLS format.

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.