Skip to main content

Write SFTP File

The Write SFTP File activity writes data to a file on a remote SFTP server.

Configuring the Write SFTP File Activity​

To configure the Write 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 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.
Create Directory If Not ExistsOptionalCreate directory if it does not exist.
OverwriteOptionalOverwrite if file already exists.
Enable RetryOptionalRetry after Failure.
Retry Policy ResourceOptionalDrag and drop a Retry Policy resource from the workspace.

Input​

FieldRequiredData TypeDescriptionExample
Working DirectoryOptionalStringThe directory to be used as the working directory for the file operations.my-data-bucket
File PathOptionalStringThe path where the file will be written.data/reports/2024/
File NameOptionalStringThe name of the file to be created.report-2024.csv
Create DirectoryOptionalBooleanIndicates whether to create the directory if it doesn't exist.
OverwriteOptionalBooleanoverwrite the file if it exist.
ContentOptionalStringThe content to be written into the file.

Output​

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