Download attachments from Data-WorkAttach-File

Hi,

I have written an activity where I am looping through Data-WorkAttach-File class with a Category filter. It gives me a list of page which has pyAttachStream representing each file.

I am running a loop and try to download each file using tools.SendFile. The loop runs successfully and I can see that in the Tracer, but it downloads only 1 file. There are no errors in the Tracer as well. How do i download all of them. One answer is to get all files into a zip and then download that. However, I have a list of pyAttachStream and not a list of files. How to resolve this?

@SujithN0 In the loop create a new Page as the first step page and run the java step on that page and in last remove the page then it should work.