Hi Experts,
I have a requirement where there are two files in PI AL11 Directory,let say file.xml and file_test.xml.
I want to send file.xml as the main payload and file_test.xml as the attachment.In the target side I want to have the entire xml content of the file "file.xml "as the mail body and "file_test.xml" as the attachment.I am getting the xml content as the mail body as required and also the attachment as required but problem is I am getting file.xml whose content should only be in my mail body as an additional attachment where I need only file_test as the attachment in my mail in short I am getting 2 attachment file.xml and file_test.xml where I need only one i.e;file_test.xml.
I have implemented it in following ways:
a) Mail package is used as the receiver structure.
b) Following mapping is done in ESR:
emailid----->To
emailid---->From
application/xml----->Content_Type
filename----->ContentDescription
inline;filename="filename"----->Content_Description
return as xml(root source message)------>Content
c) In the sender file adapter:
file.xml as the source filename and the relevant directory name
checked the option Additional File
put the name as file_test
file_test.namePart ".xml"="_test.xml"
file_test.optional NO
d) In the receiver mail adapter I have checked the mail package format and the keep attachment option.
In the Module tab I have done the following configuration:
I have gone through all the Links available in SDN for the solution of this issue.
Therefore expecting an exact solution of this problem.Kindly help.
Thanks and Regards
Anik Sarkar