Sync user files from Sftp on schedule

Recipe ToolsMarketingFile TransferDeveloper Tool

What it does

When a scheduled time arrives, this automation searches job history and lists files in the Sftp secondary server. For each file, it checks the job report to see if the file was already processed, and stops the job if it finds a match.

Who it's for

Operations teams who need to process user files from Sftp without manually checking which ones have already run.

How teams use this

Prevent duplicate file processing

Run this automation on a schedule to check each Sftp file against the job history before processing. Files that already ran are skipped so no duplicate work happens.

Monitor files from a different source

Point this automation at a different Sftp folder by changing the file list step. The same file-checking logic applies to any folder you need to monitor.

Add email alert for unprocessed files

Include a step that sends an email when files remain unprocessed after the check. Set a condition to only alert if the count exceeds a threshold you define.

How it works

  1. Start on a specified interval. This automation runs at the scheduled time you set, like daily or weekly, so files are checked on a consistent schedule.
  2. Search the job history. Search the job history to find records of files that have already been processed so duplicates can be identified and skipped.
  3. List files in Sftp secondary. Retrieve the list of files waiting in the Sftp secondary server folder so each one can be checked against the job history.
  4. Check if file was processed. For each file, search the job report to see if a matching entry exists. Stop the job if the file has already been processed.