on 09-24-2012 7:59 AM
Dear experts,
I have a scenario Mail --> PI --> FTP. I need to get an attachment from the email.
I have been looking at these blogs:
They tell you when using the PayloadSwapBean in the module configuration you have to specify the attachment name using:
"swap.keyValue" with
attachment;filenmae="Input.xml"
But what if my attachment names vary? My attachments could be named "110_file.xls" or "116_file.xls" and so on.
How can I use the PayloadSwapBean module then?
Can I also somehow tell the mail sender adapter to only process emails with attachments "*.xls"?
Thank you for any hints on that,
Peter
An undocumented feature of the PayloadSwapBean is the fact, that the swap keyValue can be used as part of the String. So when you want to use any xls as main payload, just type .xls as keyValue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If anyone ever faces a similar scenario, read an EXCEL (.xls) attachment from an email, convert the attachment to XML and keep the attachment file name:
I used the following adapter modules:
PayloadSwapBean
ConvertExcelToXML (http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=140640463)
GetAttachmentName (http://wiki.sdn.sap.com/wiki/display/XI/Adapter+Module+PI+7.0+Get+Attachment+Name)
and after that the Standard mail adapter.
Best regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Peter,
Did you refer the recent thread?
http://scn.sap.com/message/13534287
I guess you have to code a custom module to achieve this requirement.
You can also refer the wiki to get the code.
http://wiki.sdn.sap.com/wiki/display/XI/Adapter+Module+PI+7.0+Get+Attachment+Name
-Zameer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.