As part of our ‘Learn Salesforce Basics’ series, let’s start with how to extract data from Salesforce, which is a key piece of information to know, especially if you’re implementing Pardot yourself and you need to trigger the initial sync.
Why extract data from Salesforce?
To backup your data.
So you can integrate with a third-party system.
You need the data in spreadsheet format for reporting purposes.
An introduction to extracting data
Extracting data from Salesforce can either be a manual or automatic process and will always be in a CSV file format.
You have three options to choose from to correctly export your data and each has their own merits and balance between budget, complexity, and versatility. In the same way that you can walk into a hardware shop and see various tools suited to different tasks, some days you need a hammer, other days you need a sledgehammer.
Below are the three different ways you can go about exporting your data from Salesforce.
Your 3 options:
Use the free functionality within Salesforce or download free tools
Invest in paid tools for better efficiency and mass data handling
Build your own tools to export data exactly how you need to see and use it
Option 1: Salesforce functionality and free tools
This means using Open Source tools from Appexchange, or those provided by Salesforce built-in options. If you are working on a tight budget or don’t have a huge volume of records to export, this could be the best way for you to extract data.
Extract reports using Salesforce built-in functionality
This is the simplest option to create a report and then export the data as a CSV file. When viewing a report:
Click the ‘Export Details’ button
Choose ‘Comma Delimited .csv’ as the export file format
Click the ‘Export’ button
Mass export using the Salesforce Data Export tool
The other way to mass export data to CSV is to use the Salesforce Data Export tool. Mainly used as a data backup service, here you can schedule to have some or all of your objects exported to individual CSV files to download in a ZIP file. The user who schedules the export will get an email with the link of that file which is downloadable.
Click on ‘Setup’
Enter ‘Data Export’ in the Quick Find box, then select ‘Data Export’ and ‘Export Now’ or ‘Schedule Export’.
The ‘Export Now’ option prepares your files for export immediately. This option is only available if enough time has passed since your last export.
The ‘Schedule Export’ option allows you to schedule the export process for weekly or monthly intervals.
Select the proper encoding for your export file.
Select options for images, documents, attachments, so that these will be included in your data.
Select ‘Replace carriage returns with spaces’ to have spaces instead of carriage returns or line breaks in your export files. This is useful if you plan to use your export files for importing or other integrations.
If you’re scheduling your export, select the frequency (only available for organizations with monthly exports), start and end dates, and time of day for your scheduled export.
Under ‘Exported Data’, select the types of data to include in your export. We recommend that you select ‘Include all data’ if you’re not familiar with the terminology used for some of the types of data.
Click ‘Start Export’ or ‘Save’.
Salesforce will generate a zip archive of CSV files and will email you when they are ready. Exports will complete as soon as possible, however, Salesforce doesn’t give the exact date and time the export will complete.
Tools you can download to extract data from Salesforce
Salesforce Data Loader
Salesforce Data Loader is a good tool for someone needing to import or export data to/from Salesforce in CSV file format. This tool is developed and supported by Salesforce.
To download the tool, in Salesforce navigate to ‘Setup’ > ‘Data Management’ > ‘Data Loader’.
Salesforce Data Loader provides the user with a nice interface to pick the object, fields and criteria for the data you want to export, or write your own SOQL query.
Using Apex and Visualforce code, you can build your own tool so you can extract and use data exactly how you need to. Of course, this requires a developer guru so consider your IT and web resource before taking this route.
The correct way to extract data from Salesforce is dependent on your business; your budget, your reporting requirements, the volume of data you need to extract etc.
If you need support with your Salesforce CRM, feel free to get in touch and we can put you in contact with one of our trusted Salesforce marketing partners.
Need a hand getting the most out of your Pardot or Salesforce account?
MarCloud is a team of certified Pardot and Salesforce specialists. We help businesses to unlock the potential of marketing automation.
Ready to save time, deliver more quality leads, and generate more revenue? Here's how we help.
Introducing a new feature which is a part of the Summer’21 release, called ‘Accounts as Campaign Members’. This new feature simplifies the process of adding Accounts to Campaigns in Salesforce without using an external app! Here we cover all you need to know.