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
anivesh muppaanivesh muppa 

convert to Zip fileof all the Attachments in a record using only Apex, that should support more than 500kb

Hello,

How to Zip the Attachments that are in a record using only Apex, that should support more than 500kb.

I have tried with github code, but it is not supporting more than 500kb and also facing batch failure like  time out error

Can anyone direct me to solved this issue....

Thank you Inadvance,

Deepali KulshresthaDeepali Kulshrestha
Hi Anivesh,

Here is a similar thread where two apps are recommended draw loop and File Exporter.
Have a look
However, if the users are smart enough to use dataloder.io then that would be a great tool to access and export attachments :
http://simplysfdc.blogspot.in/2014/02/salesforce-how-to-export-attachments.html

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha