Sync Excel files from Google Drive to file storage

Document/FileSales EnablementRecipe ToolsDeveloper ToolMarketing

What it does

When a new file arrives in a Google Drive folder, this automation downloads it and converts it to CSV format. The CSV is appended to a batch file organized by date in file storage.

Who it's for

Data and analytics teams who need to consolidate Excel exports from Google Drive into centralized file storage without manual conversion.

How teams use this

Consolidate daily Excel exports

Automatically pull Excel files from Google Drive each day, convert them to CSV, and append to a single batch file in file storage. The team gets a unified data source without manual steps.

Route exports by department folder

Monitor separate Google Drive folders for each department and route their Excel files to department-specific batch files in file storage. Only the folder path changes per department.

Filter files by name pattern

Add a condition to process only files that match a specific naming pattern, such as those starting with a date or containing a keyword. This ensures only relevant exports are converted and stored.

How it works

  1. Detect new file in Google Drive. Monitor a Google Drive folder hierarchy for new files. When one arrives, check if it is a folder or a file to process only the files.
  2. Download the file contents. Retrieve the full file from Google Drive and get the parent folder details so it can be converted and organized in file storage by date.
  3. Convert Excel to CSV format. Run Python code to transform the Excel file into CSV with a header row, ready for batch storage and analysis by the team.
  4. Append to the batch file. Search file storage for today's batch file. If none exists, create it. Append the converted CSV data to keep all daily exports in one place.