cancel
Showing results for 
Search instead for 
Did you mean: 

How to swap email attachment to payload

pekka_pottonen
Participant
0 Kudos

Hello Gurus,

I have configured my CC in a way that it fetches email with attachment from inbox ok. Now i want to move the attachment to the payload. Email body is useless.

I think it is done by using PayloadSwapBean, but what are the exact module keys? Swap?

Also what are the correct parameter names and values in the module configuration?

My attachment name is delvry03.xml and it is an idoc.

Regs,

Pekka

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Pekka

PayloadSwapBean has two keys

swap.keyName and swap.keyValue

if you want to swap your payload

use

swap.keyName - > payload-name

swap.keyValue -> delvry03.xml

this will swap your PI payload MainDocument( default) to delivry03.xml which is coming as attachment.

As you are doing Mail to Mail scenario then attachment would be coming under field

Content-Disposition: attachment;filename="delivry03.xml"

Content-Description: delivery03.xml

you can use

swap.keyName - > Content-Disposition

swap.keyValue -> attachment;filename="delivry03.xml"

swap.keyName - > Content-Description

swap.keyValue -> delivery03.xml

Refer to Michal's blog provided by Stefen

Thanks

Gaurav

Edited by: Gaurav Bhargava on Oct 8, 2008 1:59 AM

Edited by: Gaurav Bhargava on Oct 8, 2008 2:02 AM

stefan_grube
Active Contributor
0 Kudos

Ask Michal:

Regards

Stefam