Sync OneDrive planning file to Snowflake
Recipe ToolsMarketingDocument/FileDatabase
What it does
When the clock triggers every 5 minutes, this automation lists files in OneDrive and checks for the planning spreadsheet. If found, it reads the Excel data and syncs the rows to Snowflake so the planning sheet stays current in the data warehouse.
Who it's for
Finance teams who need planning data from Excel automatically updated in Snowflake without manual uploads.
Apps used
How teams use this
Keep planning data in sync hourly
Run this automation every 5 minutes so Snowflake always has the latest planning numbers from Excel. The team sees fresh data in dashboards without waiting for manual uploads.
Alert when the file is missing
Add a Slack notification step so someone knows right away if the planning file is not found in OneDrive. That way gaps in the data are caught before reports run.
Sync multiple planning files
Extend the condition to check for more than one file name so different planning sheets can feed Snowflake in the same run. Only the file names in the condition need to change.
Archive synced files after upload
Add a step to move the Excel file to an archive folder after the sync completes so the OneDrive folder stays clean. The automation stays on schedule and files are organized by date.
How it works
- Check every 5 minutes. This automation runs on a schedule every 5 minutes to look for the planning file.
- List files in OneDrive. Search the OneDrive folder for all files and folders to find the planning spreadsheet named OTB Plans Upload 1.31.xlsx.
- Read the planning file. When the file is found, get the rows from the Excel table so the data is ready to send to Snowflake for storage.
- Sync rows to Snowflake. Write the Excel rows to Snowflake so the planning data is available in the warehouse for analysis and reporting.
- Log the sync result. Record whether the file was found and synced so the team can track when updates happened.