cancel
Showing results for 
Search instead for 
Did you mean: 

Rename or Transform Payload in Receive Mail Channel

former_member192851
Active Participant
0 Kudos

Hi, all.

I know that there are a lot of threads about Payloads, but i'm stuck now.

Picture. ( i use File-to-Mail scenario, PI 7.0 system)

I have in Payloads Section two entries: MainDocument (application/xml) and Attachment (application/xml).

How can I send Attachment as file with filename "archive.zip"

Now i receive in mail "untitled.xml" file.

I want to have payload like "application/zip;filename="archive.zip". instead of Attachment (application/xml).

Can you help?

PS. Just what i need is described in blog http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/04/13/renaming-email-attachment-with-in...

But i don't want to deploy adapter module...

BR.

Accepted Solutions (1)

Accepted Solutions (1)

former_member192851
Active Participant
0 Kudos

My answer.

Correct order of Adapter Modules in Receiver Channel:

1. PayloadSwapBean.

swap.keyName : payload-name

swap.keyValue: Attachment

2. MessageTransformBean

Transform.contentDisposition : attachment;filename="archive.zip"

Transform.contentType : application/zip;

3. PayloadSwapBean.

swap.keyName : payload-name

swap.keyValue : MainDocument

4. XIMailAdapterBean (by default)

And as result i have archive.zip in my mail inbox as attachment.

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos
former_member192851
Active Participant
0 Kudos

yes, i can. but don't want to