Sync SFTP file updates to Knack records
File TransferData ParserDatabase
What it does
When a new or updated file lands in a directory on the SFTP server, this automation downloads and parses it. For each row, it searches Knack for a matching inventory number and creates or updates the record accordingly.
Who it's for
Operations teams who need to keep Knack records in sync with files uploaded to an SFTP server.
Apps used
How teams use this
Sync inventory uploads to Knack daily
Upload a CSV to the SFTP directory each morning and have all new items and changes flow into Knack automatically. The team stops manual data entry and Knack stays current.
Route file syncs to a different Knack table
Point the automation at another Knack object so a second team can use the same SFTP directory and workflow. Only the target table changes.
Add validation before creating records
Include a condition to check that required fields like product code or cost are present before a record is created in Knack. Only valid rows are synced.
How it works
- Monitor SFTP directory for file changes. Watch a directory on the SFTP server for new or updated files. When one arrives, the automation starts and downloads the file contents to process.
- Parse the CSV file. The CSV Parser extracts rows from the downloaded file so each line can be processed individually in the next steps.
- Search Knack for the inventory number. For each row, search Knack to see if a record with that inventory number already exists in the database.
- Create or update the Knack record. If the inventory number is not found, create a new record in Knack. If it exists, update that record with the current row data.