Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9164

Re: Multiple CSV attachment files reading in Sender Mail Adapter PI 7.4

$
0
0

Hi Praveen

 

Glad to hear that there is progress

 

1) I've been thinking about this for a while, and I also haven't figured out how to suppress the main payload. If it is an XML payload, it is possible to add an XPath condition when determining receiver - but I think the mail payload is non-XML content.

 

2) Can you check if the filename is available in each of the child messages under it's content type? If it is, the content type would look something like below:-

Content Type: text/plain; charset=UTF-8; name=file1.csv

If it is available, then add the parameter storeFileName = Y in the AttachmentSplitterBean of the iFlow 1. This would store the filenames of the attachments in the default attribute FileName in namespace http://sap.com/xi/XI/System/File.

 

Once you have the filename in the child messages, add DynamicAttributeChangeBean (refer to scenario 2 on mode = change) on iFlow 2. You just need the following three parameters:-

mode = change

oldValue = .csv

newValue = .xml

 

3) Not sure what you trying to achieve with PayloadSwapBean. What do you mean by "multiple receivers for each attachment"? Maybe you can elaborate with an example?

 

 

Rgds

Eng Swee


Viewing all articles
Browse latest Browse all 9164

Trending Articles