Skip to Content

Download e-mail attachments usign URL

Sep 08, 2017 at 08:17 AM


avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Corrine Guan
Sep 18, 2017 at 01:00 AM

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:

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): (please ignore send email part, just refer to the part of how to convert a file into ZIP file)

Best Regards, Corrine

10 |10000 characters needed characters left characters exceeded