on 09-03-2012 10:39 AM
Hi all,
I have to configure emal sender adapter for receiving 2 attachments. I have done next:
In Module properties of email adapter:
1.- AF_Modules/PayloadSwapBean with properties for first attachment
2.- AF_Modules/PayloadSwapBean with properties for second attachment
3.- AF_Modules/DynamicConfigurationBean with his properties
4.- sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
Then I have a mapping from the email message to a custom interface (1 to 0..unbounded) and I tried to collect the data from the attachment, process them and generate 2 interfaces, one per each attachment.
But I get this error:
Use case DUPLICATE_CONTENT_IDS not recognized
Any Idea?
The email I've got is:
</sap:Main>
</sap:ReliableMessaging>
</sap:DynamicConfiguration>
</sap:System>
</sap:Hop>
</sap:HopList>
</SOAP:Header>
</sap:Payload>
</sap:Payload>
</sap:Payload>
</sap:Manifest>
</SOAP:Body>
</SOAP:Envelope>
Hi,
AFAIK you cannot put attachments in one payload
so what you can is this:
send:
a) send this e-mail (without the swaping) to two receivers
and in each of the respective mappings get the data from the attachment in the mapping
and send it to the receiver
b) inside your own adapter module you can do the split yourself (and send two messages from one e-mail) - this requires adapter module development and it's not supported by SAP (splitting in the adapter module) but it works too...
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Michal, I probably go for the a) option, but how can I get the files?
I mean, I don´t know the name of the file they are sending to me. I just use a UDF funciont to get the attachment. I have tested it with an email and 2 attachment and sometimes it takes first attachment, and sometimes the second one.
Attachment attachment = inputAttachments.getAttachment(id);
I have check in the adapter that both messages has the same id
payload-d3cdf9a5f5c811e1bd4e0000006386b6@sap.com
So I am not sure how inputAttachments.getAttachment(id); is working
Can you help me?
Thanks
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.