Sync FTP files to Salesforce via XML parsing

File TransferData ParserMarketingUtilitiesRecipe ToolsCRM

What it does

When a new or updated file lands in an FTP directory, this automation downloads and parses the content. It creates Salesforce records in batches so product data stays synchronized across both systems.

Who it's for

Data and analytics teams who need to move product data from FTP to Salesforce without manual file handling.

How teams use this

Automate daily product catalog updates

Load product data from FTP into Salesforce each day without manual downloads or uploads. The XML parsing handles format conversion so the team only monitors the job report for issues.

Sync certification dates to Salesforce records

Extract certification end dates from XML files and populate them on Salesforce product records. Only records with valid dates are created so incomplete data does not clutter the system.

Route product batches by category

Modify the batch loop to filter products by type before creating Salesforce records. This lets different teams receive only the product data relevant to their work.

Add CSV file support alongside XML

Include a CSV parser step so the automation handles both XML and CSV files from the FTP directory. The conditional logic checks file type and routes to the correct parser.

How it works

  1. Monitor FTP directory for file changes. Watch an FTP/FTPS server directory for new or updated files so the automation runs each time data arrives.
  2. Download file from FTP server. Retrieve the full file contents from the FTP/FTPS directory so the data is ready to parse and process.
  3. Parse XML into structured data. Extract XML content into a format the automation can loop through, organizing products and batches for Salesforce.
  4. Create Salesforce records in batches. Loop through each batch and item to create product records in Salesforce, with certification dates checked so only valid records are added.
  5. Log results to job report. Record the outcome of the sync in the job report so the team can track which files were processed and any errors that occurred.