SFTP

Frends templates for SFTP. SFTP is a standard network protocol used for transferring files over a network.
This Process will read a JSON file from the SFTP server and insert data from it into the Microsoft SQL database table.
This template assumes that the following prerequisites are in place:
This template only performs INSERT queries into the database table specified in the Process Variables.
Example JSON data
[
{
"email": "dave121@example.com",
"address1": "91441 River Drive",
"address2": " #1901",
"country": "USA",
"state": "CA",
"city": "Rivertown",
"zipcode": "123451",
"phone": "1234567891",
"firstname": "Dave",
"lastname": "Twenty-One",
"title": "Mr"
},
{
"email": "dave221@example.com",
"address1": "91442 River Drive",
"address2": " #1902",
"country": "USA",
"state": "CA",
"city": "Rivertown",
"zipcode": "123452",
"phone": "1234567892",
"firstname": "Dave221",
"lastname": "Twenty-One",
"title": "Mr"
}
]
This template does not handle transient errors separately, however the connection to the SFTP server and Microsoft SQL Server are retried three time before failing.
The template does not handle any SQL errors that may occur - these errors will be thrown as exceptions.
FilePath | Path for the input Json file. |
FileName | Name of the input Json file. |
ServerAddress | SFTP server address where input Json file is located. |
ServerUser | SFTP server user. |
ServerPassword 🗝 | SFTP user's password. |
TableName | Database table into which the data will be inserted. |
ConnectionString 🗝 | Connection string for the Microsoft SQL database. |