on 02-28-2013 7:01 AM
Hi All,
I have a requirement to configure a sender mail adapter channel in PI7.3 to read multiple attachments in a single mail.
As per few blogs the PaySwapBean cannot read multiple attachments.
Request you all to suggest module parameters that would read the multiple attachments in a single payload
Thanks,
Nilambari
Hi All,
Thank you for your inputs.
However i am unable to implement the logic for retaining the file names of the multiple attachments.
Request you to suggest the various steps for implementing the adapter module for achieving the filenames to flow for all attachments.
The scenario would be a MAIL to File. wherein the email can have several attachments.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nilambari,
If you want to send a mail with a body and attachment, or with several attachments, the message sender has to provide an XI message with additional attachments. For each additional payload of the XI message, the mail adapter creates an attachment for the mail. To enable this feature, you select the Keep Attachments check box when configuring the mail adapter. By default, the payload of the message is also sent as an attachment.
If you want to give each attachment a certain name, you can use the swap module. The swap module changes the main payload.
Module: PayloadSwapBean
Parameter Name: swap.keyValue
parameter: Attachment#0
Check below link which also works for pi73
Regards,
prasanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess, you can use the PayloadSwapBean to swap the attachment when you have .xml files as an attachments.
If the attachments are non xml, I guess you would need to write a custom module or you can use below Java Mapping API and handle the additional attachments directly within the mapping program.
Also you can look into this..
Hope it helps.!
Regards,
Sunil
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 | |
6 | |
6 | |
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.