โ09-04-2020 02:39 PM
I am new to SnapLogic and currently learning how to use SnapLogic. At this moment, I am looking for some guidance how to create a pipeline that logs into a remote FTP server via SFTP and download a file to my share folder.
I already created a SSH Account. My next is I donโt know which snap to be used to make the connection to FTP server and download the file.
Please help
Thanks
Solved! Go to Solution.
โ09-14-2020 10:42 PM
@mtran21 โฆ In file write , you can specify the filename what you want to write to target system. This encrypted_filename is whatever filename you use in PGP encrypt file. If you use any pattern can write in pipeline param then use it or if you want to hard code like->
โ-myEncryptFile-โ+Date.now()+โ.xmlโ instead of $[encrypted_file]
โ09-04-2020 03:24 PM
Hi @mtran21,
You can use File Reader, provide the URL to the FTP server such as sftp://example.com/folder/file.csv
, and select the SSH account you have created. Then connect it to File Writer snap to write it to the destination you want.
See also
https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439379/Binary+Snap+Pack
โ09-14-2020 02:58 PM
Thank you. That is very helpful.
I am attempting to upload PGP Encrypted file to a SFTP server
What should be the encrypted_filename here? How do I get the encrypted file name?
Thanks
โ09-14-2020 10:42 PM
@mtran21 โฆ In file write , you can specify the filename what you want to write to target system. This encrypted_filename is whatever filename you use in PGP encrypt file. If you use any pattern can write in pipeline param then use it or if you want to hard code like->
โ-myEncryptFile-โ+Date.now()+โ.xmlโ instead of $[encrypted_file]