Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Feb 28, 2013 at 08:02 AM

    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..

    Read the attachments of the input XI message in the message mapping

    Hope it helps.!

    Regards,

    Sunil

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 28, 2013 at 01:26 PM

    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-8e1bb1551f05?QuickLink=index&overridelayout=true&5003637722589

    Regards,

    prasanth

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 19, 2013 at 08:06 AM

    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,

    Add comment
    10|10000 characters needed characters exceeded