Skip to main content

Read SFTP File

The Read SFTP File activity reads a file from a remote SFTP server.

Configuring the Read SFTP File Activity

To configure the Read SFTP File activity, fill in the required fields in the activity panel.

Configuration

FieldRequiredDescriptionExample
NameRequiredName of the step, should be unique within this workflow.MyActivity
DescriptionOptionalOptional description about the work performed by this step.Reads a file from S3
SFTP ConnectionRequiredDrag and drop a SFTPConnection resource from the workspace.
SFTP Auth ContextOptionalAuthorization context used for SFTP connection.
Working DirectoryOptionalDirectory where the file will be placed or fetched from on the SFTP server.my-data-bucket
File PathOptionalPath to the file on the SFTP server (mapping supported).data/reports/2024/
File NameOptionalName of the file on the SFTP server (mapping supported).report-2024.csv
Content TypeOptionalFormat of the file content (CSV, JSON, XML, etc.) Options: CSV, JSON, XML, TEXT, BINARY.

Advanced

FieldRequiredDescriptionExample
Encryption TypeOptionalSelect encryption type if the file is encrypted with PGP or not Options: NONE, PGP.
Encryption ResourceOptionalSelect the certificate resource used for encryption/decryption (hidden if no encryption).
Compression TypeOptionalSpecify if the file is compressed using ZIP or not Options: NONE, ZIP.
Enable RetryOptionalRetry after Failure.
Retry Policy ResourceOptionalDrag and drop a Retry Policy resource from the workspace.

Input

FieldRequiredData TypeDescriptionExample
Working DirectoryOptionalStringThe working directory where the file is located.my-data-bucket
File PathOptionalStringPath to the file within the working directory.data/reports/2024/
File NameOptionalStringName of the file to be read.report-2024.csv

Output

The output fields are dynamically populated based on the activity result.