Sync CSV file names to Google Drive folder structure
Recipe ToolsMarketingData ParserUtilitiesDocument/FileSales Enablement
What it does
When the clock triggers every 5 minutes, this automation parses a CSV file and searches Google Drive for matching folder and file names. It compares the records to keep the Drive structure aligned with the spreadsheet.
Who it's for
Operations teams who maintain file organization across Google Drive and need to verify names match a source CSV.
How teams use this
Keep spreadsheet and Drive in sync
Run this automation every 5 minutes to catch any file name changes or missing folders in Google Drive before they cause problems downstream. The team stays confident the source of truth matches the storage.
Audit file organization across teams
Point this automation at a shared Google Drive folder used by multiple teams so discrepancies between the CSV master list and actual files surface quickly. No manual spot-checks needed.
Flag files missing from the CSV
Add a condition to only report files found in Google Drive that do not appear in the CSV, so orphaned or undocumented files are caught. Include a notification step to alert the team.
How it works
- Run on a 5-minute schedule. This automation starts every 5 minutes so the CSV and Google Drive stay in sync throughout the day.
- Parse the CSV file. Csv Parser extracts the file names and IDs from the CSV so they can be compared against Google Drive records.
- Search Google Drive folders. Google Drive finds all folders and loops through each one to check if the name matches an entry in the CSV in lowercase.
- Search for files within each folder. For each folder found, Google Drive searches for files inside it and compares the file name to the CSV records in lowercase.
- Verify file IDs are present. Google Drive checks that each file has an ID matching the CSV so no records are missing or orphaned from the source list.