We have seen that Connect-FTP method that is there, it only used to do the reverse process, which is to upload files to a remote directory, but it is not able to download the file from the Remote SFTP Non-Pega server to the PEGA directory.
As of now, We had used a custom java function to download the files. But in the past pega has asked us to replace this java code with a OOTB Mechanism. But, we couldn’t find any.
So, Please provide a Pega OOTB mechanism to download a file from a remote SFTP server, that is from “Non-Pega” server to the Pega directory.
I have raised the ticket to Pega from MSP portal. I have got response as below.
Pega doesn’t have inbuilt functionality to retrieve a file from Remote SFTP Non Pega server to Pega for now. A feedback item (FDBK-62493) exists to get files using connect-ftp. There is a way we can achieve this by using some custom functionality using JSCH as mentioned or else FTP server should expose downloadable file links that Pega can use and access.
Please find the below links if these can help as an alternate solution -