Sync Salesforce opportunities to on-prem files
CRMMarketingData ParserUtilitiesDocument/File
What it does
When a scheduled search runs in Salesforce using a SOQL query, this automation finds opportunities and branches based on results. It either uploads a new CSV to an on-prem folder or downloads an existing file, refreshes it, and uploads the replacement.
Who it's for
Operations teams who need to keep on-prem files in sync with Salesforce opportunities on a schedule.
How teams use this
Sync new opportunities to on-prem storage
Run the scheduled search to find opportunities that meet your SOQL criteria, convert them to CSV, and upload to on-prem storage. The file stays current without manual work.
Route opportunities by stage to different folders
Change the SOQL WHERE clause to filter by opportunity stage, then upload each result set to a different on-prem folder. The same automation handles multiple stages.
Add a notification when sync completes
Include a Slack message or email step after the file upload so the team knows the on-prem sync finished. Set a condition to only notify on success.
How it works
- Search opportunities on a schedule. Run a scheduled Salesforce search using a SOQL query with a WHERE clause to find opportunities that match your criteria in batches.
- Branch on batch results. Check if the first batch from Salesforce meets your condition. If yes, compose the CSV. If no, download the existing on-prem file instead.
- Compose CSV from opportunities. Convert the opportunity batch into CSV format using Csv Parser so the data can be stored as a file on the on-prem system.
- Upload CSV to on-prem folder. Upload the new CSV file to Onprem Files to keep the opportunities data synchronized with your local system and replace the old file.
- Download, refresh, and upload file. When the batch does not match, download the existing on-prem file from Onprem Files, compose a new CSV, and upload it to replace the old one.