Send REST requests for each CSV row from on-prem files
Document/FileDeveloper ToolAPI IntegrationRecipe ToolsData Parser
What it does
When a new CSV file arrives in an on-prem folder, this automation reads each row and sends a REST request for that data. It collects the responses, composes them into a new CSV, and uploads the file back to the folder.
Who it's for
Operations teams who need to process batch data from on-prem files through a REST endpoint without manual intervention.
Apps used
- On-prem files
- HTTP
- Workato List
- CSV tools by Workato
How teams use this
Batch sync data to a REST API
Load customer records from a CSV file, send each one to a REST endpoint, and store the API responses in a new file. The team gets a complete audit trail of what was sent and what came back.
Validate records through an external service
Process a CSV of addresses or identifiers by sending each row to a validation API, then download the enriched results. No manual API calls or spreadsheet updates are needed.
Route data to different endpoints by row type
Add a condition to check a column in each CSV row and send it to different REST endpoints based on that value. Only rows matching a filter are sent to a specific endpoint.
Retry failed requests and log outcomes
Include error handling so rows that fail the REST request are retried or marked in the response CSV. The final file shows which rows succeeded and which need manual review.
How it works
- Detect a new CSV file. Monitor an on-prem folder and trigger this automation when a new CSV file arrives in that location.
- Parse each CSV row. Read the CSV file with Csv Parser and iterate through each row so the data can be processed one line at a time.
- Send REST request per row. For each CSV row, send a REST request with that row's data to the target endpoint using Rest and capture the response.
- Compose results into CSV. Collect all REST responses and format them into a new CSV file with Csv Parser using the same structure as the original.
- Upload the results file. Save the new CSV file back to the on-prem folder so the results are available for download or further processing.