Export Salesforce opportunities to SFTP as CSV

CRMMarketingSalesUtilities

What it does

When a scheduled search runs in Salesforce using a SOQL query, this automation finds opportunities and composes a CSV file. The file uploads to the SFTP server for download or integration into other systems.

Who it's for

Sales operations teams who need to sync Salesforce opportunities to SFTP on a schedule without manual exports.

How teams use this

Sync opportunities to a data warehouse

Export opportunities on a daily schedule to SFTP so a data warehouse can ingest them. The CSV format matches the warehouse schema and no manual export is needed.

Archive closed opportunities monthly

Run the search once a month to find all closed opportunities and upload them to SFTP for long-term storage. Only the schedule and SOQL query change.

Filter opportunities by region before export

Add a condition to the SOQL WHERE clause to only include opportunities from a specific region. The CSV and SFTP upload steps stay the same and only the search criteria changes.

How it works

  1. Search opportunities by SOQL query. A scheduled search runs in Salesforce to find opportunities matching the SOQL WHERE clause. Results are batched and passed to the next step for processing.
  2. Compose the CSV file. Transform the opportunity records into CSV format with columns for each field needed by the downstream system or report.
  3. Upload file to SFTP server. Send the CSV file to the SFTP server so it is available for retrieval, archival, or ingestion by other tools and systems.