Export Google Drive file to CSV on schedule
Recipe ToolsMarketingDocument/FileSales EnablementData ParserUtilities
What it does
When the clock triggers every 5 minutes, this automation copies a file in Google Drive and exports it to CSV. Someone receives an email with the parsed results, or the job stops if an error occurs.
Who it's for
Data and analytics teams who need to extract and parse Google Drive files on a regular schedule.
How teams use this
Extract data from Google Drive hourly
Run the export and parse on an hourly schedule instead of every 5 minutes to reduce processing load. The steps stay the same and only the clock interval changes.
Route parsed data to a database
Add a step after CSV parsing to send the structured data to a database or data warehouse. Include a condition to check that the parse succeeded before routing.
Notify multiple teams on completion
Send the email to a distribution list or post results to a Slack channel so both data and analytics and finance teams see the outcome. The export and parse logic does not change.
Filter rows before sending results
Add a condition after parsing to only include rows that meet specific criteria, such as a date range or status value. This narrows the email results to what matters most.
How it works
- Trigger every 5 minutes. The automation runs on a 5-minute interval to check for updates and process the file.
- Copy, export, and clean up the file. Copy the file in Google Drive, export it to CSV format, and delete the temporary copy so the folder stays organized.
- Parse the CSV data in batch. Parse the exported CSV file in batch mode to structure the data for downstream systems and email delivery.
- Send results or stop on error. If no error is found, someone receives an email with the parsed data. If an error occurs, the job stops without retry.