cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get Payload + Attachment-content into 1 xml using PayloadSwapBean?

Former Member
0 Kudos

Hi all,

For a customer I have to poll on a specific email-address on a mailserver until a mailmessage appears, read the attachment (.txt) and transform it to a destination-messagetype. For this purpose, I have used the XI-mailadapter (XIPAYLOAD) and the PayloadSwapBean. I now get the attachment-content in XI and can work with it. So far, so good...

Now the problem is: I need not only the attachment-content, but also the payload of the mail-xml (with data like sender, CC, subject, body, etc). When I use the PayloadSwapBean, I only get the content from the attachment and I do not get the payload-data. When I do NOT use the PayloadSwapBean, I only get the payload-data and not the attachment-content....

Is there a way to get both payload (of the email-message) AND attachment-content in 1 file, using this PayloadSwapBean?

Thanks in advance for your help!

Regards

William

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

This is not possible. You need a self-written adapter module to achieve this.

Regards

Stefan

Answers (0)