Skip to Content
0
Jun 28, 2020 at 06:37 AM

Changing the name of a file in CPI

3560 Views

Hi,

I have a requirement to change the name of the file inside CPI(Cloud Platform Integration).

I am receiving a file from an external SFTP folder and need to change the name of the file inside CPI. For example, if the name of the file that I receive from the external SFTP connection is Test123, I need to change the name of the file to Test-123 inside CPI.

I tried using Camel file name and groovy script but was not able to do the same. If anyone has an example code of doing this through groovy script, it would be very helpful.

Thanks,

Sushanth