Sync employee schedules from SFTP to Recipe Function

Recipe ToolsFile TransferData ParserMarketingUtilities

What it does

When someone calls this recipe function, it processes a list of employee schedule records in real time. The automation retrieves files from an SFTP server, manages temporary and final file states, and updates variables to track pagination.

Who it's for

Operations teams who need to sync legacy employee schedule data from SFTP without manual file handling.

How teams use this

Migrate legacy schedules without downtime

Process employee schedule batches from SFTP in real time while the system tracks file state. The team keeps using existing tools and the data moves automatically.

Append schedules across multiple batches

When the temp file exists, append new schedule records to it and update the pagination flag. This handles large datasets that need to be split across multiple calls.

Clean up old schedule files automatically

Delete the end file from the SFTP server once it has been processed so old schedule data does not accumulate. Only the current batch remains on the server.

How it works

  1. Call the schedule sync function. A function call starts this automation in real time with a list of employee schedule records to process.
  2. Retrieve and check files from SFTP server. Get file information from the SFTP server to locate the end file and temp file that contain schedule data for processing.
  3. Parse schedules and manage file state. Create pagination variables, delete the end file if present, or append new schedule records to the temp file and update the is_first_page flag.