Sync on-prem files to lookup table every 5 minutes

Recipe ToolsMarketingDocument/FileData ParserUtilities

What it does

Every 5 minutes, this automation downloads an on-prem file and parses it as CSV. For each row, it searches a lookup table and either adds or updates the entry so the data stays in sync.

Who it's for

Data and analytics teams who need to keep a lookup table current with on-prem file changes without manual updates.

How teams use this

Keep user data current from on-prem

Sync employee records from an on-prem file to a lookup table every 5 minutes so downstream workflows always reference the latest data without manual intervention.

Extend sync to include validation

Add a condition to check that required fields are present before adding or updating an entry. Only rows that pass validation are synced to the lookup table.

Retarget sync for a different file source

Point this automation to a different on-prem file location so another team can use the same sync pattern for their own data without changing the logic.

How it works

  1. Run every 5 minutes. The automation runs on a 5-minute schedule to check for new or changed data in the on-prem file.
  2. Download the on-prem file. Retrieve the file from the on-prem location so its contents can be parsed and compared to the lookup table.
  3. Parse CSV and loop rows. Convert the file into structured data and repeat the next steps for every row to check and sync each entry.
  4. Search and sync each entry. For each row, search the Lookup Table by uuid. If the entry does not exist, add it. If it exists, update it with the current values.