Sync Salesforce products to external site via CSV
Recipe ToolsMarketingCRMData ParserUtilitiesDocument/File
What it does
When a scheduled time arrives, this automation queries Salesforce for product records. It parses the CSV data, organizes items into product and update lists, and stores the file in Dropbox so the external site stays current.
Who it's for
Sales operations teams who need to keep an external site synchronized with Salesforce product data on a schedule.
How teams use this
Keep product catalog in sync daily
Run this automation every morning to export Salesforce products and update the external site catalog. The team sees fresh data without manual work.
Sync only changed products
Filter the Salesforce query to return only products modified since the last sync, then export only those records to reduce file size and processing time.
Alert the team on large updates
Check the record count and notify a Slack channel when more than a threshold number of products are synced, so the team knows a major update occurred.
How it works
- Wait for the scheduled time. At the specified interval, Clock triggers this automation and checks if the current time has arrived to start the sync.
- Query Salesforce for products. Search Salesforce using a SOQL query to retrieve all KC_Product__cs records. If records are found, the automation continues to the next step.
- Parse and organize the CSV data. Parse the CSV file and loop through each line to build two lists: one for products and one for updates to track changes.
- Store the file in Dropbox. Save the organized CSV file to Dropbox so the external site can access the latest product data without manual intervention.