on 04-19-2012 10:32 AM
Hi all, I am working on a email (with 1 attachment) to file escenario.
I have read michaels blog
in order to configure my system for getting the attachments.
Now the attachments are comming to my system.
I have checked on MONI and I can see 2 payloads.
Then I have configured my scenario like a file to file scenario without content conversion in order to write the attachment into a file. But my system get the first payload and not the payload related to the attachment.
How can I get the attachment payload?
Many thanks
Hi,
This is actually already covered in Michal's blog. It is achieved with the PayloadSwapBean adapter module. So most probably you have just forgotten to prepare this config, or your settings are not fully correct. Especially, make sure that swap.keyValue attribute values are consistent with what you can see as the attachment name in moni. Moreover, the sequence of modules (PayloadSwapBean before the standard mail module) is also important.
Hope this helps,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Antonio,
Have you tried to read the attachement with an UDF?:
GlobalContainer globalContainer = container.getGlobalContainer();
InputAttachments inputAttachments = globalContainer.getInputAttachments();
And check later the variable inputattachments.
https://help.sap.com/javadocs/pi/SP3/xpi/index.html
Regards.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.