Skip to main content

Export Data to a CSV File

Data Sync makes it very quick and easy to export data from Salesforce into a new CSV file.

The guide below covers how to use Data Sync to create a new CSV file and export the account data from Salesforce. Although this guide connects to the account object you can connect to any of the available objects within Salesforce and export the data as needed.

Connect to Salesforce

To get started connect to the Salesforce object you want to export data from. This guide assumes you have already created a connection to Salesforce and saved it to the connection library. If you have not already done this please see our Salesforce Connection Documentation to learn how to connect.

From the connection library window you can expand the tree and either drag and drop the object you wish to connect to into the source or the target windows, or you can right click and choose either Connect to Source or Connect to Target.

In this guide we need Salesforce as our source so we select Connect to Source (A)

Connection Library

Configure the Schema

Now add the columns you want to export to the schema map and make sure to select a key column. Usually this is an ID column that can be used to identify each record.

Schema Map

Your new CSV file is going to use the schema map of the source columns as the template, so the column names will match the names from Salesforce.

Create the CSV file

Data Sync has a built in feature to create a CSV file based off the source columns added to the schema map.

To create the CSV open the tools menu and select Create CSV File.

Tools Menu

This will open a window where you can configure the CSV file properties such as the separator to be used and the text encoding.

CSV Properties

Then select a location in the file explorer to save the file to and enter in a file name. This will load the new empty CSV into the target window and the columns should map automatically into the schema map.

Compare & Sync

Once you have checked your schema configuration and ensured a key column has been selected, click the Run Compare button in the toolbar. This will open the compare results where you can preview the changes to be made.

Compare Results

To finish click Synchronise and then Start to begin the sync. Your Salesforce data has now been added to the CSV file.