on 02-10-2015 4:39 AM
Hi Experts,
Now i have an runnning interface where data is coming from Proxy and is converterd into .CSV file with Dyanimc filename i.e from one of the filed and is being placed in SFTP now this interface is wokring fine no issues.
Now additional to this we have a requirement that the data which is already being sent through proxy should be sent to mail as spreadsheet.
For this i created a new Mail Comm channel and a tried using payloadSwapBean and other module but in each case i get untitled.xml as an attachment.
Can you please suggest how would i acheive this ?
Br,
Manoj
Hi Manoj,
Have you tried section 3.2.4 in this document?
Or try this module configuration
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj, Do did you split your scenario into 2 interfaces? 1. Proxy -> PI -> SFTP 2. SFTP -> PI -> Mail I did something similar before but the CSV file is sent as attachment to the proxy. So there's no FCC in the SFTP, just plain file transfer using PayloadSwapBean. Then I have another receiver for Mail. Mark
Hi Manoj, Have you tried this conversion type of MessageTransformBean? http://wiki.scn.sap.com/wiki/display/XI/How+To...Content+conversion+module+with+J2EE+JMS+adapter Mark
Mark is right.
And I think, your solution will work, but you have to specify many more parameters for the CSV-conversion. You'll find them in the link.
Basically, you got to specify which XML-nodes will go in which order to CSV-columns.
Additionally, you got to make sure, that your Payloadnames are correct (my_attachment), otherwise the Swap won't work.
You can see everything in the channel monitor.
Hi Manoj
You have to use mail package if you want to generate the email attachment name dynamically.
You have fill up these three fields for dynamic attachment name
Content Type: text/xml
Content Description: indratest.txt
Content Disposition: attachment;filename="indratest.txt"
The data which will be sent in the email has to mapped in the field 'Content' in mail package.
Let me know if you have any doubts.
Thanks
Indrajit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.