Sync CSV files with Ruby deduplication

Recipe ToolsData ParserDeveloper Tool

What it does

When a scheduled interval triggers, this automation parses CSV files and runs Ruby code to append unique rows. Someone can merge multiple CSV sources into one deduplicated dataset on a schedule.

Who it's for

Data and analytics teams who need to combine CSV files and remove duplicates without manual work.

How teams use this

Merge daily sales data from multiple sources

Combine CSV exports from different sales systems each morning and deduplicate by order ID. The merged file is ready for analytics without manual consolidation.

Consolidate customer records across regions

Run the merge weekly to combine customer CSVs from each region and remove duplicate entries by email. A single clean dataset replaces separate regional files.

Filter rows by a custom condition before merge

Extend the Ruby code to check a condition, such as only appending rows where a status field matches a value. This keeps the merged file focused on relevant records.

How it works

  1. Run on a scheduled interval. This automation runs on the schedule someone sets, such as daily or weekly, to merge CSV files at a consistent time.
  2. Parse the first CSV file. Csv Parser reads and structures the first CSV file so the data is ready for the merge and deduplication logic.
  3. Parse the second CSV file. Csv Parser reads and structures the second CSV file so both datasets are formatted consistently for the merge.
  4. Execute Ruby code to merge. Workato Custom Code runs Ruby logic that appends unique rows from each CSV and removes duplicates so the final dataset has no repeated records.