Sync XML data to CSV on schedule
Recipe ToolsMarketingData ParserUtilities
What it does
When a schedule triggers every 5 minutes, this automation parses an XML document and loops through employee records. It accumulates items into a list, composes them into CSV format, and logs results to a job report.
Who it's for
Data and analytics teams who need to convert XML data into CSV format on a regular schedule.
Apps used
How teams use this
Convert XML feeds to CSV regularly
Run the XML to CSV conversion every 5 minutes to keep a CSV file synchronized with incoming XML data. The team gets fresh data without manual export steps.
Monitor batch processing in job logs
Each run logs its results so the team can track how many employee records were processed and identify any parsing errors. Only the logging destination changes based on team needs.
Filter employees by department before export
Add a condition to the loop so only employees from a specific department are included in the CSV batch. The automation processes all records but exports only those that match the filter.
How it works
- Start on a 5-minute schedule. The automation runs every 5 minutes using Clock to trigger the XML parsing and CSV generation workflow.
- Parse the XML document. Xml Parser extracts data from the XML document and prepares employee records for processing and transformation.
- Loop through each employee record. Iterate through every employee item found in the parsed XML data to prepare it for accumulation into the batch.
- Accumulate items and compose CSV. Csv Parser collects all employee items into a list and formats them as a CSV batch file ready for output or storage.
- Log results to job report. Record the completion status and details of the CSV generation to the job report so the team can track each run.