Sync Salesforce products to FTP on schedule
Recipe ToolsMarketingCRMData ParserUtilitiesFile Transfer
What it does
When a scheduled time arrives, this automation queries Salesforce for product records. The records are parsed into CSV format and uploaded to FTP, then someone receives a job report with the sync status and record count.
Who it's for
Operations teams who need to keep an FTP site updated with Salesforce product data on a regular cadence.
How teams use this
Keep FTP product catalog current
Run the sync every night so the FTP site always has the latest Salesforce products. The team downloads the file each morning without manual steps.
Sync only new or changed products
Filter the SOQL query to return only records updated since the last sync, so the FTP file contains only deltas. This reduces file size and processing time.
Alert the team if sync fails
Add a notification step that sends a message when the record count is zero or the upload fails. Someone is notified immediately instead of discovering the issue later.
Route syncs to multiple FTP sites
Duplicate the upload step for a second FTP destination so products reach both locations on the same schedule. No changes to the query or parsing logic are needed.
How it works
- Run on a scheduled interval. At the specified time each day, week, or month, this automation starts and checks if the current time has passed the start time.
- Search Salesforce for products. Query Salesforce using SOQL to retrieve all KC_Product__c records in bulk. If no records are found, the automation stops and logs the result.
- Parse and organize the data. Convert the Salesforce records into CSV format, then create two lists: one for products and one for updates to track what will be sent to FTP.
- Upload the file to FTP site. Send the parsed CSV file to the FTP site so the product data is available for downstream systems or manual review by the team.
- Log the sync result. Record the number of records processed and the sync status in a job report so someone can verify the automation ran successfully.