Export lookup table data to CSV on a schedule
Recipe ToolsDeveloper ToolAPI Integration
What it does
When a scheduled time arrives, this automation fetches lookup table metadata and all pages of data from a REST endpoint. It combines the data with headers into a CSV file and emails it as an attachment.
Who it's for
Data and analytics teams who need to export lookup tables on a schedule without manual downloads.
Apps used
How teams use this
Export lookup tables on a daily schedule
Run this automation every morning to export the latest lookup table data and email it to the team. The schedule ensures data is always current without anyone having to remember to download it manually.
Send exports to different teams weekly
Set up separate instances of this automation for different lookup tables and recipient email addresses. Each team gets their own scheduled export tailored to their needs.
Filter lookup table rows before export
Add a condition to the data collection step so only rows matching specific criteria are included in the CSV. This lets someone export a subset of the lookup table based on status, date, or other fields.
How it works
- Run on a specified interval. This automation starts at the date and time someone chooses, such as daily or weekly, and fetches the lookup table data.
- Fetch lookup table metadata via REST. Call the REST endpoint to retrieve lookup table metadata, including the total number of pages and column headers needed for the CSV output.
- Loop through pages and collect data. Iterate through each page of lookup table data using the page count from metadata, accumulating all rows into a collection for the CSV.
- Combine headers and rows into CSV. Merge the column headers from metadata with all collected data rows to create a complete CSV file with proper formatting.
- Send CSV file via email. Email the formatted CSV file as an attachment so someone receives the lookup table data in their inbox on schedule.