How to create ZIP archive and attach to case? Part 2

There was a post from long ago in regards to zipping attachments from a work object into your local.

https://collaborate.pega.com/question/how-create-zip-archive-and-attach-case

We tried replicating all the objects based on the post but for the main activity, ZipUpAttachments, we couldn’t figure out what to set in the parameters in each of the steps and pass them from top to bottom.

Does anyone know how to fill in these parameters or any good reference information for us to understand how to fill in the parameters?

Thanks,
Masato

@MasatoN1

Hi, I have the same problem wherein after creating all the required rules the params that need to be set in Steps 3 are not known to me. Would be really helpful to know if you were able to solve the missing information and create the zip file.

@JOHNPW_GCS , Could you please help me understand and if possible share the details for Step 3 params please.

@RazauddinA

Don’t bother with the multi step activity, just use the 1 step activity in the answers from the link. We made it work by changing the parameter for pyWorkPage and SendFiles by populating values from obj-browse in step 1 for Data-WorkAttach-File class.

Step 1 → obj-browse Data-WorkAttach-File by passing pzInsKey

Step 2 → Java → pass the page from step 1 and pxResults in replacement for pyWorkPage/SendFiles

https://collaborate.pega.com/question/how-create-zip-archive-and-attach-case

Regards,
Masato

@MasatoN1

Hi, thank you for the valuable input. I have tried the steps mentioned above and the Zip file is now downloaded without any errors but is empty. I have verified the instance in Data-WorkAttach-File and Link-Attachment classes as well and did not observe any issue.

Attaching the word document with the steps followed with respective screen-shots for reference. Requesting your kind help to check if I am missing anything? thanks a lot for the help !

Zip Excel Attachment requirement.docx (415 KB)

@RazauddinA

We passed the pzInskey param for .pxRefObjectKey not pzInsKey for step 1.

Also switch AttachStream/AttachName to pyAttachStream and pxAttachName

Regards,
Masato

@MasatoN1

Thanks a lot for the help and guidance. It works for me now !

Regards,

Raza