Import CSV Data from Google Drive to Lookup Table

Recipe ToolsMarketingDocument/FileSales EnablementData ParserUtilities

What it does

When the clock triggers on a 5-minute schedule, this automation downloads a CSV file from Google Drive and parses it into rows. Each row is then added to a lookup table so the data stays current.

Who it's for

Operations teams who need to sync CSV data from Google Drive into a lookup table on a regular schedule.

How teams use this

Keep labor hours current automatically

Download and parse a CSV from Google Drive every 5 minutes and load it into the lookup table. The team always has fresh labor data without manual uploads or intervention.

Sync payroll data to another system

Point this automation to a different Google Drive folder and lookup table so payroll can import labor hours into their own system. The same flow works for a new team without changes.

Filter rows by department before import

Add a condition after parsing so only rows matching a specific department are added to the lookup table. This requires a department filter to keep the table focused on relevant labor hours.

How it works

  1. Run on a 5-minute schedule. The automation starts every 5 minutes to keep the lookup table synchronized with the latest CSV file from Google Drive.
  2. Clear the lookup table. Truncate all entries from the Weigand Labor hours export lookup table so old data does not remain before new rows are added.
  3. Download the CSV file. Download file contents from Google Drive in batch mode to retrieve the latest labor hours data for parsing and import.
  4. Parse the CSV into rows. Parse the CSV file using Csv Parser to break it into individual rows so each line can be processed and added to the lookup table.
  5. Add each row to the table. For each parsed row, add an entry to the Weigand Labor hours export lookup table so all data is imported and available.