Sync employee collections to SFTP on schedule

Recipe ToolsDocument/FileDatabaseFile Transfer

What it does

When a scheduled time arrives, this automation downloads employee data files from an on-premises location. It creates lists from CSV files, queries the collections, and uploads the results to SFTP so someone can access the final file on the server.

Who it's for

HR teams who need to sync employee collections to SFTP on a regular schedule without manual file transfers.

How teams use this

Sync employee data weekly to SFTP

Run this automation every Monday morning to download employee files, create lists, query the collections, and upload the results to SFTP. The team accesses the file without manual steps.

Route collections to a different server

Change the SFTP destination to a different server or folder path. The automation stays the same and only the upload location changes.

Add a filter to exclude inactive employees

Add a condition to the list query so only active employees are included in the final file. The automation downloads and uploads the same way, but the query filters the results.

How it works

  1. Run on a specified interval. This automation starts at the scheduled time you set, such as daily or weekly, and begins downloading the employee data files.
  2. Download employee data files. Download the Employees, Retirees, and NoDaysAway CSV files from the on-premises location to prepare them for list creation.
  3. Create lists from CSV data. Create three lists named Employees, Retirees, and NoDaysAway from the downloaded CSV files so they can be queried together.
  4. Query the collections. Query the lists to produce a final result set based on the data in all three collections and prepare it for upload.
  5. Upload results to SFTP server. Upload the final file to the SFTP server so it is ready for download or further processing by the team.