Skip to Content
avatar image
Former Member

Multimapping with Dynamic Filename in SFTP receiver adapter

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer