cancel
Showing results for 
Search instead for 
Did you mean: 

Multimapping with Dynamic Filename in SFTP receiver adapter

aakanksha_kumari
Discoverer
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

manoj_khavatkopp
Active Contributor
0 Kudos

Answers (0)