Skip to main content
Dear community

I am in the need to bundle attachments which are saved to a custom object throughout the week and on weekends make them available for download as an archive file. I intended to create a zip containing the documents but found out Salesforce does not allow creation of zips. So instead I have to look for something that will somehow group those files e.g. in a documents folder (even if I then have duplicate files in SF) and make them available for bunch download. The zipping can still be done after downloading in the end by the user but I do not want the user to have to open every file and download it separately. Any ideas?

Best

Roger
5 件の回答
  1. 2016年2月25日 8:35
    Hi Ashish

    Yes I slowly begin to think in that approach as well. I could still zip them that way before downloading. I might use an approach where during the weekly processing I generate a list of IDs, upload them somewhere (Static Resource, Custom Object, Custom Setting) and send out a link via email to the people who need to have access to those files. Then upon click I could use a combination of VF and Apex to optionally zip and finally download the files. I think a custom object might be the best approach.

    The weekly process creates a file containing information gathered from the attachment's parent records so I think a custom object approach would be a good idea. I could then immediately save that file as well as the link to the attachment download in a record. Pity we can't create master-detail relationships with attachments. Would be way better to also have the ability to show the related attachments on that custom object record.

    Thanks for your input! ;)
0/9000