Skip to Content
0

Multimapping with Dynamic Filename in SFTP receiver adapter

Jul 12, 2017 at 08:17 AM

39

avatar image

I am working on Proxy to SFTP scenario.

I am not able to achieve the variable substitution in SFTP receiver adapter because I have used MessageTransformBean for converting the XML file to .csv format.

The structure is like this

<Payment>

<LineItem>

<FILENAME>ABC_2017_100.csv</FILENAME>
<LINENO>01</LINENO>
<BATCHNO>12</BATCHNO>
<STATUS>received</STATUS>

</LineItem>

<LineItem>

<FILENAME>ABC_2017_100.csv</FILENAME>
<LINENO>01</LINENO>
<BATCHNO>12</BATCHNO>
<STATUS>received</STATUS>

</LineItem>

<LineItem>

<FILENAME>ABC_2017_200.csv</FILENAME>
<LINENO>01</LINENO>
<BATCHNO>12</BATCHNO>
<STATUS>received</STATUS>

</LineItem>

</Payment>

Two files should generate with the name ABC_2017_100.csv and ABC_2017_200.csv

We need to pick a filename from the payload content and then we need to set the filename dynamically.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Manoj K Jul 12, 2017 at 08:25 AM
0
Share
10 |10000 characters needed characters left characters exceeded