on 09-08-2017 9:17 AM
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?
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/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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.