cancel
Showing results for 
Search instead for 
Did you mean: 

Sender Mail Adapter Configuration in PI7.3 to process multiple attachments

nilambari
Explorer
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

nilambari
Explorer
0 Kudos

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,

Former Member
0 Kudos

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  

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551...

Regards,

prasanth

smavachee
Active Contributor
0 Kudos

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.

TransformationInput()

Also you can look into this..


Hope it helps.!

Regards,

Sunil