"Download the attachment if the attachment is single and file format in pdf otherwise we can download all file's as ZIP file if the file is in any format"
Attachments are already instances to this Data-WorkAttach-File and Link-Attachments class the attachments are not related to work object.
(If there is a single file for button , then system should download that single file.
If multiple then zip having multi pdfs)
how can i achieve this in pega can you please some one help me out in this.
***Edited by Moderator: Pooja Gadige to add capability tag***
@DolluM39 You can create an activity an use it on open url in window action. Inside the activity, implement your logic to send single/zip file. Finally, call tools.sendFile to download the file. You can refer to the following link for creating a zip file.