Archive approved worklogs from Sharepoint every 15 minutes
Recipe ToolsMarketingDocument ManagementData ParserUtilities
What it does
When the clock triggers every 15 minutes, this automation lists files in a Sharepoint folder and downloads each one. It parses approved worklogs as CSV and JSON, then archives them so someone can monitor the results.
Who it's for
Finance teams who need to archive worklogs on a schedule without manual file handling.
How teams use this
Archive approved worklogs on schedule
Run the worklog archival every 15 minutes without manual intervention. Files are downloaded, parsed, and filtered by approval status automatically so the team stays current with processing.
Route files by approval outcome
Send approved worklogs to one Sharepoint folder and rejected ones to another. Add a condition after parsing to move files based on their approval status.
Alert on archival errors
Notify the finance team in Slack when the archival cycle encounters an error. Include the file name and error details so issues are caught quickly.
How it works
- Run every 15 minutes. This automation starts on a 15-minute schedule to check for new worklogs to archive.
- List files in the Sharepoint folder. Retrieve all files from the designated Sharepoint folder so each worklog can be downloaded and processed in the next steps.
- Download each worklog file. For each file found, download it from Sharepoint so the contents can be parsed and checked for approval status.
- Parse CSV and filter by approval. Parse the CSV content and filter for rows where the approval status equals Yes, then parse those rows as JSON for archival.
- Parse approved worklogs as JSON. Convert approved worklog data to JSON format so it is ready for archival to the processed folder based on the reprocessing outcome.