on 10-23-2013 10:49 PM
Hi,
We have a requirement to pick up a file (.txt) from a folder and send it as an attachment over mail.
The filename has to be kept same as of the actual file. We have tried setting the composite content type as mentioned in the below link.
However to set this, we have to use a mapping and then the payload was getting changed from the original attachment to the mapping output.
(We were not using mail package and the attachment content was overwritten by the target XML from the mapping)
We tried with using mail package as well but was having issue with getting the Content field populated or not getting the filename passed through.
Is it possible to keep the same filename for attachments as well without using any adapter module? If yes, please guide on this matter.
Thanks
Justin
We achieved the solution by reading the payload and writing the same to content field in mail packaging. We didn't want to read the payload content but there was no other way of putting the attachment filename at runtime.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is an adapter module written that works in 7.0 version. Basically you have to change the code that will support your version
http://wiki.scn.sap.com/wiki/display/XI/Adapter+Module+PI+7.0+Get+Attachment+Name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Justin George,
Check the two links below:
Also if you dont want use module, you can do it buy javaMapping with MailPackage, you must extract the name of file and after that save into temporary variable.
I have the full javamapping code with MailPackage, but it's posted in portuguese language, because it's something to Brazil, but you can read the java code and adapt for you, check below:
http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=315524420
Kind regards,
BR.
R.Viana.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for the answer. Yes, it can be achieved through Java mapping but we wanted to avoid that as well if there is a possibility.
We are trying to achieve the functionality through graphical mapping or using standard modules.
If there is no other way, I will take a look into the code you have provided. Thanks!
Regards
Justin
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.