Sync lookup table entries to CSV on schedule
Recipe ToolsMarketingData ParserUtilities
What it does
When a scheduled interval arrives, this automation searches a lookup table for entries and exports them to CSV. If entries exist, it clears both lookup tables so the next cycle starts fresh.
Who it's for
Data and analytics teams who need to archive lookup table data on a regular cadence without manual exports.
How teams use this
Archive lookup data on a daily schedule
Export lookup table entries to CSV every morning so historical data is preserved and tables reset for fresh transactions. The team can review exports in a shared folder.
Audit lookup table activity weekly
Run this automation every Friday to capture the week's lookup entries in CSV format for compliance review. Clearing tables ensures no stale data persists into the next week.
Add a notification when export completes
Include a step that sends a message to a channel or email when the CSV is ready, so the team knows the export succeeded. Only add the notification step after the CSV is composed.
How it works
- Wait for the scheduled interval. At the scheduled time, this automation wakes up and begins searching the lookup table for any entries that need to be exported to CSV.
- Search the lookup table for entries. Query the lookup table to find all stored entries. If the list contains data, the next steps export and clear it. If empty, the job stops.
- Compose and export to CSV. Convert the lookup table entries into a CSV file using the Csv Parser so the data is archived in a portable format for analysis or compliance.
- Clear both lookup tables. Truncate all entries from both lookup tables so they are empty and ready for the next scheduled run without stale data.