Export Lookup table rows to CSV via REST
Recipe ToolsDeveloper ToolAPI IntegrationMarketing
What it does
When someone calls this automation via a function, it retrieves rows from the Lookup table through an HTTP request. The rows are converted to CSV format and returned to the caller.
Who it's for
Data and analytics teams who need to export Lookup table data as CSV without manual extraction.
How teams use this
Export all Lookup table data regularly
Call this automation on a schedule to pull all Lookup table rows and convert them to CSV for archival or reporting. The same steps run each time without manual intervention.
Embed CSV export in another workflow
Invoke this function from a different automation so Lookup table data becomes part of a larger process. Only the calling workflow changes, not this one.
Filter rows before CSV conversion
Add a condition after the REST request to include only rows matching specific criteria before the CSV is built. This requires a filter step between the fetch and the code execution.
How it works
- Call the export function. Invoke this automation as a function call to start the Lookup table export process in real time.
- List Lookup table rows via REST. Retrieve rows from the Lookup table through an REST request, repeating the call while results remain until all rows are fetched and stored in a variable.
- Convert rows to CSV format. Execute Ruby code to transform the collected Lookup table rows into a CSV-formatted string for download or storage.
- Return the CSV result. Send the formatted CSV back to the caller so they receive the complete exported data.