cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic file name to pass as parameter value to payload swap bean

former_member460664
Participant
0 Kudos

Hi Experts,

My requirement is, I will receive zip file (123.zip) from the sender system and I have configured SFTP adapter. To unzip, I have used payload zip bean module. But source 123.zip file contains two .xml files inside it (abc.xml and xyz_Date_Time.xml). I have to process only xyz_Date_Time.xml file. while unzipping, system takes abc.xml as the main payload. To overcome this, I have used payload swap bean and maintained needed parameter names and parameter values. This approach is working fine for static file names. But in my case, Date and Time values appends to the xyz_Date_Time.xml are not static.

Please let me know, how to maintain dynamic file name as parameter value of payload swap bean?

Your inputs would be appreciated.

Regards,

Ashok.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member190293
Active Contributor
0 Kudos

Hi Ashok!

How are you gonna know dynamic Date and Time values for each of your zip files?

The best way is to ask your sender team to use fixed name for the file.

Another way is to use adapter module for reading attachements with java code.

Regards, Evgeniy.