Export JSON files to CSV on a schedule
Recipe ToolsMarketingDocument/FileSales EnablementData ParserUtilitiesDeveloper Tool
What it does
When the clock triggers every 5 minutes, this automation searches Google Drive for JSON files and downloads them. Each file is converted to CSV format and saved back to Google Drive so someone can access the data without manual work.
Who it's for
Data and analytics teams who need JSON data in CSV format on a regular schedule without manual conversion.
How teams use this
Automate daily JSON to CSV exports
Run the conversion every 5 minutes so JSON data in Google Drive is always available as CSV without someone manually converting files. The team accesses fresh CSV files whenever needed.
Feed CSV data to a reporting tool
Save converted CSV files to a specific Google Drive folder that syncs with a business intelligence platform. Add a folder path so the reporting tool pulls fresh data automatically from the CSV exports.
Convert compressed JSON archives
Include a step to uncompress JSON files before conversion so archived data can be processed. The automation handles both compressed and uncompressed JSON in the same run.
Route CSV exports to different folders
Send converted CSV files to different Google Drive folders based on the source file name or type. The team organizes exports by category without manual sorting.
How it works
- Check for files every 5 minutes. This automation runs on a schedule every 5 minutes to look for new JSON files in Google Drive.
- Search Google Drive for JSON files. Search Google Drive for JSON files that need to be converted to CSV format so they can be processed.
- Download each JSON file. Download the contents of each JSON file found in Google Drive so the data can be transformed into CSV format.
- Convert JSON to CSV. Execute JavaScript code to transform the JSON data into CSV format with proper column headers and row structure for each file.
- Save CSV files to Google Drive. Upload each converted CSV file back to Google Drive so the team can download and use the data in their workflows.