Automation Action: FTP Download
Download files from an FTP or SFTP server.
Download files from an FTP or SFTP server.
First select FTP or SFTP.
Enter your FTP Host, User Name & Password.
Click the Connect button to connect to your FTP Server. You may need to uncheck the Passive Mode option if your FTP server doesn't support passive mode.
You can select the Secure Mode of 'Auth TLS', 'SSL' & 'None' if your FTP server requires a secure connection.
You can then select a Remote Path to download files from.
Download Or Sync
From the Download Or Sync option select:
Download Files
Select or enter the Remote File Or Mask to download. You can specify a remote file or a mask (eg: *.pdf)
Select the Save To folder to save the downloaded files to.
If Delete Downloaded Files After Message Is Processed is enabled then ThinkAutomation will remove the file when the Automation completes for the current message. This is useful if you wish to use the file in the Automation (for example, to send the document as an attachment with the Send Email action), but do not need to keep a local copy afterwards.
The Assign Downloaded Files To variable will receive a comma separated list of local file paths.
Sync Local Folder
This option allows you to synchronize a remote path to a local folder (and optionally all sub folders). All new and changed files in the specified remote path will be downloaded to the specified local folder.
To sync a local folder, select the local folder in the Local Folder entry. Enable Include Sub Folders to include all sub-folders. Enter any Sync Masks. This is a comma separated list of file masks to include in the Sync Folder download. For example: "*.html,*.css" would only sync files with html or css extensions. Leave blank or set to *.* for all file types.
When the Automation executes, the Remote Path will be scanned and compared to the Local Folder. Any missing files, newer files or files with size differences will be downloaded. Any new remote sub folders will be created in the local folder (if the Include Sub Folders option is enabled).
The Assign Downloaded Files To variable will receive a comma separated list of local file paths for all new/changed files downloaded for the current sync. If no new or changed files are downloaded then the assign to variable will be blank.