Sync consignment XML from SFTP to backend system
File TransferData ParserMarketingRecipe Tools
What it does
When a new file arrives on the SFTP server matching TFG_Demo_XML1_, this automation downloads it every 5 minutes. The XML Parser converts the document to JSON, extracts the needed fields, and sends them to the backend system in a standardized format via a single REST call.
Who it's for
Operations teams who need to ingest consignment data from SFTP into a backend system without manual file handling.
How teams use this
Ingest consignment data without manual steps
Files matching the naming pattern are automatically downloaded, parsed, and sent to the backend every 5 minutes. The team no longer needs to manually transfer or transform consignment XML files.
Catch parsing errors and notify stakeholders
If XML parsing or the backend call fails, this automation catches the error and sends an email to stakeholders with details so issues are caught early and the job stops with a custom error message.
Support multiple consignment file patterns
Extend the automation to watch for additional filename patterns beyond TFG_Demo_XML1_ so different consignment sources can feed the same backend pipeline. Only the filename condition needs to change.
How it works
- Monitor SFTP for new consignment files. Every 5 minutes, check the SFTP server directory for new or updated files that start with TFG_Demo_XML1_ so incoming consignment data is detected promptly.
- Download the XML document from SFTP. Retrieve the XML file from the SFTP server directory so the Xml Parser can transform it into JSON and extract the required fields for the backend.
- Parse XML and extract fields. Convert the XML document to JSON format and map the needed fields into a standardized structure that the backend system expects for consignment records.
- Send extracted data to backend. Call the TFG Backend System with the extracted fields in a single REST request so the consignment data is ingested into the backend without delays.
- Archive the processed file. Move or rename the file on the SFTP server to mark it as processed and keep the directory organized for future runs.