Skip to Content
0

Download e-mail attachments usign URL

Sep 08, 2017 at 08:17 AM

123

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
1

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+file

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

Share
10 |10000 characters needed characters left characters exceeded