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
marys pindamarys pinda 

Apex Class generate ZIP file


It is possible an apex class to create a CSV file and after to zip the CSV file into a zip file?

I read many forums but not found answers.

Thank you,
Hi, did you get a chance to go through the following peiece of code:

This has sample code which you can use and test in your test org
marys pindamarys pinda
Thank you!
Have a nice week...
Pedro I Dal ColPedro I Dal Col
You can use the Zippex library to zip or unzip files natively in Apex. It's open source.