Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1690005000/f9276d28-f0aa-4d13-9ecd-ed2517f2ec25.jpg?itok=02mEkBd9)
Bluerose Technologies Pvt Ltd
IN
Last activity: 28 Sep 2020 10:24 EDT
how can i open all attachment once on click of button in Pega 7.2.1 version
Hi Team,
I have a requirement to open all attachment once on click of a button in Pega 7.2.1 version.So i have created button in a section and called a activity on click of button. In that custom activity, where i do obj-browse to get pxLinkedRefTo and pzInskey from Link-attachment class. For each results i am looping the page and pass pzInskey value to Work-.GetAttachmentReference activity and pxLinkedRefTo value to Work-.DisplayAttachFile activity. But still i am unable to download the attachment to view.
I have also tried to using "doattachmentsrunscipt" function that seems to be working for one attachment but not sure how to utilize this for multiple attachment.
Could anyone of you, please help me to complete this requirement?
***Edited by Moderator: Pallavi to update platform capability tags***