cancel
Showing results for 
Search instead for 
Did you mean: 

how to delete messaeg payload?

Former Member
0 Kudos

Hi,

my scenario:

1. mail + attached file -> send to PI mail box.

2. attached file is being used as message content (using adaptor modules).

3. message content is mapped.

i tested my scenario and it 0was OK.

in case of NOT empty mail message body, the content of the mail message damage the interface functionality. since i have 2 payloads (mail attachment + mail message body), i need to delete payload with mail message body.

please advise

Regards

Uri

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>attached file is being used as message content (using adaptor modules).

so the original payload goes to an attachment right?

if so you can create a simple adapter module that will remove all attachments

and place it after this adapter module that swaps the attachments

Regards,

Michal Krawczyk

Former Member
0 Kudos

Michal,

10x for your replay.

my requirement is: to ignore/delete all payloads, so the only payload is the one containing the attached file (of the incoming mail msg) content.

your answer: create adapter module to delete unwanted payloads.

if so, can you please provide useful links?

Regards,

Uri

Former Member
0 Kudos

Hi,

Why don't you use Pay load swap bean?

Thanks,

Kiran.

Former Member
0 Kudos

Kiran,

10x for your answer.

i use "localejbs/AF_Modules/PayloadSwapBean" to get the attached file content. can i use it to delete other message payloads?

Regards,

Uri

former_member200962
Active Contributor
0 Kudos
i use "localejbs/AF_Modules/PayloadSwapBean" to get the attached file content. can i use it to delete other message payloads

If you refer this blog: /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step you will find something written by Michal as:

From the above blog
we should be able to see that the message which goes to our interface mapping is actually the attachment and not the main 
payload itself.

Now this means that only data from attachment is used and not the rest....i hope i got the context correct

Regards,

Abhishek.