Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

how ot change file name moving another location using FetchSFTP

avatar
Contributor

Hi sir,

I am using ListSFTP 2.0.0-M1+FetchSFTP  processor  and move file another location. I have two issues

1. Every time it make a folder and inside the folder keep the file. Here is image:

enam_1-1711873146987.jpeg

 

2. I need to move file using filename like filename+uniqueid.xml

If my file name is test.xml , I will rename file name like test++uniqueid.xml.

I have used  below path for move destination directiory

/myfolder/${filename}

Here is the image of FetchSFTP :

enam_0-1711872953352.jpeg

What is wrong of my configuration?

Please help me..

 

 

 

2 REPLIES 2

avatar
Expert Contributor

Hi @enam,

1. Please set the Create Directory to false to avoid the folder creation.

saquibsk_0-1712227893690.png

2. you can change the filename using UpdateAttribute processor by following below steps:

   2.1:  let say your file name is "97435cb8-b8b1-4b4d-b60b-f6aa98a15ba9" and UUID is "97435cb8-b8b1-4b4d-b60b-f6aa98a15ba9" 

saquibsk_1-1712228147812.png

 

  2.2. Now drag the UpdateAttribute name  and writedown the below Expression Lang

saquibsk_2-1712228356541.png

updated file name

saquibsk_3-1712228411185.png

OR

saquibsk_4-1712228533405.png

 

Output:

saquibsk_5-1712228631489.png

 

  "Accept as Solution" if its work for you.

avatar
Expert Contributor

Hi @enam ,

Did above solution help you?