Question
SFTP multiple files at once using connect-ftp
I was able to connect and sftp a file from one server location to another using Connect-FTP and using FTP Server data instance.
But this only transfers one file at a time. Is there any way in pega to transfer multiple files at once from one server location to another or we have to write Java code to loop and pull multiple files.
Because in local path I was not able to give syntax like /path1/path2/Doc*.txt instead I had to specify exact file name like /path1/path2/Doc.txt to save rule form without syntax error.
Also is there any way i dont have to give exact file name because i have filename that has date in it and it changes everyday so i cant hardcode a file name like above.
If we have to write java code, can you please guide any java code pega OOTB already have or from some other source
Hi
I believe there is no OOTB functionality to FTP multiple files, instead loop through to the number of file list available in the activity, for each iteration fetch the filename and update the file name dynamically, most of the scenarios we append "_currentdatetime" to the File name and FTP the file.
In view of performance, if files list are more as per the requirement, better do the FTP via agents, Create an Agent to Connect-FTP files, create Queues for each iteration.