VERSION 10 DOCUMENTATION IS IN PROGRESS. PLEASE VIEW V9 ARTICLES WHILE V10 ARTICLES ARE BEING PUBLISHED.

Download File with SFTP/FTP

Prev Next

Overview

File Transfer Protocol (FTP) and Secure File Transfer Protocol (SFTP) are methods for transferring files across a network. While certain FTP servers allow an anonymous connection, the majority require a user name and password for the FTP server when connecting. A Flow can be used to download a file from an FTP or SFTP server once the authentication information has been specified. 

Example

In the following example, a Flow will be built to download a file from an FTP server.

  1. In the Designer Project, click CREATE FLOW from the Global Action Bar and select Flow. Name the Flow and click CREATE.
  2. Click the Done path of the Start step. Navigate to Integrations > All Integrations > FTP and select the Download step. Click ADD.
    This example's configuration can be done SFTP, simply replace the Download step with the Download by SFTP step.
  3. On the Properties panel, enter the credentials for the Host of the FTP server and the Username, and Password for the account connecting to the FTP server under the FTP category.
    The following are additional settings the FTP/SFTP Download step has that can be used based on specific situations: 
    Setting NameDescription
    Get Configuration From DataAllows the FTP Hostname and Authentication credentials to be mapped in from flow data
    File CompressionCompressing the data for network transit, used for very large files
    Proxy TypeAllows the user input their FTP environment proxy settings 
  4. Click Unknown next to the Output File Name field under the INPTS category and select Constant. Enter the name of the file that will be downloaded. For the Remote File Path, enter the path on the FTP server where the file will be downloaded from. 
    This value should be input as a full file path after the hostname; for example, /FileData/exampledoc.txt.
  5. Under the OUTPUTS category, in the file field, enter a new name for the file once it has been downloaded.
  6. Connect the Done path to the End step. Click Save to save changes. 

Debug

  1. Click Debug from the top action bar. 
  2. Click START DEBUGGING.
  3. If a file is found in the FTP location, it will be downloaded and added to memory and Flow data, not in a local file system.