Hi All,
In D365 Cloud implementation, End user will attach multiple documents against one particular Source document. We need to download all the attachments in single click.
I have tried to below code to download all the attachment while clicking download button. Code's are shown below.
By passing source document record and fetching all the attached documents and loops are working fine. Code is working as same like 'Open' button in the attachment form. But, it is download only the latest file (as per no. of attachments against the document)..


Please suggest.
Thanks