cancel
Showing results for 
Search instead for 
Did you mean: 

Payload Swap bean Issues

Former Member
0 Kudos

Hi

I'm using the following values in my module tab -

Module name - AF_Modules/PayloadSwapBean

Module key - swapbean

This is the sequence of the Module Configuration -

swapbean | swap.keyName | Content-Disposition

swapbean | swap.keyName | Content-Description

swapbean | swap.keyValue | attachment;filename="MailAttachment-1.xls"

swapbean | swap.keyValue | MailAttachment-1

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos
swapbean | swap.keyValue | attachment;filename="MailAttachment-1.xls"

You have to convert the message into XML as well.....so have you included any other module to do so?

Former Member
0 Kudos

No i havent included any other module.

How do i do this?

former_member200962
Active Contributor
0 Kudos

The PayloadSwap Bean wont convert the xls attachment into XML....it will just ensure that the attachment is passed as main payload to the mapping program.

You have to convert the xls content into XML and then only it will be processed....you have to write a module for this.

There would be a blog on how to read an Excel file using a module.

Former Member
0 Kudos

I just want to pass the attachment from the mail to the file location. Is there no way of doing this?

Maybe i could put the swap bean on my file receiver adapter?

prateek
Active Contributor
0 Kudos

Is there no way of doing this?

Of course there is a way

Maybe i could put the swap bean on my file receiver adapter?

No, if it is file to mail, use the module in at mail sender channel only.

Try only this in your module parameter.

swapbean | swap.keyName | payload-name

swapbean | swap.keyValue | MailAttachment-1

Regards,

Prateek

Former Member
0 Kudos

Thanks! That works perfectly

Answers (1)

Answers (1)

Former Member
0 Kudos

I notice my MONI messages are different as well. They dont show me the payload at all just the response message. Is there something wrong in my config or perhaps the sequence of the swapbean paramters?