Sync two CSV files into one using variables

Recipe ToolsMarketingData ParserUtilities

What it does

Every 5 minutes in Clock, this automation parses two CSV files and accumulates the items into a single list. The combined data is then composed into one CSV file so someone has a unified dataset.

Who it's for

Data and analytics teams who need to merge multiple CSV sources without manual consolidation.

How teams use this

Consolidate daily sales and inventory data

Merge a sales CSV and an inventory CSV every 5 minutes so the team always has current combined data. The automation runs on schedule with no manual steps needed.

Combine customer and transaction records

Parse customer data from one CSV and transaction data from another, then accumulate both into a single file. This gives the team a complete view without opening multiple files.

Add a third CSV source to the merge

Include an additional parse step for a third CSV file and add its items to the accumulation list before composing the final output. Only the parsing and accumulation steps need to expand.

Filter merged data by date range

Add a condition after accumulation to only include rows from the last 7 days in the composed CSV. The team gets a focused dataset without extra historical records.

How it works

  1. Run every 5 minutes. The automation starts on a 5-minute schedule so the CSV files are synced regularly throughout the day.
  2. Parse the first CSV file. Csv Parser reads and extracts all rows and columns from the first CSV file into a structured format for processing.
  3. Parse the second CSV file. Csv Parser reads and extracts all rows and columns from the second CSV file in the same structured format.
  4. Combine items into one list. Accumulate all parsed items from both CSV files into a single variable list so they can be merged together.
  5. Compose the merged CSV. Generate a new CSV file from the combined list and save it so someone has one unified file with all data.