Skip to Content
avatar image
Former Member

Mail to File Scenario in PI 7.1 with multiple attachments

Dears,

I would like to start with new a requirement on Mail to File scenario using PI 7.1, the tricky point is here to pick all the attached files (.txt/.pdf) from the emails and place them on a network folder.

I planning to pick the all attachments from email by zipping (using PayloadSwapBean) and placing them on network folder. Can anyone could help me how to use the PayloadSwapBean here to achieve this solution?

If you have any alternative methods please let me know....

Thanks-

Ramesh

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Oct 27, 2014 at 07:55 AM

    Hi Rams,

    You could zip all attachments using a java mapping and write the zip content to outputstream (TransformationOutput) for receiver file channel to handle. Use some script to unzip

    You can use my article: Attachments zipping during Mapping . But instead of creating a new attachment you can write that zip content to outputstream

    Regards,

    Praveen Gujjeti

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 20, 2014 at 07:44 AM

    Hi Rams,

    I think,

    This link may help you.

    Working with the PayloadZipBean module of the XI Adapter Framework

    Add comment
    10|10000 characters needed characters exceeded