Sync Google Drive employee file to Snowflake daily

Recipe ToolsMarketingWorkatoDocument/FileSales EnablementData ParserUtilitiesDatabase

What it does

When the clock triggers at 1 AM each day, this automation downloads a new employee file from Google Drive and parses the CSV data. It validates that first name, last name, and department are present, then upserts the batch of employee records into Snowflake's New Employees table.

Who it's for

HR teams who need to keep employee data synchronized between Google Drive and Snowflake without manual uploads.

How teams use this

Automate daily employee data sync

Run the sync every morning at 1 AM so employee records in Snowflake stay current with Google Drive uploads. The team no longer needs to manually transfer files or check for updates.

Validate required fields before upload

Only records with first name, last name, and department are sent to Snowflake, so incomplete employee data never reaches the warehouse. This keeps data quality high without extra manual review.

Add email validation to the sync

Extend the validation condition to also require email address so only complete employee profiles are upserted to Snowflake. This ensures all contact information is present before records are loaded.

Sync to a different Snowflake table

Point this automation to a staging table instead of the production New Employees table so data can be reviewed before it goes live. The entire flow stays the same and only the target table changes.

How it works

  1. Run daily at 1 AM. This automation runs every day at 1 AM, one hour after the new employee file is uploaded to Google Drive.
  2. Download the new employee file. Retrieve the file contents from Google Drive so the employee data can be processed and validated before upload to Snowflake.
  3. Parse the CSV data. Extract employee information from the CSV file and convert it into a structured list format so validation and upload can proceed.
  4. Upsert employee records to Snowflake. Upload the batch of employee records into Snowflake's Public.New Employees table only when first name, last name, and department are all present.