You need to sign in to do that
Don't have an account?

Zip file of all attachments
Hi All,
I need to get the zip file of all attachments from case object where case status is closed.I tried using export wizard but no hope. Any help of how to extract zip file of all attachments.
Thanks
I think I usually use the weekly export. It contains all attachments.
All Answers
I think I usually use the weekly export. It contains all attachments.
Thanks Jeremyy.Do you know any other way to extract attachments of just closed cases.
It's possible to do via the api, so there may be a 3rd party tool that does it. The data loader can do it, but instead of creating a file for each attachment, you get a typical CSV, but the Body column contains the attachment's data, base64 encoded. You'd have to do the work to pull out that data, decode it, and do something with it.
Just came across this python script I wrote a while back. I think I used it successfully, but don't really remember, so no guarantees.
It will take an attachment csv export from the data loader and do exactly what I explained before – for each record, decode the data and write it to a new file.
If you create a text file called extract_attachments.py, and you have a csv file called attachments.csv, execute the script like this:
extract_attachments.py
Thanks jeremyy. Can you please tell me how to run python script.
To run the script, the command is:
You must have python 2.x installed.