on 07-08-2009 7:03 AM
Hi experts,
I have configured a mail to file scenario.The attachment in the mail has to be passed to a file folder.I configured the Mail adapter and used the adapter module Payloadswapbean to get the attachment .And also configured the file adapter with the folder details and provided a name.
Now my requirement has been changed.I want to pass the attachment in the mail to the file folder with the same name as of in attachment.Please provide me any suggestions on how to acheive this.
Thanks,
Tiny
Edited by: TINY MAMPILLY on Jul 15, 2009 8:19 AM
Hi Tiny
I agree with the guys above it's no easy but You can try use dynamic configuration..like this
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(
"http://sap.com/xi/XI/System/File",
"FileName");
String fileName = conf.get(key);
Or maybe use a module.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://wiki.sdn.sap.com/wiki/display/XI/AdapterModulePI7.0GetAttachmentName
Hi,
I think it is not easy. Because, Assume that you pass three attachments in mail with different names. But XI gets that attachments in unique name (Which is mention in Module parameter swap.keyValue) with serial No.
Example: you have mention swap.keyValue is "Attachment". You get the attachments in XI is Attachment1, Attachment2, Attachment3.
So, In custom EJB modue also shows file name for Attachment1, 2, 3.
Thanks & Regards
Vijaykumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.