Skip to Content
Former Member
Oct 30, 2008 at 01:55 PM

Retrieval of attachment filename - receiver mail adapter



I am using the mail adapter to receive an e-mail into PI. This e-mail has an attached CSV file.

First, I am using the PayloadSwapBean to swap the application playload to the attachment payload

Second, I am using the MessageTransformBean to transform the CSV file into an XML document

These are both working fine and the message is then passing into the relevant message mapping.

However, I would like to be able to use the attachment filename in the message mapping.

Can anyone advise how to do this for the mail adapter ?

I've done it loads of times for the file adapter but never the mail adapter (when using attachments) so I am a bit stumped.

Any advice greatly received.