Sync Google Drive files to Snowflake on schedule

Recipe ToolsMarketingDocument/FileSales EnablementData ParserUtilitiesDatabaseDeveloper ToolAPI Integration

What it does

When a scheduled time arrives each day, this automation downloads a file from Google Drive and parses it. The batch of rows is then upserted into Snowflake, and someone can monitor the job report to see what was processed.

Who it's for

Data and analytics teams who need to load Google Drive files into Snowflake on a daily cadence without manual intervention.

How teams use this

Load daily receipts into the data warehouse

Download the Bank of America receipts file from Google Drive each morning and upsert it into Snowflake so the finance team has fresh data for reporting. No manual steps are needed.

Archive processed files for compliance

After upserting rows into Snowflake, send the file to Amazon S3 so processed receipts are retained for audit and compliance requirements. The schedule and Snowflake load stay the same.

Add monitoring system notification via HTTP

Include an HTTP request step to notify an external monitoring system when the daily load completes so operations teams can track job status. Set the endpoint and payload to match the monitoring tool.

How it works

  1. Start on daily schedule. At 04:00 AM each day, Clock triggers this automation to download the file from Google Drive.
  2. Download file from Google Drive. Retrieve the file contents from the specified Google Drive location so the data is ready to parse.
  3. Parse the CSV file. Convert the file contents into structured rows so they can be loaded into Snowflake.
  4. Upsert rows into Snowflake. Insert or update the batch of rows in the AUDIT.BOFA_RECEIPTS_STATUS table in Snowflake so the data stays current.
  5. Archive file to Amazon S3. Upload the processed file into the S3 bucket for backup and audit trail purposes.