cancel
Showing results for 
Search instead for 
Did you mean: 

Download e-mail attachments usign URL

Former Member
0 Kudos

Hi everyone,

I have to download the attachments on an e-mail in the zip format after clicking on a button.
I was able to get the attachments urls of an e-mail fron the currentattachments table of the mail context node.

The next step is to get the files using the urls. Any suggestions?

Accepted Solutions (1)

Accepted Solutions (1)

corrine_guan
Employee
Employee

Hello Mihai,

Do you mean there is a attachment like word or excel or some kind types, when click on your button, you want to convert it into .ZIP file and then download it? Maybe following will help in some way:

Maybe you can render your button with in your enhanced view.HTML page with html source codes, assign a JavaScript function to its onclick event. In this JavaScript function, you can use some technology(you can google them) which can convert a file into ZIP file. For example:

https://blog.filestack.com/tutorials/generate-a-zip-file-with-filestack-and-react/

If you want to use ABAP codes to convert a file into a ZIP file, maybe this can give some hints(not from URL to ZIP, maybe you have to save the file from URL into local file first):

https://wiki.scn.sap.com/wiki/display/Snippets/Program+to+download+OO+ABAP+Class+methods+into+a+ZIP+...

https://wiki.scn.sap.com/wiki/display/Snippets/Send+email+with+multiple+zipped+attachments (please ignore send email part, just refer to the part of how to convert a file into ZIP file)

Best Regards, Corrine

Answers (0)