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 an SFTP server, which contains key-value pairs representing the data to update the specified table in the MySQL database.
This template assumes that the following prerequisites are in place:
This template only performs updates into the MySQL database specified in the Process Variables.
The input JSON file will contain the data to be updated in key-value format and must not contain nested elements. The field names in JSON file must correspond to MySQL table column names.
Example JSON data
[
{
"email": "dave121@example.com",
"zipcode": "123451",
"firstname": "Fred",
"title": "Mr"
},
{
"phone": "91234567891",
"firstname": "Dave",
"lastname": "Twenty-One",
"title": "Mr"
},
{
"address2": " #1909",
"country": "CAN",
"state": "CL"
....
....
]
This template does not handle transient errors separately, however the connections to the SFTP server and MySQL database are retried three time before failing.
The template does not handle any SQL errors that may occur - these will be thrown as exceptions.
FilePath | Path to Json data input file. |
FileName | Name of Json data input file. |
ServerAddress | SFTP Server Address. |
ServerUser | SFTP Server User. |
ServerPassword 🗝 | SFTP Server User's Password. |
RowIndentifier | Column name in dthe database that identifies individual rows. |
MySQLConnectionString 🗝 | Connection string for MySQL database. |
TableName | Name of table to be updated. |