Sync OneDrive files to a job report every 5 minutes
Recipe ToolsMarketingDocument/File
What it does
When a scheduled trigger fires every 5 minutes, this automation searches Microsoft OneDrive for files. The result is logged to a job report, and if an error occurs during the search, the automation stops without retrying.
Who it's for
Operations teams who monitor OneDrive file activity on a regular schedule without manual checks.
How teams use this
Monitor OneDrive files on schedule
Run a file search every 5 minutes and log each result to track activity. The team reviews the job report to confirm the automation is working and files are being monitored.
Stop on error without retry
When an error occurs during the OneDrive search, the automation stops and logs the failure to the job report. Nothing else runs after the error is found.
Search a different OneDrive folder
Change the search criteria to monitor a different folder or file type in Microsoft OneDrive. The schedule and logging stay the same for the new folder.
Add a Slack alert on search failure
Include a Slack notification step so someone sees the error right away when the OneDrive search fails. The job report still logs the failure for the record.
How it works
- Run every 5 minutes. This automation starts on a schedule, running every 5 minutes throughout the day so OneDrive is checked regularly.
- Search files in Microsoft OneDrive. Search Microsoft OneDrive for files matching the specified criteria so the automation can monitor what exists in the folder.
- Log the result to job report. Record the search outcome in the job report so someone can review what was found or if an error stopped the run.