You can easily import external data into Salesforce. Supported data sources include any program that can save data in the comma delimited text format (.csv).
Salesforce offers two main methods for importing data.
Data Import Wizard—this tool, accessible through the Setup menu, lets you import data in common standard objects, such as contacts, leads, accounts, as well as data in custom objects. It can import up to 50,000 records at a time. It provides a simple interface to specify the configuration parameters, data sources, and the field mappings that map the field names in your import file with the field names in Salesforce.
Data Loader—this is a client application that can import up to five million records at a time, of any data type, either from files or a database connection. It can be operated either through the user interface or the command line. In the latter case, you need to specify data sources, field mappings, and other parameters via configuration files. This makes it possible to automate the import process, using API calls.
Use the Data Import Wizard When:
- You need to load less than 50,000 records.
- The objects you need to import are supported by the wizard.
- You don’t need the import process to be automated.
Use Data Loader When:
- You need to load 50,000 to five million records. If you need to load more than 5 million records, we recommend you work with a Salesforce partner or visit the AppExchange for a suitable partner product.
- You need to load into an object that is not supported by the Data Import Wizard.
- You want to schedule regular data loads, such as nightly imports.
Cloud Kicks manufactures custom sneakers, designed and personalized for their customers. Sales superstars Candace and Jose are always eager to get fresh air and exercise, so they schedule a walking meeting with Linda, the company’s Salesforce admin. They want Linda’s help to bring their CRM data into Salesforce. Because they have fewer than 50,000 records, Linda decides to use the Data Import Wizard. When she gets back to her desk after the walk, she preps the data for import.
- Use your existing software to create an export file.
- Clean up the import file for accuracy and consistency. This involves updating the data to remove duplicates, delete unnecessary information, correct spelling and other errors, and enforce naming conventions.
- Compare your data fields with the Salesforce fields you can import into, and verify that your data will be mapped into the appropriate Salesforce fields. You might need to fine-tune the mapping before starting the import. For details, see Field Mapping for Data Sources in the online help.
- Make any configuration changes required in Salesforce to handle the imported data. For example, you might need to create new custom fields, add new values to picklists, or temporarily deactivate workflow rules.
View this video for more information on cleaning up your import file.
Start the wizard.
- From Setup, enter Data Import Wizard in the Quick Find box, then select Data Import Wizard.
- Review the information provided on the welcome page, then click Launch Wizard!
Choose the data that you want to import.
- To import accounts, contacts, leads, solutions, person accounts, or campaign members, click Standard Objects. To import custom objects, click Custom Objects.
- Specify whether you want to add new records to Salesforce, update existing records, or add and update records simultaneously.
- Specify matching and other criteria as necessary. Hover over the question marks for more information about each option.
Specify the file that contains your data.
You can specify your data file by dragging the CSV to the upload area of the page or by clicking the CSV category you’re using and then navigating to and selecting the file.
- Choose a character encoding method for your file. Most users can accept the default character encoding.
Map your data fields to Salesforce data fields.
The Data Import Wizard tries to map as many of your data fields as possible to standard Salesforce data fields. If Salesforce can’t automatically map fields, however, you do it manually. Unmapped fields are not imported into Salesforce.
To see a list of standard Salesforce data fields, from Setup, at the top of the page, click Object Manager. Click the object whose fields you’re interested in, and click Fields & Relationships. For example, if you want to see a list of standard Salesforce fields for leads, click.
- Scan the list of mapped data fields and locate any unmapped fields.
- Click Map to the left of each unmapped field.
In the Map Your Field dialog box, choose the Salesforce fields you want to map to
and click Map.
- To change mappings that Salesforce performed automatically, click Change to the left of the appropriate field, then choose the Salesforce fields you want to map to and click Map.
- Click Next.
Review and start your import.
- Review your import information on the Review page. If you still have unmapped fields that you want to import, click Previous to return to the previous page and specify your mappings.
- Click Start Import.
- Check import status.
- New Values for Picklists and Multi-Select
Picklists—If you import a picklist value that doesn’t match an
existing picklist value:
- For an unrestricted picklist, the Data Import Wizard uses the value that’s in the import file.
- For a restricted picklist, the Data Import Wizard uses the picklist’s default value.
- Multi-Select Picklists—To import multiple values into a multi-select picklist, separate the values by a semicolon in your import file.
- Checkboxes—To import data into a checkbox field, use 1 for checked values and 0 for unchecked values.
- Default Values—For picklist, multi-select picklist, and checkbox fields, if you do not map the field in the import wizard, the default value for the field, if any, is automatically inserted into the new or updated record.
- Date/Time Fields—Ensure that the format of any date/time fields you are importing matches how they display in Salesforce per your locale setting.
- Formula Fields—Formula fields cannot accept imported data because they are read-only.
- Field Validation Rules—Salesforce runs validation rules on records before they are imported. Records that fail validation aren’t imported. Consider deactivating the appropriate validation rules before running an import if they affect the records you are importing.