SFTP Text Reader Documentation
Version:Â 3.0.0Â
Retrieved:Â 2025-10-09 15:16:19
SFTP Text Reader
The module reads text file content from an SFTP server into a property and passes it to the next module(s).
Settings
| Name | Requirements | Purpose | Default |
|---|---|---|---|
| Host | String with length 1-128 | The SFTP server to use | localhost |
| Port | Number between 1 and 60000 | The port to use | 22 |
| Remote Directory | String with length 0-256 | The Remote Directory to use on the SFTP server, if left empty the value will be taken from sftptextreader.remotedirectory on the incoming message |  |
| Filename | String with length 0-256 | File to read from the SFTP server, if left empty the value will be taken from sftptextreader.filename on the incoming message | file |
| Target Property | String with length 1-64 | Property that the file contents will be written to | data |
| Encoding | Select from the list of encodings | The character encoding of the text in the file | Detect |
Credential
This module contains an option to select credentials to use in the module. All credentials supported by the module are presented in a drop-down.
Input
Any message.
Output
The same as the input, but the output will also have the contents of the text file added at Target Property and also the 'crosser' object added.
Example - Read Text File from SFTP server
# Settings:
Host="localhost"
Port=22
Remote Directory="upload"
Filename="example.txt"
Target Property="data"
# Incoming message:
{
"SomeKey": "SomeValue"
}
# Outgoing message:
{
"SomeKey": "SomeValue",
"data": "This is the contents of example.txt\n"
}
Example - Fetch Remote Directory and Filename from incoming message
# Settings:
Host="localhost"
Port=22
Remote Directory=
Filename=
Target Property="data"
# Incoming message:
{
"crosser": {
"success": true
},
"sftptextreader": {
"filename": "my_csv.csv",
"remotedirectory": "folder_1\sub_1"
}
}
# Outgoing message:
{
"crosser": {
"success": true
},
"data": "temp;pressure 123;456 789,012",
"sftptextreader": {
"filename": "my_csv.csv",
"remotedirectory": "folder_1\sub_1"
}
}
Search Documentation
Destinations
Files