on 02-05-2014 2:20 AM
Hi,
We are using Sender Mail adapter where in would require to process the attachment.
Here we are using the attachment records as sourcce and the interface was working fine.
No the requirement is to send the attachment file name in one of the target field.
Can someone please letme know how we can do it without having new structures as this is already existing one.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think we can read the attachments at the mapping level in 7.0
so have a look at the below module
Adapter Module PI 7.0 Get Attachment Name - Process Integration - SCN Wiki
After this simply using another UDF you can map this dynamic attribute to target field.
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String attachmentName = conf.get(key);
return attachmentName;
Message was edited by: Hareesh Gampa
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.