Import Your Data. salesforce Salesforce Organization
Pubblicità
Pubblicità
Import Your Data Importing Overview
I
MPORT
Y
OUR
D
ATA
Importing Overview
Your edition determines the types of objects you can import.
You can import data from ACT!, Outlook, and any program that can save data in the CSV (comma-separated values) format, such as Excel or GoldMine.
Note: If commas are not appropriate for your locale, use a tab or other delimiter.
The following table summarizes the kinds of records that can be imported.
Leads
Type of record
Business accounts and contacts owned by different users
Person accounts owned by you
Person accounts owned by different users
Campaign members
Import record limit
Business accounts and contacts owned by you
500 at a time
Which records can be imported?
Users with access
All users
50,000 at a time
50,000 at a time
50,000 at a time
50,000 at a time
Administrators;
Users with the “Modify All
Data” permission
Overview topic
All users
Administrators;
Users with the “Import Person
Accounts” permission
Administrators;
Users with “Read”, “Create”, and “Edit” on leads and the
“Import Leads” permission
50,000 for importing leads as new campaign members and updating the status of existing campaign members.
Administrators;
Marketing users (or users with the “Import Leads” permission and the “Edit” permission on campaigns) can import new leads as campaign members.
238
Import Your Data Importing Overview
Type of record
Custom objects
Solutions
Which records can be imported?
Import record limit Users with access
Users also need the “Read” permission on contacts to use the campaign update wizard to make existing leads and contacts campaign members.
50,000 at a time Administrators;
Users with the “Modify All
Data” permission
Overview topic
50,000 at a time Administrators;
Users with the “Import
Solutions” permission
These records cannot be imported via the import wizards.
Assets
Cases
Campaigns
Contracts
Documents
Opportunities
Products
For information on field accessibility and how different field type values are imported, see
on page
248.
Process for Importing Records
To import records into Salesforce, follow the steps in these topics:
1.
Creating Export Files for Import Wizards
2.
Preparing Your Data for Import
3.
Note: In addition to the record limits on each import, your import is also subject to the overall storage limits for your organization.
Although they are custom objects, relationship group members cannot be imported.
See Also:
Which Data Import/Export Tool Should I Use?
239
Import Your Data Which Data Import/Export Tool Should I Use?
Which Data Import/Export Tool Should I Use?
Salesforce offers the following tools and APIs to import and export data.
Use the table below to determine which tool you should use, based on how many records you need to import or export, whether you need to import or export, and whether the tool is internal or external to Salesforce.
Additional information Tool Editions supported
Number of records you can import or export
Import
Up to 50,000 Yes Import Wizard for Accounts and Contacts
Contact
Manager,
Group,
Professional,
Enterprise,
Unlimited, and
Developer
Editions
Import Wizard for Leads
Group,
Professional,
Enterprise,
Unlimited, and
Developer
Editions
Up to 50,000
Solution Import
Wizard
Professional,
Enterprise,
Unlimited, and
Developer
Editions
Custom Object
Import Wizard
Contact
Manager,
Group,
Professional,
Enterprise,
Unlimited, and
Developer
Editions
Data Export
Up to 50,000
Up to 50,000
Weekly export available in
Enterprise and
Unlimited
Editions.
Monthly export available in all editions, except
Database.com
No limit
Yes
Yes
Yes
No
No
No
No
Yes
Export
No
Internal or external to
Salesforce
Internal
Internal
Internal
Internal
Internal
An in-browser wizard that imports your personal and organization’s accounts and contacts.
An in-browser wizard that imports your organization’s
.
An in-browser wizard that imports your organization’s
.
An in-browser wizard that imports your organization’s
.
An in-browser wizard that exports data in .zip files that are up to 128 MB each on a monthly or weekly basis.
240
Import Your Data Which Data Import/Export Tool Should I Use?
Tool
Data Loader
Editions supported
Enterprise,
Unlimited,
Developer, and
Database.com
Editions
Number of records you can import or export
Import
Between 5,000 and 5 million
Yes
Export
Yes
Internal or external to
Salesforce
External
Third-party tools
Jitterbit Data
Loader
TM
for
Salesforce
(third-party tool)
Workbench
Varies
All editions
Over 5 million
Over 5 million
Varies
Yes
Enterprise,
Unlimited,
Developer, and
Database.com
Editions
One record at a time or a batch containing up to
10,000 records
Yes
Varies
Yes
Yes
External
External
External
Additional information
Data Loader is a client application for the bulk import or export of data. Use it to insert, update, delete, or export
Salesforce records.
See the AppExchange for available tools.
Free data migration tool offered by a salesforce.com, inc.
partner. Read more .
Workbench is a free, open source, community-supported tool (see the Help page in
Workbench). Salesforce.com
provides a hosted instance of
Workbench for demonstration purposes only—salesforce.com
recommends that you do not use this hosted instance of
Workbench to access data in a production database. If you want to use Workbench for your production database, you can download, host, and configure it using your own resources.
Read more .
Salesforce.com provides APIs that enable data integration with Salesforce. Use the table below to determine which API to use, based on how many records you need to import or export and the integration technologies required in your scenario.
API Additional information
REST API
Editions supported
Developer,
Enterprise,
Unlimited, and
Database.com
Editions
Number of records you can import or export
Integration scenarios where you have less than 200 records
Import
Yes
Export
Yes Use to access objects in your organization using REST. Read more .
241
Import Your Data Which Data Import/Export Tool Should I Use?
API
SOAP API
Bulk API
Editions supported
Developer,
Enterprise,
Unlimited, and
Database.com
Editions
Developer,
Enterprise,
Unlimited, and
Database.com
Editions
Number of records you can import or export
Integration scenarios where you have less than 200 records
Over a million
Import
Yes
Yes
Export
Yes
Yes
Additional information
Use to integrate your organization’s data with other applications using SOAP.
Read more .
Use to load or delete large numbers of records. Read more .
See Also:
What Is Imported for Business Accounts and Contacts?
Available in: All Editions except Database.com
Organization import not available in: Personal Edition, Database.com
The import wizards for contacts and business accounts allow you to match records in a variety of ways in order to prevent duplicates. Contacts can be matched by Salesforce ID, name, or email. Business accounts can be matched by Salesforce ID or by name and site. Matching by Salesforce ID is inclusive of both contacts and business accounts; if you match one by Salesforce
ID, the other will also be matched by Salesforce ID.
Matching by Name and Site
If you choose to match contacts by name and business accounts by name and site (which are the recommended options), the import wizards automatically create a business account for each unique business account name and site in the import file. They also create a separate contact for each contact name listed in the file. The contacts are then associated with the appropriate business accounts.
If the business account or contact already exists in the system, and you have read/write access to the record, the wizards add your import data to the existing data in Salesforce. In addition, if a business account or contact name in your import file is similar to an existing business account or contact name, the import data is added to the existing data in Salesforce.
Matching by Salesforce ID
You can also choose to match contacts and business accounts by Salesforce ID. With this selected, the Salesforce ID will be the criteria for de-duplication. That is, if you are matching by ID and a record in your source file has the same ID as a record in Salesforce, then that record will be updated in Salesforce. Note that record IDs are case-sensitive and must match exactly.
242
Import Your Data Which Data Import/Export Tool Should I Use?
Overwriting Existing Account Values
The wizards never overwrite your existing business account fields unless you check the
Overwrite existing account values checkbox in the wizard. With this box checked, you can insert or update existing business account fields with new data. However, you cannot use this checkbox to update existing field data with blank values. With this box unchecked, the wizard updates any empty business account fields, but does not touch any fields with existing data.
If you do not have read/write access to an existing business account or contact, the wizards create a new business account or contact owned by you. In addition, the wizards create new business accounts and contacts based on specific fields in your import file.
In Professional, Enterprise, Unlimited, and Developer Edition organizations, the import wizards can also import new business account and contact notes. The wizards do not import notes that are exact duplicates of existing contact or business account notes.
See Also:
Import My Organization’s Accounts and Contacts
Which Data Import/Export Tool Should I Use?
What Is Imported for Person Accounts?
Person account import available in: Enterprise, Unlimited, and Developer Editions
The import wizards for person accounts allow you to prevent the creation of duplicate records by matching records according to one of the following fields:
Account Name
,
Salesforce ID
, or
. In your import file, include a column for the field that you are using for record matching.
Note: Your administrator may have renamed “person account” to another term. If so, the import wizard will refer to the new name.
Matching by Name
When you select this option, the import wizard will detect existing records in Salesforce that have the same name. Note that this type of matching is not case-sensitive - for example, names that begin with a capital letter will be matched with the same name that begins with a lowercase letter. If necessary, scan and standardize your custom object names before performing the import to prevent unintended matches.
Matching by Salesforce ID
A Salesforce ID is a system-generated, case-sensitive string of 15 or 18 letters and numbers that uniquely identifies each
Salesforce record. When you select this option, the import wizard will detect existing records in Salesforce that have the same
Salesforce ID. Note that Salesforce IDs are case-sensitive and must match exactly. Salesforce IDs can be obtained by running reports that include the ID field of the record.
Matching by Email
With this option, person accounts in your import file will be matched with existing person accounts in Salesforce according to the exact value in the
field.
243
Import Your Data Which Data Import/Export Tool Should I Use?
Matching by External ID
An external ID is a custom field that has the “External ID” attribute, meaning that it contains unique record identifiers from a system outside of Salesforce. When you select this option, the import wizard will detect existing records in Salesforce that have the same external ID. Note that this operation is not case-sensitive - for example, “ABC” will be matched with “abc”.
However, there is an exception: if the custom field has the separate “Unique” attribute and the case-sensitive option for that attribute is selected, uppercase and lowercase letters will not be considered identical.
If necessary, scan and standardize your external ID values before performing the import to prevent unintended matches.
When matching by external ID, if the import wizard finds duplicate records, only the first three duplicate records are reported to you in the confirmation email.
Note: Only account custom fields with the “External ID” attribute are available for this step. While all custom contact fields are available on person account page layouts, custom contact fields with the “External ID” attribute are not available as matching fields during person account import.
Ignoring or Updating Matching Records
When the import wizard detects existing records in Salesforce that match according to the field you have chosen, you can choose one of the following actions:
• Do not update existing records and only insert new records - If there are records in your file that are new and do not match any existing records, then insert them into Salesforce. Also, ignore any records in your file that match an existing record, and do nothing to the existing record.
• Update existing records and do not insert any new records - If there are records in your file that match an existing record, then update the existing record. Also, ignore any records in your file that do not match an existing record, and do not insert them as new records.
• Update existing records and insert new records - If there are records in your file that are new and do not match any existing records, then insert them into Salesforce. Also, if there are records in your file that match an existing record, then update the existing record.
See Also:
Import My Organization's Person Accounts
Which Data Import/Export Tool Should I Use?
What is Imported for Leads?
Available in: Group, Professional, Enterprise, Unlimited, and Developer Editions
You can import data into the standard lead fields and into any custom lead fields you may have, even if a particular field is hidden or read only in your page layout or field-level security settings for leads.
Importing Leads With Matching Types
You can choose whether to match leads in your import file with existing leads in Salesforce. Leads can be matched according to the following types: Salesforce ID, name, or email. Choosing a matching type sets the criteria for avoiding duplicate leads.
For example, if you are matching by email and a lead in your source file has the same email as a lead in Salesforce, then that
244
Import Your Data Which Data Import/Export Tool Should I Use?
lead will be updated in Salesforce. If you are not matching by email and a lead in your source file has the same email as a lead in Salesforce, then a new lead will be created.
The wizards never overwrite your existing lead fields unless you check the
Overwrite existing lead values
checkbox in the wizard. With this box checked, you can insert or update existing lead fields with new data. However, you cannot use this checkbox to update existing field data with blank values. With this box unchecked, the wizard updates any empty lead fields, but does not touch any fields with existing data.
Importing Leads Without Matching Types
If you choose a matching type of “None” in the lead import wizard, for each lead in your import file, the Import My
Organization’s Leads wizard creates a new lead in Salesforce. You can merge leads after they are imported.
See Also:
Import My Organization’s Leads
Which Data Import/Export Tool Should I Use?
What is Imported for Campaign Members?
Available in: Professional, Enterprise, Unlimited, and Developer Editions
• Import Leads Wizard - For each lead in your import file, this wizard imports the lead, associates the lead with a campaign, and inserts a Member Status value for the lead in that campaign. You can import data into the standard lead fields and into any custom lead fields, even if a particular field is hidden or read only in your page layout or field-level security settings.
If you have duplicate leads in your import file, the wizard does not merge them. In addition, if any of the imported leads match an existing lead, the wizard does not merge the duplicate data into one lead.
• Campaign Update Wizard - For each contact or lead in your import file, this wizard updates only the Member Status value of the matching contact or lead in Salesforce. You cannot add new leads or contacts, nor can you update any other fields in the existing lead or contact records.
See Also:
Which Data Import/Export Tool Should I Use?
245
Import Your Data Which Data Import/Export Tool Should I Use?
What Is Imported for Custom Objects?
Custom object import available in: Contact Manager, Group, Professional, Enterprise, Unlimited, and Developer Editions
To import custom objects:
User Permissions Needed
“Modify All Data”
The import wizard for custom objects allows you to prevent the creation of duplicate records by matching records according to one of the following fields: custom object name, Salesforce ID, or external ID. In your import file, include a column for the field that you are using for record matching.
Matching by Name
When you select this option, the import wizard will detect existing records in Salesforce that have the same name. Note that this type of matching is not case-sensitive - for example, names that begin with a capital letter will be matched with the same name that begins with a lowercase letter. If necessary, scan and standardize your custom object names before performing the import to prevent unintended matches.
Matching by Salesforce ID
A Salesforce ID is a system-generated, case-sensitive string of 15 or 18 letters and numbers that uniquely identifies each
Salesforce record. When you select this option, the import wizard will detect existing records in Salesforce that have the same
Salesforce ID. Note that Salesforce IDs are case-sensitive and must match exactly. Salesforce IDs can be obtained by running reports that include the ID field of the record.
Matching by External ID
An external ID is a custom field that has the “External ID” attribute, meaning that it contains unique record identifiers from a system outside of Salesforce. When you select this option, the import wizard will detect existing records in Salesforce that have the same external ID. Note that this operation is not case-sensitive - for example, “ABC” will be matched with “abc”.
However, there is an exception: if the custom field has the separate “Unique” attribute and the case-sensitive option for that attribute is selected, uppercase and lowercase letters will not be considered identical.
If necessary, scan and standardize your external ID values before performing the import to prevent unintended matches.
When matching by external ID, if the import wizard finds duplicate records, only the first three duplicate records are reported to you in the confirmation email.
Ignoring or Updating Matching Records
When the import wizard detects existing records in Salesforce that match according to the field you have chosen, you can choose one of the following actions:
• Do not update existing records and only insert new records - If there are records in your file that are new and do not match any existing records, then insert them into Salesforce. Also, ignore any records in your file that match an existing record, and do nothing to the existing record.
• Update existing records and do not insert any new records - If there are records in your file that match an existing record, then update the existing record. Also, ignore any records in your file that do not match an existing record, and do not insert them as new records.
246
Import Your Data Which Data Import/Export Tool Should I Use?
• Update existing records and insert new records - If there are records in your file that are new and do not match any existing records, then insert them into Salesforce. Also, if there are records in your file that match an existing record, then update the existing record.
Note: Custom objects with two master-detail relationships cannot be imported using the import wizard.
See Also:
Import My Organization's Custom Objects
Which Data Import/Export Tool Should I Use?
What Is Imported for Solutions?
Available in: Professional, Enterprise, Unlimited, and Developer Editions
To import solutions:
User Permissions Needed
“Import Solutions”
The import wizard for solutions allows you to prevent the creation of duplicate records by matching records according to one of the following fields: solution title, Salesforce ID, or external ID. In your import file, include a column for the field that you are using for record matching.
Matching by Solution Title
When you select this option, the import wizard will detect existing solutions in Salesforce that have the same title. Note that this type of matching is not case-sensitive - for example, titles that begin with a capital letter will be matched with the same title that begins with a lowercase letter. If necessary, scan and standardize your solution titles before performing the import to prevent unintended matches.
Matching by Salesforce ID
A Salesforce ID is a system-generated, case-sensitive string of 15 or 18 letters and numbers that uniquely identifies each
Salesforce record. When you select this option, the import wizard will detect existing records in Salesforce that have the same
Salesforce ID. Note that Salesforce IDs are case-sensitive and must match exactly. Salesforce IDs can be obtained by running reports that include the ID field of the record.
Matching by External ID
An external ID is a custom field that has the “External ID” attribute, meaning that it contains unique record identifiers from a system outside of Salesforce. When you select this option, the import wizard will detect existing records in Salesforce that have the same external ID. Note that this operation is not case-sensitive - for example, “ABC” will be matched with “abc”.
However, there is an exception: if the custom field has the separate “Unique” attribute and the case-sensitive option for that attribute is selected, uppercase and lowercase letters will not be considered identical.
If necessary, scan and standardize your external ID values before performing the import to prevent unintended matches.
247
Import Your Data Which Data Import/Export Tool Should I Use?
When matching by external ID, if the import wizard finds duplicate records, only the first three duplicate records are reported to you in the confirmation email.
Ignoring or Updating Matching Records
When the import wizard detects existing records in Salesforce that match according to the field you have chosen, you can choose one of the following actions:
• Do not update existing records and only insert new records - If there are records in your file that are new and do not match any existing records, then insert them into Salesforce. Also, ignore any records in your file that match an existing record, and do nothing to the existing record.
• Update existing records and do not insert any new records - If there are records in your file that match an existing record, then update the existing record. Also, ignore any records in your file that do not match an existing record, and do not insert them as new records.
• Update existing records and insert new records - If there are records in your file that are new and do not match any existing records, then insert them into Salesforce. Also, if there are records in your file that match an existing record, then update the existing record.
See Also:
Import My Organization's Solutions
Which Data Import/Export Tool Should I Use?
Notes on Importing Data
Your edition determines the types of objects you can import.
• Field Accessibility—In the organization-wide import wizards for accounts and leads, you can import data into any standard or custom field even if it is hidden or read only in your page layout or field-level security settings.
For the Import My Contacts wizard, you can import data only into the fields that are editable for you in your page layout or field-level security settings.
Field-level security is available in Enterprise, Unlimited, and Developer Editions only.
• New Values for Picklists and Multi-Select Picklists—If your import file contains data to be displayed in picklists or multi-select picklists, the wizards warn you when you attempt to import a new picklist value that does not match any valid picklist values. If you ignore the warning, the new value is automatically added to the imported record. Your administrator can later edit the field to add the necessary values. Note that the import wizards do not allow you to import more than 100 new picklist or multi-select picklist values for any field during a single import.
If your organization uses the Translation Workbench, the import wizards look for matching translated values before creating new inactive picklist values.
• Multi-Select Picklists—To import multiple values into a multi-select picklist, separate the values by a semicolon in your import file.
You can import up to 100 values at a time in a multi-select picklist field. If you have more than 100 values in your import file for any one record, the import wizard leaves the field blank in that record.
• Checkboxes—To import data into a checkbox field, use 1 for checked values and 0 for unchecked values.
248
Import Your Data Which Data Import/Export Tool Should I Use?
• 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.
• Universally Required Fields—You must include universally required fields in your import files or the import will fail.
See Also:
Which Data Import/Export Tool Should I Use?
Importing Multiple Currencies
Available in: Group, Professional, Enterprise, Unlimited, and Developer Editions
If your organization has set up the ability to use multiple currencies, you can import amounts in different currencies.
Import My Accounts and Contacts
For personal imports, all amounts in new accounts and contacts are imported in your personal currency. When import updates amounts in existing records, the amounts in your file are converted from your personal currency to the currency of the account or contact.
For example, if your personal currency is U.S. dollars, and your import file has 100 as the annual revenue of an existing account with
Account Currency
of euros, then the new
Annual Revenue
value of the account will be EUR 92, assuming a conversion rate of 0.92 and “EUR” as the currency code for euros.
Organization Import
When importing accounts, contacts, custom objects, leads, or solutions for your organization, you can specify the currency type for amount fields using the Currency ISO Code column in your import file. The following rules apply:
• Entering currency codes - Enter a currency code in the Currency ISO Code column in your import file. Currency codes are three letter codes that follow an international standard. For example, USD is the currency code for U.S. dollars.
Click
Your Name
> Setup > Company Profile > Manage Currencies to see a list of valid codes for your organization.
• Using one currency for accounts and contacts - If you are importing accounts and contacts, the
Currency ISO Code column applies to both an account and its associated contact. You cannot specify different currencies for associated accounts and contacts.
• Updating the currency code - When updating the currency code but not the currency amount for existing accounts and contacts, the existing amount is not converted to the corresponding number in the new currency.
• Entering inactive currencies - If your enter an inactive currency in your import file, your personal currency will be used instead. However, amounts will not be modified. For example, if your file has AUD 100 for 100 Australian dollars but
AUD is an inactive currency for your organization, then it is imported as USD 100, assuming your personal currency is
U.S. dollars.
249
Import Your Data Creating Export Files for Import Wizards
• Omitting the Currency ISO Code column - When creating new records via importing, if you do not use the
Currency
ISO Code column or fail to map it, your personal currency is used. For example, if your file has 100 and your personal currency is U.S. dollars (currency code = USD), this is imported as USD 100.
When updating existing records via importing, if you do not use the Currency ISO Code column or fail to map it, any amounts are interpreted as having the existing currency of the record. For example, if your file has 100 for a record that has a currency of EUR (the currency code for euros), this amount is interpreted as EUR 100.
Creating Export Files for Import Wizards
Available in: All Editions except Database.com
To import data into Salesforce, you first need to export the data from your existing application. This creates an export file of the information you want to import.
•
•
•
•
•
•
Exporting from Other Data Sources
•
After creating the export file, compare your data with the Salesforce fields available for import, and verify that your data will be mapped into the appropriate Salesforce fields. See
Preparing Your Data for Import on page 256.
Your file can contain a mixture of some new records as well as updates for existing records. The option selected in the
Matching
Type field determines whether it is a new or existing record. When importing leads, you can choose whether to match leads in your import file with existing leads in Salesforce. Leads can be matched according to the following types: Salesforce ID, name, or email. Choosing a matching type sets the criteria for avoiding duplicate leads. For example, if you are matching by email and a lead in your source file has the same email as a lead in Salesforce, then that lead will be updated in Salesforce. If you are not matching by email and a lead in your source file has the same email as a lead in Salesforce, then a new lead will be created.
Note:
If you are the administrator and are importing for multiple users, you must combine your export data into a single
CSV file using Excel.
When importing new records, add or modify a Record Owner field in your file such that the field contains the names of existing, active users. Enter the users’ full usernames (for example, “[email protected]”) or first and last names (for example, “Joe Smith”, or “Smith Joe” for Asian locales). This will specify the owner of the imported data for an organization import. For lead imports, you can also specify the name of a lead queue. Record owner fields do not get updated when records are updated via import. All records retain their existing owners; and the Record
Owner
field in your import file is ignored for these records.
When importing leads, you can alternatively use a lead assignment rule to specify the owners of the imported data, instead of using a
Record Owner
field.
250
Import Your Data Creating Export Files for Import Wizards
Exporting from ACT!
ACT! allows you to export contact data in a text-delimited format which can then be imported. To export contact data from
ACT! (versions 4.0 or 2000):
1. Launch ACT! and open your database.
2. Select File > Data Exchange > Export....
3. Select the file type Text-Delimited.
4. Choose a file name and location for the exported data and click Next.
5. Select Contact records only.
6. Click the Options... button.
7. Select Comma for the field separator character.
Note: If commas are not appropriate for your locale, use a tab or other delimiter.
8. Select Yes, export field names and click OK.
9. Click Next.
10. Select All Records and then click Next.
11. Leave the export field order list alone, and click Finish.
See Also:
Default Field Mapping for ACT!
Creating Export Files for Import Wizards
Exporting from Outlook
Microsoft ® Outlook ® allows you to export data in a CSV (comma-separated values) format which can then be imported.
1. Launch Outlook.
2. Select File > Import and Export....
3. Choose Export to a file and click Next.
4. Choose Comma Separated Values (Windows) and click Next.
Note: If commas are not appropriate for your locale, use a tab or other delimiter.
5. Select the Contacts folder and click Next. You can select a different contacts folder if you have contacts stored in multiple folders.
6. Choose a file name for the exported data and click Next.
251
Import Your Data Creating Export Files for Import Wizards
7. Click Finish.
See Also:
Default Field Mapping for Outlook
Creating Export Files for Import Wizards
Exporting from GoldMine 4.0
GoldMine 4.0 allows you to export contact data in a text format that can be imported. Additionally, you can export GoldMine
4.0 notes for import into Professional, Enterprise, Unlimited, and Developer Edition organizations.
•
Exporting Contacts from GoldMine 4.0
•
Exporting Notes from GoldMine 4.0
Exporting Contacts from GoldMine 4.0
To export contact data from GoldMine 4.0, follow these steps:
1. Launch GoldMine 4.0.
2. Choose Export Records from the Tools menu.
3. Select Export to a new file and DBF file, and click Next.
4. In the list of GoldMine Fields on the left side of the dialog, select all of the fields, and click Add Field. Then click Next.
5. Choose the location for the export file, and click Next.
6. Select No when asked if you want to save these settings, and click Next.
7. Click Finish.
8. After the export finishes, locate the exported file and change its file extension from .dbf to .csv. The file is now ready for import into Salesforce.
Exporting Notes from GoldMine 4.0
Before importing your GoldMine 4.0 notes into Salesforce, you must import your GoldMine 4.0 contacts.
To export notes from GoldMine 4.0, follow these steps:
1. Launch GoldMine 4.0.
2. Choose Export Records from the Tools menu.
3. Select Export to a new file and ASCII file, and click Next.
4. In the list of GoldMine Fields on the left side of the dialog, select the company , lastname , and notes fields, and click
Add Field. Then click Next.
5. Choose the location for the export file, and click Next.
6. Select No when asked if you want to save these settings, and click Next.
7. Click Finish.
8. After the export finishes, locate the exported file and change its file extension to .csv.
9. Open the file.
10. Add a header column by right-clicking on the first row and choosing Insert.
11. In column A, enter Company .
12. In column B, enter
Last Name
.
13. In column C, enter Note .
252
Import Your Data Creating Export Files for Import Wizards
14. If necessary, clean up the file prior to importing it. Common problems include notes that have been broken between columns (this occurs when notes contain quotation marks).
See Also:
Field Mapping for Other Data Sources and Organization Import
Creating Export Files for Import Wizards
Exporting from GoldMine 5.0
GoldMine 5.0 allows you to export contact data in a text format that can be imported. Additionally, you can export GoldMine
5.0 notes for import into Professional, Enterprise, Unlimited, and Developer Edition organizations.
•
Exporting Contacts from GoldMine 5.0
•
Exporting Notes from GoldMine 5.0
Exporting Contacts from GoldMine 5.0
To export contact data from GoldMine 5.0, follow these steps:
1. Launch GoldMine 5.0.
2. Choose Tools > Import/Export Wizard > Export Contact Records.
3. Select Export to a new file and ASCII file, and click Next.
4. Select ALL Contact Records! in the drop-down list, and click Next.
5. In the list of GoldMine Fields on the left side of the dialog, select the fields you want to export, and click Add Field. We recommend you select all fields, except the notes
field. See Exporting Notes from GoldMine 5.0
on page 253 for information on how to export notes.
6. Click Next.
7. Choose the location for the export file, select the Export GoldMine field names... checkbox, and then click Next.
8. Select No when asked if you want to save these settings, and click Next.
9. Click Finish.
10. After the export finishes, locate the exported file and change its file extension from .txt to .csv. The file is now ready for import into Salesforce.
Exporting Notes from GoldMine 5.0
Before importing your GoldMine 5.0 notes into Salesforce, you must import your GoldMine 5.0 contacts.
To export notes from GoldMine 5.0, follow these steps:
1. Launch GoldMine 5.0.
2. Choose Tools > Import/Export Wizard > Export Contact Records.
3. Select Export to a new file and ASCII file, and click Next.
4. Select ALL Contact Records! in the drop-down list, and click Next.
5. In the list of GoldMine Fields on the left side of the dialog, select the company
, lastname
, and notes
fields, and click
Add Field. Then click Next.
6. Choose the location for the export file, select the Export GoldMine field names... checkbox, and then click Next.
7. Select No when asked if you want to save these settings, and click Next.
8. Click Finish.
9. After the export finishes, locate the exported file and change its file extension from .txt to .csv.
253
Import Your Data Creating Export Files for Import Wizards
10. Open the file.
11. If necessary, clean up the file prior to importing it. Common problems include notes that have been broken between columns (this occurs when notes contain quotation marks).
See Also:
Field Mapping for Other Data Sources and Organization Import
Creating Export Files for Import Wizards
Exporting from Palm Desktop
The Palm Desktop allows you to export your Address Book contacts in a CSV (comma-separated values) format which can then be imported.
1. Open the Address Book in the Palm Desktop. If you only want to export specific contacts, select those records.
2. Choose Export from the File menu.
3. In the “Export To File” dialog, enter a name for the file and choose a folder for it. In the Export as drop-down list, choose
“Comma Separated (*.csv;*.txt)”. Select the range of records to export - either All or Currently selected records.
Note: If commas are not appropriate for your locale, use a tab or other delimiter.
4. Click Export.
5. In the “Specify Export Fields” dialog box, select the Address Book fields you want to export, and click OK.
See Also:
Field Mapping for Other Data Sources and Organization Import
Creating Export Files for Import Wizards
Exporting from Other Data Sources
You can import data into the system from any other application that can create a CSV (comma-separated values) file.
1. Save your data source as a CSV file.
Note: If commas are not appropriate for your locale, use a tab or other delimiter.
2. Ensure your file includes only one name per field. The system cannot accept more than one name per field.
3. Ensure your file separates names and titles into two fields. The system cannot accept fields containing both names and titles.
254
Import Your Data Creating Export Files for Import Wizards
4. Ensure your file includes only one phone number per field.
See Also:
Field Mapping for Other Data Sources and Organization Import
Creating Export Files for Import Wizards
Exporting from Salesforce
Available in: Professional, Enterprise, Unlimited, and Developer Editions
You can export account, contact, custom object, lead, or solution reports from Salesforce to create an import file for the import wizards. You must include the
Account ID
,
Contact ID
,
Custom Object ID
,
Lead ID
, or
Solution ID
value for each respective record in your report. These ID fields are unique Salesforce identifiers and are used to accurately match your data with existing Salesforce records.
To create an import file with these ID fields, you first need to export the data from Salesforce.
1. Run an account, contact, custom object, lead, or solution report in Salesforce, include the respective ID field, and export it to Excel.
2. If you are exporting both leads and contacts to be targeted in a campaign:
a. In Excel, combine the exported reports into one CSV (comma-separated values) file. Make sure all of the ID field values are in the same column.
Note: If commas are not appropriate for your locale, use a tab or other delimiter.
b. Rename the
Lead ID/Contact ID
column to
Record Id
.
c. Add a column entitled
Status
, and enter the campaign member status for each contact or lead.
Note: Remember that Salesforce record IDs are case-sensitive and should never be changed manually in your import file.
See Also:
Creating Export Files for Import Wizards
255
Import Your Data Preparing Your Data for Import
Preparing Your Data for Import
Available in: All Editions except Database.com
After exporting your data from Salesforce or your existing application, prepare your data before importing it.
Note: If your data has information in fields that do not match any of the standard fields, your administrator can create custom fields for that data prior to import.
You must include universally required fields in your import files or the import will fail.
Preparing Contacts
When importing from ACT! or Outlook, the Import My Contacts wizard automatically maps fields from ACT! and
Outlook to Salesforce.
When importing from other data sources, you must use Excel ® to label the columns in your import file as specified in
Field Mapping for Other Data Sources and Organization Import
on page 263.
Preparing Person Accounts
When importing person accounts, use the field labels in Salesforce as the column labels in your import file.
Preparing Organization's Business Accounts and Contacts
When importing business accounts and contacts for your organization, you must use Excel ® to label the columns in your
Preparing Organization's Leads
When importing general leads or leads for campaigns, use the import file labels specified in
Preparing Custom Objects
When importing a custom object, use the field labels shown on the custom object detail page in Salesforce as the column labels in your import file.
Preparing Solutions
When importing solutions, use the field labels in Salesforce as the column labels in your import file.
You can enter HTML into the solutions you plan to import into Salesforce. However, unless your organization has enabled HTML solutions, HTML tags will display in the solutions after they are imported.
For security purposes, Salesforce automatically filters all HTML solutions for potentially malicious HTML. If potentially malicious HTML is detected in an HTML solution, then the potentially malicious HTML is either automatically removed or transformed into text for users who view the HTML solution. Note that users will not be able to notice when potentially malicious HTML is removed from an HTML solution.
You can import solutions written in HTML format into Salesforce. However, for security purposes, only the HTML tags listed below are allowed. The content of any HTML tags not listed below is automatically removed when saved in
HTML solutions. Furthermore, the content of all
<script>
and
<iframe>
tags, as well as all JavaScript, is automatically
256
Import Your Data Preparing Your Data for Import
<a>
<abbr>
<acronym>
<address>
<b>
<bdo>
<big>
<blockquote>
<br>
<caption>
<cite>
<code>
<col>
<colgroup>
<dd>
<del>
<dfn>
<div>
<dl> removed when saved in HTML solutions. Additionally, Cascading Style Sheets (CSS) are not supported in HTML solutions.
The following HTML tags are allowed in HTML solutions imported into Salesforce:
<h6>
<hr>
<i>
<img>
<ins>
<kbd>
<li>
<ol>
<p>
<pre>
<dt>
<em>
<font>
<h1>
<h2>
<h3>
<h4>
<h5>
<table>
<tbody>
<td>
<tfoot>
<th>
<thead>
<tr>
<tt>
<ul>
<var>
<q>
<samp>
<small>
<span>
<strike>
<strong>
<sub>
<sup>
Within the above tags, you can include the following attributes: alt background border class colspan face height href name rowspan size src style target width
The above attributes which can include a URL are limited to URLs that begin with the following:
• http:
257
Import Your Data Preparing Your Data for Import
• https:
• file:
• ftp:
• mailto:
• #
• / for relative links
See Also:
Default Field Mapping for ACT!
Default Field Mapping for Outlook
Creating Export Files for Import Wizards
Default Field Mapping for ACT!
Available in: All Editions except Database.com
This table details how ACT! fields map to Salesforce account and contact import fields during an individual data import.
Note: If an ACT! record contains more than one contact for the same company, the import wizard creates multiple contacts for one account.
ACT! Field
Address 1
Address 2
Address 3
Alt Phone
Alt Phone Ext.
Assistant
Asst. Phone
Asst. Phone Ext.
Import Field
Contact:
Mailing Address
and
Account: Billing Address
Contact:
Mailing Address
and
Account: Billing Address
Contact: Mailing Address and
Account:
Billing Address
Contact: Other Phone
Contact:
Other Phone Ext.
Contact:
Assistant's Name
Contact: Asst. Phone
Contact: Asst. Phone Ext.
258
Import Your Data
ACT! Field
City
Company
Contact
Country
Import Field
Contact:
Mailing City
and
Account: Billing City
Account:
Name
Contact: Full Name
Contact:
Mailing Country
and
Account:
Billing Country
Department
E-mail Login
(The import wizard verifies this is a valid email address in the form: [email protected])
Contact:
Department
Contact:
Fax
Fax Ext.
First Name
Home Address 1
Home Address 2
Home Address 3
Home City
Home Country
Home Phone
Home State
Home Zip
ID/Status
Last Name
Mobile Phone
Note
Phone
Phone Ext.
Referred By
Revenue
Contact:
Fax
and
Account: Fax
Contact:
Business Fax Ext.
Contact: First Name
Contact:
Other Address 1
Contact:
Other Address 2
Contact:
Other Address 3
Contact: Other City
Contact:
Other Country
Contact:
Home Phone
Contact:
Other State
Contact: Other Postal Code
Account:
Type
Contact:
Last Name
Contact:
Mobile Phone
Does not import
Contact:
Phone
and
Account:
Phone
Contact:
Business Phone Ext.
Contact:
Lead Source
Account: Annual Revenue
Preparing Your Data for Import
259
Import Your Data Preparing Your Data for Import
ACT! Field
State
Ticker Symbol
Title
Web Site
Zip
Import Field
Contact:
Mailing State
and
Account: Billing State
Account:
Ticker Symbol
Contact: Title
Account:
Website
Contact:
Mailing Postal Code
Account: Billing Postal Code
2nd Contact
2nd Phone
2nd Phone Ext.
2nd Title
3rd Contact
2nd Contact:
Name
2nd Contact: Phone
2nd Contact:
Phone Ext.
2nd Contact:
Title
3rd Contact:
Name
3rd Phone
3rd Phone Ext.
3rd Contact: Phone
3rd Contact:
Phone Ext.
3rd Title
3rd Contact:
Title
2nd Last Reach
,
3rd Last Reach
,
Asst. Title
,
Last
Attempt
,
Last Meeting
,
Last Reach
,
Last Results
,
Letter Date
,
Pager
,
Spouse
,
User 1-15
Contact:
Note
or Account:
Note
(In Professional, Enterprise, Unlimited, and Developer Edition organizations, you specify which fields import into a single contact or account note; separate notes are not created for each
ACT! field.)
See Also:
Preparing Your Data for Import
Default Field Mapping for Outlook
Available in: All Editions except Database.com
This table details how Outlook fields map to Salesforce account and contact import fields during an individual data import.
260
Import Your Data Preparing Your Data for Import
Outlook Field
Assistant’s Name
Assistant’s Phone
Birthday
Business City
Business Country
Business Fax
Business Phone
Business Postal Code
Import Field
Contact:
Assistant’s Name
Contact:
Asst Phone
Contact: Birthdate
Contact:
Mailing City
and
Account:
Billing City
Contact:
Mailing Country
and
Account: Billing Country
Contact:
Fax
and
Account:
Fax
Contact: Phone
Contact:
Mailing Postal Code
Account:
Billing Postal Code
Business Street
Business Street 2
Business Street 3
Company
Contact:
Mailing Address
and
Account: Billing Address
Contact:
Mailing Address
and
Account:
Billing Address
Contact: Mailing Address and
Account:
Billing Address
Account:
Account Name
and
Contact:
Account
Company Main Phone
Department
(The import wizard verifies this is a valid email address in the form: [email protected])
Account:
Phone
Contact:
Department
Contact: Email
First Name
Home City
Home Country
Home Phone
Home Postal Code
Home Street
Contact:
First Name
Contact: Other City
Contact:
Other Country
Contact:
Home Phone
Contact:
Other Postal Code
Contact: Other Address
261
Import Your Data Preparing Your Data for Import
Outlook Field
Home Street 2
Home Street 3
Job Title
Last Name
Manager's Name
Import Field
Contact:
Other Address
Contact:
Other Address
Contact: Title
Contact:
Last Name
Contact:
Reports To
(In addition, if the name in this field does not match an existing contact, a new contact is created with the manager’s name.)
Mobile Phone
Notes
Other Phone
Referred By
Title
Contact:
Mobile Phone
Contact: Description
Contact:
Other Phone
Contact:
Lead Source
Contact:
Salutation
Web Page Account: Website
Account
,
Anniversary
,
Billing Information
,
Business Phone 2
,
Callback
,
Car Phone
,
Categories
,
Children, Directory Server
,
2
,
E-mail 3
,
Government ID Number
,
Hobby
,
Home
Fax
,
Home Phone 2
,
Internet Free/Busy Address
,
ISDN, Keywords
,
Language
,
Location
,
Middle Name
,
Mileage
,
Office Location
,
Organizational ID
Number
,
Other City
,
Other Country
,
Other Fax
,
Other Postal Code
,
Other State
,
Other Street
,
Other Street 2
,
Other Street 3
,
Pager
,
PO Box
,
Primary Phone
,
Profession
,
Radio Phone
,
Spouse
,
Suffix
,
Telex
,
TTY/TDD Phone
,
User 1
,
User 2
,
User
3
,
User 4
Contact:
Note
or Account:
Note
(In Professional, Enterprise, Unlimited, and Developer Edition organizations, you specify which fields import into a single contact or account note; separate notes are not created for each
Outlook field.)
See Also:
Preparing Your Data for Import
262
Import Your Data Preparing Your Data for Import
Field Mapping for Other Data Sources and Organization Import
Available in: All Editions except Database.com
Organization import not available in: Personal Edition, Database.com
If you are importing accounts and contacts for an organization, or importing individual data from sources other than Outlook or ACT!, the Import Wizards map the fields as correctly as possible. You must fine-tune the mapping before completing the import. Before importing your data, Salesforce recommends that you use Excel to label the columns in your import file with the labels listed below. Field length limits for each object are listed in the Salesforce Field Reference Guide .
Note: The default mappings listed below are offered as a guide for importing; they do not ensure 100% accuracy in mapping your data. You must fine-tune the mapping in the Import Wizards. Remember that you can map the same field multiple times if necessary—for example, for the account and contact address fields.
Common Fields for Contacts and Accounts
Label for Your Import File Salesforce Field
Record Owner Contact: Contact Owner and
(Note: For individual imports, this field is not necessary, since all data you import is automatically owned by you. In addition, when importing records by Salesforce record ID, this field is ignored.)
Account:
Account Owner
Currency ISO Code
Contact:
Contact Currency
and
(Note: You can use this field only for organization imports in organizations that use multiple currencies. For more
information, see Importing Multiple Currencies on page 249.)
Account:
Account Currency
Label for Your Import File
Assistant
Asst. Phone
Asst. Phone Ext.
Birthdate
Business Fax
Business Fax Ext.
Business Phone
Business Phone Ext.
Contact Fields
Salesforce Field
Contact: Assistant
Contact:
Asst. Phone
Appended to Contact:
Asst. Phone
Contact:
Birthdate
Contact: Fax
Appended to Contact:
Fax
Contact:
Phone
Appended to Contact:
Phone
263
Import Your Data Preparing Your Data for Import
Label for Your Import File
Contact Description
Contact Fields
Salesforce Field
Contact:
Description
Contact Full Name or
First Name
&
Last Name
(Note: When importing contact names, use either Contact
Full Name
or
First Name
and
Last Name
, but not both.)
Contact: First Name and
Contact:
Last Name
Contact:
Contact ID Contact ID
(Note: Record IDs are case-sensitive and should not be changed.)
Contact Note
Department
E-mail Address
(Note: The import wizard verifies this is a valid email address in the form: [email protected].)
Creates a note attached to the contact
Contact:
Department
Contact:
Email Opt Out
(Note: Use “1” to indicate that user opts out; use “0” to indicate that user wants emails.)
Contact:
Email Opt Out
Home Phone
Home Phone Ext.
Lead Source
Mailing City
Mailing Country
Mailing Postal Code
Mailing State
Mailing Street 1
Mailing Street 2
Mailing Street 3
Mobile Phone
Mobile Phone Ext.
Other City
Other Country
Other Phone
Contact: Home Phone
Appended to Contact:
Home Phone
Contact:
Lead Source
Contact:
Mailing City
Contact: Mailing Country
Contact:
Mailing Address Zip/Postal Code
Contact:
Mailing State/Province
Contact:
Mailing Address
Contact: Mailing Address
Contact:
Mailing Address
Contact:
Mobile
Appended to Contact:
Mobile
Contact: Other City
Contact:
Other Country
Contact:
Other Phone
264
Import Your Data Preparing Your Data for Import
Label for Your Import File
Other Phone Ext.
Other Postal Code
Other State
Other Street 1
Other Street 2
Contact Fields
Salesforce Field
Appended to Contact:
Other Phone
Contact: Other Address Zip/Postal Code
Contact:
Other State/Province
Contact:
Other Address
Contact:
Other Address
Other Street 3
Reports To
(Note: If the import wizard cannot find a contact that matches the name in this field, it will create a new contact using this value as the Contact:
First Name
&
Last Name
.)
Contact: Other Address
Contact:
Reports To
Salutation
Title
2nd Contact
2nd Phone
2nd Phone Ext.
2nd Title
3rd Contact
3rd Phone
3rd Phone Ext.
3rd Title
Prefixed to Contact:
First Name
Contact:
Title
Split into Contact: First Name & Last Name for a second contact for the account
Contact:
Phone
for a second contact for the account
Appended to Contact: Phone for a second contact for the account
Contact:
Title
for a second contact for the account
Split into Contact: First Name & Last Name for a third contact for the account
Contact:
Phone
for a third contact for the account
Appended to Contact: Phone for a third contact for the account
Contact:
Title
for a third contact for the account
Account Fields
Label for Your Import File Salesforce Field
Account Description
Account Division
(Note: You do not need to specify this field if you choose to assign the division via the drop-down list on Step 1 of the import wizard. If you do not map this field or use the division drop-down list, the division is set to the record owner’s default division for each record.)
Account: Description
Account:
Account Division
265
Import Your Data Preparing Your Data for Import
Account Fax
Label for Your Import File
Account Fax Ext.
Account ID
(Note: Record IDs are case-sensitive and should not be changed.)
Account Fields
Salesforce Field
Account:
Fax
Appended to Account: Fax
Account:
Account ID
Account Name Account: Account Name and
Contact:
Account
Account Note
Account Number
Account Phone
Account Phone Ext.
Account Site
Account Type
Billing City
Billing Country
Billing Postal Code
Billing State
Billing Street 1
Billing Street 2
Billing Street 3
Employees
Industry
Creates a note attached to the account
Account:
Account Number
Account:
Phone
Appended to Account: Phone
Account:
Account Site
Account:
Type
Account:
Billing City
Account: Billing Country
Account:
Billing Zip/Postal Code
Account:
Billing State/Province
Account:
Billing Address
Account: Billing Address
Account:
Billing Address
Account:
Employees
Account:
Industry
Ownership
Parent Account
(Note: If the import wizard cannot find an account that matches the parent account name, it will create a new account using this value as the
Account Name
.)
Account: Ownership
Account:
Parent Account
Parent Account Site
(Note: Indicates the site value of Parent Account .)
Rating
Account:
Account Site
(Note: Maps to the Account Site field in the parent account.)
Account:
Rating
266
Import Your Data Preparing Your Data for Import
Label for Your Import File
Revenue
Shipping City
Shipping Country
Shipping Postal Code
Shipping State
Shipping Street 1
Shipping Street 2
Shipping Street 3
SIC Code
Ticker Symbol
Website
Account Fields
Salesforce Field
Account:
Annual Revenue
Account: Shipping City
Account:
Shipping Country
Account:
Shipping Zip/Postal Code
Account:
Shipping State/Province
Account: Shipping Address
Account:
Shipping Address
Account:
Shipping Address
Account:
SIC Code
Account: Ticker Symbol
Account:
Website
Note: If you include record types in your import file, the Import Wizard uses the record owner’s default record type when creating new records. For existing records, the Import Wizard does not update the record type field.
See Also:
Preparing Your Data for Import
Field Mapping for Importing Leads
Available in: Group, Professional, Enterprise, Unlimited, and Developer Editions
When you import leads, the Import My Organization’s Leads wizard and the campaign Import Leads wizard map the fields in your import file as correctly as possible, but you must fine-tune the mapping before completing the import. Prior to importing your leads, it is recommended that you use Excel to label the columns in your lead import file with the labels listed in the table below.
Note: The default mappings listed below are offered as a guide for importing; they do not ensure 100% accuracy in mapping your data. You must fine-tune the mapping in the Import Wizard.
Label for Your Import File
Annual Revenue
City
Annual Revenue
Salesforce Lead Field
City
267
Import Your Data Preparing Your Data for Import
Label for Your Import File
Company
Country
Company
Country
Currency ISO Code
(Note: You can use this field only for organizations that use
multiple currencies; see Importing Multiple Currencies
on page 249.)
Lead Currency
Salesforce Lead Field
Description Description
(The import wizard verifies this is a valid email address in the form: [email protected].)
Email Opt Out
(Use “1” to indicate that the user opts out; use “0” to indicate that the user wants emails.)
Email Opt Out
No. of Employees No. of Employees
Fax Fax
Full Name
or
First Name
&
Last Name
(Note: When importing lead names, use either Full Name or
First Name
and
Last Name
, but not both.)
First Name
and
Last Name
Industry Industry
Lead Division
(Note: You do not need to specify this field if you choose to assign the division via the drop-down list on Step 1 of the import wizard. If you do not map this field or use the division drop-down list, the division is set to the record owner’s default division for each record.)
Lead Division
Lead ID
Lead ID
(Note: Record IDs are case-sensitive and should not be changed.)
Lead Source
(Note: You do not need to specify this field if you choose to assign the same
Lead Source
to all leads on the first page of the import wizard.)
Lead Source
268
Import Your Data Preparing Your Data for Import
Lead Status
Mobile Phone
Label for Your Import File
Phone
Lead Status
Mobile
Phone
Salesforce Lead Field
Postal Code
Rating
Postal Code
Rating
Record Owner
(Note: You do not need this field if assigning ownership via a lead assignment rule. In addition, when importing records by Salesforce record ID, this field is ignored.)
Lead Owner
Salutation
State
Added to beginning of First Name
State
Status
(For campaign Import Leads wizard only.)
Street 1
Street 2
Street 3
Title
Website
Status
(in the Campaign History related list of a lead)
Address
Address
Address
Title
Website
Note:
If you include record types in this list, the Import Wizard uses the record owner’s default record type when creating new records. For existing records, the Import Wizard does not update the record type field.
If you choose to use assignment rules, the Import Wizard uses the new owner’s default record type when creating new records. When the assignment rules assign the record to a queue, the queue owner’s default record type is used.
See Also:
Import My Organization’s Leads
Preparing Your Data for Import
269
Import Your Data Accessing the Import Wizards
Accessing the Import Wizards
For Records You Own
Import wizards for records you personally own are located at Your Name > Setup > Import:
•
•
For Your Organization's Records
Import wizards for organization-wide data are located at
Your Name
> Setup > Data Management:
•
Import My Organization’s Accounts and Contacts
•
Import My Organization's Person Accounts
•
Import My Organization’s Leads
•
Import My Organization's Solutions
•
Import My Organization's Custom Objects
For Campaign Members
To access the campaign import wizards, view a campaign and click Manage Members. Then click the appropriate link:
• Add Members - Import File
• Update & Add Members - Import File
See Also:
Import My Contacts
Available in: All Editions except Database.com
With the Import My Contacts wizard, any user can import up to 500 personal contacts and associated business accounts.
correctly prepared your data (see Preparing Your Data for Import on page 256).
Note: We recommend you import a small test file first to make sure that you have prepared your import file correctly.
1. Start the wizard
Navigate to Your Name > Setup > Import > Import My Accounts & Contacts, and click Start the Import Wizard!.
Alternatively, click the Import My Accounts & Contacts link in the Tools area of the account home page. Note that the labels for business contacts and business accounts may have been renamed by your administrator, in which case the “Import
My...” links may have customized text.
270
Import Your Data Accessing the Import Wizards
2. Select the source
a. Specify the source application of your data - ACT!, Outlook, or other data source (any CSV file).
b. Click Next to continue.
3. Upload the file
a. Click Browse to load your file.
b. If importing from ACT! or Outlook, click Import Now!, or click Customize Mappings to verify the field mappings.
c. If importing from any other source, select the character encoding of the file. Most users will not need to change the default setting.
d. Choose whether to match your contacts by name or by email. This field sets the criteria for avoiding duplicates. For example, if you are matching by email and a record in your source file has the same email as a record in Salesforce, then that record will be updated in Salesforce. If you are not matching by email and there is a record in Salesforcewith the same email, then a new record will be created.
e. Choose Next to continue.
4. Map the fields
a. On four different mapping pages, the wizard associates the Salesforce field names with the field names from your import file. You must check the default mappings and alter any incorrect mappings. For more information about the
default field mappings, see Preparing Your Data for Import on page 256.
b. Note that there is no
Record Owner
field; you are automatically assigned as the owner of any data you import. On the Map Account Fields page, check the
Overwrite existing account values
box if you want to overwrite existing business account fields with your import data. Note that you cannot use this checkbox to update existing field data with blank values.
c. You can import data only into the fields that are editable for you in your page layout or field-level security settings.
d. When all fields are assigned correctly, click Next.
5. Map the miscellaneous fields
a. The wizard reports the fields that do not map.
In Professional, Enterprise, Unlimited, and Developer Edition organizations, you can choose whether the unmapped fields should be imported into an business account or contact Note or should not be imported at all. The fields are imported into a single business account Note or a single contact Note; separate note fields are not created for each import field.
b. When all fields are assigned correctly, click Import Now!.
See Also:
271
Import Your Data Accessing the Import Wizards
Import My Person Accounts
Person account import available in: Enterprise, Unlimited, and Developer Editions
To import your own person accounts:
User Permissions Needed
“Create” on accounts
AND
“Read” on contacts
AND
“Import Personal Contacts”
AND
At least one person account record type available for your profile
With the Import My Person Accounts wizard, you can import person accounts that you own. To understand how person
account records are matched to prevent duplicates, see What Is Imported for Person Accounts?
Note: Your administrator may have renamed “person account” to another term. If so, the import wizard will refer to the new name.
Follow these steps to import your person accounts. Click each link for more details.
1.
2.
3.
4.
5.
6.
Confirm and submit your import
7.
Launch the wizard
1. To import your person accounts, choose Your Name > Setup > Import > Import My Person Accounts.
Alternatively, click Import My Person Accounts in the Tools area of the accounts home page.
2. For best results, perform all of the steps provided on the introductory page.
3. Click Start the Import Wizard! to begin your import.
Prevent Duplicate Records
1. Choose the field that you are using to match existing records in Salesforce with records in your import file. The External
ID
option is disabled if no external ID fields have been created for your records.
272
Import Your Data Accessing the Import Wizards
2. Choose what you want to happen if matches are found - only import new records, only update existing records, or update existing records and import new ones.
Note: If you have chosen to match by Salesforce ID , you can only update existing records; you cannot import new ones.
3. Click Next.
Select record type
1. Choose the record type that you want to assign to the records in your import file.
2. If you are inserting new records and updating existing records at the same time, then choose whether to override the record types of existing records.
3. Click Next.
Upload your import file
1. Click Browse... to provide the location of your import file.
2. Choose the character encoding of your import file. In most cases, you can accept the default value.
3. Make additional settings depending on the setup of your organization, such as whether workflow rules will be triggered and the language of the records in the import file.
4. Click Next.
Map fields
1. Map the fields in your import file to the appropriate Salesforce fields by matching the fields on the left, which includes all the columns in your import file, with the appropriate Salesforce field on the right. If the column labels in your import file exactly match field labels in Salesforce, the wizard automatically maps those fields for you. However, if two or more of your file's column labels are identical matches with a field in Salesforce, you must map the fields manually.
Note: Some Salesforce fields cannot be updated using import, for example, the Created Date and Last
Modified Date
. So even though you may be using an exported report as your import file, some of the Salesforce fields in your file cannot be mapped.
2. Click Next. The import wizard warns you if you have not mapped all of the fields in your import file. Unmapped field values are not imported.
Confirm and submit your import
1. Read any warning messages that the import wizard displays. Optionally, click Previous to return to earlier steps and resolve potential problems.
2. Click Import Now! to submit your import request to Salesforce.
Complete your import
1. A message indicates approximately how long the import will take. When the import operation is finished, a message from
Customer Support will be sent to the email address shown.
2. Click Finish to exit the wizard.
273
Import Your Data Accessing the Import Wizards
3. To monitor the status of your pending import, click
Your Name
> Setup > Monitoring > Imports.
See Also:
Import My Organization’s Accounts and Contacts
Available in: Contact Manager, Group, Professional, Enterprise, Unlimited, and Developer Editions
With the Import My Organization’s Accounts and Contacts wizard, administrators, and users with the “Modify All Data” permission, can import up to 50,000 business accounts and contacts at a time for multiple users. Before beginning, make sure you have created an export file and correctly prepared your data.
Note: We recommend you import a small test file first to make sure that you have prepared your import file correctly.
1. Start the wizard.
Go to Your Name > Setup > Data Management > Import Accounts/Contacts (or Import Business Accounts/Contacts if your organization uses person accounts). Review the steps provided on the welcome page, then click Start the Import
Wizard!. Alternatively, click the appropriate link in the Tools area of the accounts home page.
Note: If your organization uses person accounts and the labels for business accounts and business contacts have been renamed, the renamed labels will appear in the Tools area of the accounts home page, but not in the Data
Management area under Setup. (Renamed labels do not appear in any pages under App Setup or Administration
Setup.)
2. Create your import file.
a. Follow the instructions to create an import file.
b. Click Next to continue.
3. Upload the file.
a. Click Browse to load your file.
b. Select the character encoding of your file. Most users will not need to change the default character encoding setting.
c. Choose whether to match your organization’s contacts by Salesforce ID, name, or email. Similarly, choose whether to match your organization’s accounts by Salesforce ID or by name and site. Note that matching by Salesforce ID is inclusive of both contacts and accounts.
These Matching Type fields set the criteria for avoiding duplicates. For example, if you are matching by email and a record in your source file has the same email as a record in Salesforce, then that record will be updated in Salesforce.
If you are not matching by email and there is a record in Salesforce with the same email, then a new record will be created. Note that contacts are matched only within the same account. If contacts related to different accounts have the same name or email, they treated as separate contacts.
d. Organizations that use the Translation Workbench can specify the language of the import data.
274
Import Your Data Accessing the Import Wizards
e. If you use divisions, select a division to assign to all imported records. Alternatively, select “None” to use the record owner’s default division on each record, or specify the division in your import file.
f. Select the checkbox to trigger workflow rules for new and updated records that match workflow rule criteria.
g. Click Next to continue.
4. Map the fields.
a. On four different mapping pages, the wizard associates the Salesforce field names with the field names from your import file. You must check the default mappings and alter any incorrect mappings
b. Remember to map the
Record Owner
field with your
Record Owner
field so that record ownership is assigned correctly. When importing records by Salesforce record ID, the
Record Owner
field in your import file is ignored.
All records retain their existing owners; record owners cannot be updated using the import wizard.
c. On the Map Account Fields page, check the
Overwrite existing account values
box if you want to overwrite existing account fields with your import data. Note that you cannot use this checkbox to update existing field data with blank values.
d. When all fields are assigned correctly, click Next.
5. Map the miscellaneous fields.
a. The wizard reports the fields that do not map. In Professional, Enterprise, Unlimited, and Developer Edition organizations, you can choose whether the unmapped fields should be imported into an account or contact Note or should not be imported at all. The fields are imported into a single account Note or a single contact Note; separate note fields are not created for each import field.
b. When all fields are assigned correctly, click Next.
6. Review and confirm.
a. If there are warnings on this page, stop the import process and correct your import file.
b. Select Import Now! to send your import request. Your data is imported within the next 24 hours, and we notify you via email when the import is complete. Once the system begins processing, you cannot cancel the import.
7. Check the Import Queue.
a. You can use the Import Queue to check the progress of your import. Click
Your Name
> Setup > Monitoring >
Imports. Alternatively, click the Import Queue link on the Import Wizard for My Organization page. For imports that have not begun processing, you can click Del to cancel the import.
Note: If your organization uses territory management, your imported accounts are always evaluated by account assignment rules.
See Also:
Creating Export Files for Import Wizards
Preparing Your Data for Import
Creating Export Files for Import Wizards
Preparing Your Data for Import
275
Import Your Data Accessing the Import Wizards
Import My Organization's Person Accounts
Person account import available in: Enterprise, Unlimited, and Developer Editions
To import your organization's person accounts:
User Permissions Needed
“Import Person Accounts”
With the Import My Organization's Person Accounts wizard, you can import person accounts that are owned by different users. To understand how person account records are matched to prevent duplicates, see
What Is Imported for Person Accounts?
on page 243.
Note: If the label for person accounts has been renamed for your organization, the renamed label will appear in the import wizard itself and in the Tools area of the accounts home page, but not in the Data Management area under
Setup. (Renamed labels do not appear in any pages under App Setup or Administration Setup.)
Follow these steps to import person accounts for your organization.
1.
2.
3.
Specify owner and lookup relationships
4.
5.
6.
7.
Confirm and submit your import
8.
Note: The import wizard is dynamic; it displays different screens depending on what you are importing and the setup of your organization.
Launch the wizard
To import person accounts for your organization:
1. Choose
Your Name
> Setup > Data Management > Import Person Accounts.
Alternatively, click Import My Organization's Person Accounts in the Tools area of the accounts home page.
2. For best results, perform all of the steps provided on the introductory page.
3. Click Start the Import Wizard! to begin your import.
Prevent duplicate records
1. The import wizard can compare the records in your import file with existing records in Salesforce in order to prevent duplicate records from being created as a result of your import. Indicate whether you would like to prevent duplicate records from being created. You must select
Yes
in order to update existing records.
2. If you choose Yes , then additional choices will appear:
276
Import Your Data Accessing the Import Wizards
• Choose the field that you are using to match existing records in Salesforce with records in your import file. The
External ID option is disabled if no external ID fields have been created for your records.
• Choose what you want to happen if matches are found—only import new records, only update existing records, or update existing records and import new ones.
Note: If you have chosen to match by
Salesforce ID
, you can only update existing records; you cannot import new ones.
3. Click Next.
Specify owner and lookup relationships
1. Specify the field in your import file that contains person account owners.
When you choose “Name,” the following formats are valid:
• First name followed by last name
• Last name followed by first name
• Alias
• Username
2. Records can have custom fields that create lookup relationships with other records. If you have included lookup fields in your import file, then check the corresponding boxes.
Note: Any related records must already exist in Salesforce before proceeding. Related records will not be updated during your import even if your import file contains different values for fields on those related records.
3. Click Next.
Select record type
1. Choose the record type that you want to assign to the records in your import file.
2. If you are inserting new records and updating existing records at the same time, then choose whether to override the record types of existing records.
3. Click Next.
Upload your import file
1. Click Browse... to provide the location of your import file.
2. Choose the character encoding of your import file. In most cases, you can accept the default value.
3. Make additional settings depending on the setup of your organization, such as whether workflow rules will be triggered and the language of the records in the import file.
4. Click Next.
Map fields
1. Map the fields in your import file to the appropriate Salesforce fields by matching the fields on the left, which includes all the columns in your import file, with the appropriate Salesforce field on the right. If the column labels in your import file exactly match field labels in Salesforce, the wizard automatically maps those fields for you. However, if two or more of your file's column labels are identical matches with a field in Salesforce, you must map the fields manually.
277
Import Your Data Accessing the Import Wizards
Note: Some Salesforce fields cannot be updated using import, for example, the Created Date and Last
Modified Date
. So even though you may be using an exported report as your import file, some of the Salesforce fields in your file cannot be mapped.
2. Click Next. The import wizard warns you if you have not mapped all of the fields in your import file. Unmapped field values are not imported.
Confirm and submit your import
1. Read any warning messages that the import wizard displays. Optionally, click Previous to return to earlier steps and resolve potential problems.
2. Click Import Now! to submit your import request to Salesforce.
Complete your import
1. A message indicates approximately how long the import will take. When the import operation is finished, a message from
Customer Support will be sent to the email address shown.
2. Click Finish to exit the wizard.
3. To monitor the status of your pending import, click Your Name > Setup > Monitoring > Imports.
See Also:
Import My Organization’s Leads
Available in: Group, Professional, Enterprise, Unlimited, and Developer Editions
User Permissions Needed
To use the Import My Organization's Leads wizard: “Read”, “Create”, and “Edit” on leads
AND
“Import Leads”
With the Import My Organization’s Leads wizard, administrators, users with the Marketing User profile, or users with the
“Import Leads” permission and “Read,” “Create,” and “Edit” permissions on leads can import up to 50,000 leads at a time for multiple users. Before beginning, make sure you have created an export file and correctly prepared your data.
Note: We recommend you import a small test file first to make sure that you have prepared your import file correctly.
1. Start the wizard.
Click Your Name > Setup > Data Management > Import Leads, and click Start the Import Wizard.
2. Upload the file.
278
Import Your Data Accessing the Import Wizards
a. Select Browse to load your import file.
b. If desired, select a value to import into the Lead Source field of all imported leads. Alternatively, you can assign the lead source via a
Lead Source
field in your import file. You must specify a
Lead Source
value that is not marked as “Converted”; leads with a “Converted” status will not be imported.
c. Next, choose a lead assignment rule to determine the owners of imported leads. If you have a
Record Owner
field in your import file, do not select an assignment rule. Without an assignment rule or a
Record Owner
field in your import file, all leads are assigned to the administrator doing the import. When importing records by Salesforce record ID, the
Record Owner
field in your import file is ignored. All records retain their existing owners; record owners cannot be updated using the import wizard.
d. If you have chosen an assignment rule, select the
Use assignment rule settings to send notification emails to record owners checkbox to send notification emails to owners of newly created leads. If you do not select the checkbox, no email notifications are sent, regardless of your assignment rule settings.
e. Then select the character encoding of your file. Most users do not need to change the default setting.
f. Choose whether to match your organization’s leads by Salesforce ID, name, or email. This field sets the criteria for avoiding duplicates. For example, if you are matching by email and a record in your source file has the same email as a record in Salesforce, then that record will be updated in Salesforce. If you are not matching by email and there is a record in Salesforce with the same email, then a new record will be created. Select a matching type of “None” if you do not want to de-duplicate leads; a new record will be created for every lead in your import file.
When importing new leads for a campaign, the
Matching Type
option is not available; the wizard does not merge duplicate leads.
g. Organizations that use the Translation Workbench can specify the language of the import data.
h. If you use divisions, select a division to assign to all imported records. Alternatively, select “None” to use the record owner’s default division on each record, or specify the division in your import file.
i. Select the checkbox to trigger workflow rules for new and updated records that match workflow rule criteria.
j. If your organization has multiple record types on leads, choose the active record type that will be applied to all leads in your import file. However, if you are logged in as a user who has a default lead record type selected at
Your Name
>
Setup > My Personal Information > Record Type Selection > Lead, then this drop-down list does not display and your default lead record type is automatically applied to the imported records.
k. Click Next to continue.
3. Map the fields.
a. The wizard associates the Salesforce lead field names with the field names in your import file. You must verify the default mappings and alter any incorrect mappings. Any unmapped fields are not imported.
b. If you chose to avoid duplicate leads (that is, the selected
Matching Type
is not “None”), check the
Overwrite existing lead values
box if you want to overwrite existing lead fields with your import data. Note that you cannot use this checkbox to update existing field data with blank values.
c. Click Next to continue.
4. Review and confirm.
Choose Import Now! to send your import request. Your leads are imported within the next 24 hours, and we notify you via email when the import is complete. Once the system begins processing, you cannot cancel the import.
5. Check the Import Queue.
279
Import Your Data Accessing the Import Wizards
You can use the Import Queue link to check the progress of your import. Click Your Name > Setup > Monitoring >
Imports. Alternatively, click the Import Queue link on the Import Wizard for My Organization’s Leads page. For imports that have not begun processing, you can click Del to cancel the import.
See Also:
Creating Export Files for Import Wizards
Field Mapping for Importing Leads
Creating Export Files for Import Wizards
Field Mapping for Importing Leads
Import My Organization's Custom Objects
Custom object import available in: Contact Manager, Group, Professional, Enterprise, Unlimited, and Developer Editions
To import custom objects:
User Permissions Needed
“Modify All Data”
With the Import My Organization's Custom Objects wizard, you can import custom objects.
Follow these steps to import custom objects. Click each link for more details.
1.
2.
3.
4.
Specify owner, master-detail, and lookup relationships
5.
6.
7.
8.
9.
Confirm and submit your import
10.
Note: The import wizard is dynamic; it displays different screens depending on what you are importing and the setup of your organization.
Launch the wizard
1. To import custom objects, choose Your Name > Setup > Data Management > Import Custom Objects.
2. For best results, perform all of the steps provided on the introductory page.
3. Click Start the Import Wizard! to begin your import.
280
Import Your Data Accessing the Import Wizards
Choose the custom object
1. The first step of the wizard lists the custom objects that have been defined for your organization.
2. Identify the custom object you are importing by selecting the corresponding radio button.
3. Click Next.
Prevent duplicate records
1. The import wizard can compare the records in your import file with existing records in Salesforce in order to prevent duplicate records from being created as a result of your import. Indicate whether you would like to prevent duplicate records from being created. You must select
Yes
in order to update existing records.
2. If you choose Yes , then additional choices will appear:
• Choose the field that you are using to match existing records in Salesforce with records in your import file. The
External ID
option is disabled if no external ID fields have been created for your records.
• Choose what you want to happen if matches are found—only import new records, only update existing records, or update existing records and import new ones.
Note: If you have chosen to match by Salesforce ID , you can only update existing records; you cannot import new ones.
3. Click Next.
Specify owner, master-detail, and lookup relationships
1. Custom objects can be owned by users, or they can have a master-detail relationship with other records. For example, a custom object can have a custom field that creates a master-detail relationship with accounts. In that case, your import file must include the names or IDs of all associated accounts.
• If your custom objects are owned by users, then choose the field in your import file to use for matching record owners.
When you choose “Name,” the following formats are valid:
◊ First name followed by last name
◊ Last name followed by first name
◊ Alias
◊ Username
• If your records have a master-detail relationship with another kind of record, then choose the field in your import file to use for matching master records.
2. Records can have custom fields that create lookup relationships with other records. If you have included lookup fields in your import file, then check the corresponding boxes.
Note: Any related records must already exist in Salesforce before proceeding. Related records will not be updated during your import even if your import file contains different values for fields on those related records.
3. Click Next.
Set lookup record matching
1. If you checked one or more lookup fields in the previous step, select the field (name or ID) you are using to uniquely identify those related records.
2. Click Next.
281
Import Your Data Accessing the Import Wizards
Select record type
1. If the records you are importing have record types, then choose the record type that you want to assign to the records in your import file.
2. If you are inserting new records and updating existing records at the same time, then choose whether to override the record types of existing records.
3. Click Next.
Upload your import file
1. Click Browse... to provide the location of your import file.
2. Choose the character encoding of your import file. In most cases, you can accept the default value.
3. Make additional settings depending on the setup of your organization, such as whether workflow rules will be triggered and the language of the records in the import file.
4. Click Next.
Map fields
1. Map the fields in your import file to the appropriate Salesforce fields by matching the fields on the left, which includes all the columns in your import file, with the appropriate Salesforce field on the right. If the column labels in your import file exactly match field labels in Salesforce, the wizard automatically maps those fields for you. However, if two or more of your file's column labels are identical matches with a field in Salesforce, you must map the fields manually.
Note: Some Salesforce fields cannot be updated using import, for example, the
Created Date
and
Last
Modified Date . So even though you may be using an exported report as your import file, some of the Salesforce fields in your file cannot be mapped.
2. Click Next. The import wizard warns you if you have not mapped all of the fields in your import file. Unmapped field values are not imported.
Confirm and submit your import
1. Read any warning messages that the import wizard displays. Optionally, click Previous to return to earlier steps and resolve potential problems.
2. Click Import Now! to submit your import request to Salesforce.
Complete your import
1. A message indicates approximately how long the import will take. When the import operation is finished, a message from
Customer Support will be sent to the email address shown.
2. Click Finish to exit the wizard.
3. To monitor the status of your pending import, click Your Name > Setup > Monitoring > Imports.
See Also:
What Is Imported for Custom Objects?
282
Import Your Data Accessing the Import Wizards
Import My Organization's Solutions
Available in: Professional, Enterprise, Unlimited, and Developer Editions
To import solutions:
User Permissions Needed
“Import Solutions”
With the Import My Organization's Solutions wizard, you can import solutions.
Follow these steps to import solutions. Click each link for more details.
1.
2.
Choose the type of solution (multilingual solutions only)
3.
4.
Specify author and lookup relationships
5.
6.
7.
8.
9.
Confirm and submit your import
10.
Note: The import wizard is dynamic; it displays different screens depending on what you are importing and the setup of your organization.
Launch the wizard
1. To import solutions, choose
Your Name
> Setup > Data Management > Import Solutions.
2. For best results, perform all of the steps provided on the introductory page.
3. Click Start the Import Wizard! to begin your import.
Choose the type of solution (multilingual solutions only)
1. If multilingual solutions is enabled for your organization, choose to import either master solutions or translated solutions.
You cannot import both at the same time.
For each translated solution you import, include the 15 to 18 character Solution ID field of its master solution in a master solution ID column in your import file. This will help you avoid having to manually associate translated solutions with master solutions after import. To view the
Solution ID
field for master solutions, run the Translated Solutions report.
2. Select the language of the solutions you are importing from the Language drop-down list. For each import, you can only select one language so make sure your import file includes solutions in a single language.
283
Import Your Data Accessing the Import Wizards
Prevent duplicate records
1. The import wizard can compare the records in your import file with existing records in Salesforce in order to prevent duplicate records from being created as a result of your import. Indicate whether you would like to prevent duplicate records from being created. You must select Yes in order to update existing records.
2. If you choose
Yes
, then additional choices will appear:
• Choose the field that you are using to match existing records in Salesforce with records in your import file. The
External ID option is disabled if no external ID fields have been created for your records.
• Choose what you want to happen if matches are found—only import new records, only update existing records, or update existing records and import new ones.
Note: If you have chosen to match by
Salesforce ID
, you can only update existing records; you cannot import new ones.
3. Click Next.
Specify author and lookup relationships
1. Solutions are associated with authors - the users who initially created the solutions. If you have included a column in your import file to identify authors, specify the user field it contains.
When you choose “Name,” the following formats are valid:
• First name followed by last name
• Last name followed by first name
• Alias
• Username
Choose None to specify yourself as the author of the imported solutions.
2. Records can have custom fields that create lookup relationships with other records. If you have included lookup fields in your import file, then check the corresponding boxes.
Note: Any related records must already exist in Salesforce before proceeding. Related records will not be updated during your import even if your import file contains different values for fields on those related records.
3. Click Next.
Set lookup record matching
1. If you checked one or more lookup fields in the previous step, select the field (name or ID) you are using to uniquely identify those related records.
2. Click Next.
Select record type
1. If the records you are importing have record types, then choose the record type that you want to assign to the records in your import file.
2. If you are inserting new records and updating existing records at the same time, then choose whether to override the record types of existing records.
3. Click Next.
284
Import Your Data Accessing the Import Wizards
Upload your import file
1. Click Browse... to provide the location of your import file.
2. Choose the character encoding of your import file. In most cases, you can accept the default value.
3. Make additional settings depending on the setup of your organization, such as whether workflow rules will be triggered and the language of the records in the import file.
4. Click Next.
Map fields
1. Map the fields in your import file to the appropriate Salesforce fields by matching the fields on the left, which includes all the columns in your import file, with the appropriate Salesforce field on the right. If the column labels in your import file exactly match field labels in Salesforce, the wizard automatically maps those fields for you. However, if two or more of your file's column labels are identical matches with a field in Salesforce, you must map the fields manually.
Note: Some Salesforce fields cannot be updated using import, for example, the
Created Date
and
Last
Modified Date
. So even though you may be using an exported report as your import file, some of the Salesforce fields in your file cannot be mapped.
2. Click Next. The import wizard warns you if you have not mapped all of the fields in your import file. Unmapped field values are not imported.
Confirm and submit your import
1. Read any warning messages that the import wizard displays. Optionally, click Previous to return to earlier steps and resolve potential problems.
2. Click Import Now! to submit your import request to Salesforce.
Complete your import
1. A message indicates approximately how long the import will take. When the import operation is finished, a message from
Customer Support will be sent to the email address shown.
2. Click Finish to exit the wizard.
3. To monitor the status of your pending import, click
Your Name
> Setup > Monitoring > Imports.
See Also:
285
Import Your Data Using the Import Queue
Using the Import Queue
Available in: Contact Manager, Group, Professional, Enterprise, Unlimited, and Developer Editions
User Permissions Needed
To use the Import Queue: “Modify All Data”
Administrators can check the Import Queue to view details about an import or to cancel an organization import. Import details are removed from the queue three days after completion.
1. Click
Your Name
> Setup > Monitoring > Imports.
2. Select the file name of the import file to see the Import Queue Detail page for that file.
If you want to cancel an import, and the import has not started processing, click Del. You cannot cancel an import after it has started processing.
The possible values of the
Status
column are listed below:
Status
Aborted
Completed
Error
Pending
Processing
Description
The import did not complete successfully. The error details are emailed to the user who performed the import. Aborted imports can be retried within three days, but, if multiple retry attempts are made, the import cannot remain in the queue for more than 30 days from the original import attempt.
The import completed successfully without errors.
The import was processed and errors were encountered. The error details are emailed to the user who performed the import. The user can fix the errors, and then attempt the import again.
The import is in the queue but has not started processing yet.
The import is in the queue and is currently being processed.
See Also:
286
Import Your Data Undoing an Import
Undoing an Import
Available in: All Editions except Database.com
User Permissions Needed
To mass delete data: “Modify All Data”
If you import accounts, contacts, leads, or solutions by mistake, your administrator can click Your Name > Setup > Data
Management > Mass Delete Records to delete the items you mistakenly imported. View the Using Mass Delete to Undo
Imports document for instructions.
The Mass Delete Records tools do not support custom objects. If you import custom objects by mistake in Enterprise,
Unlimited, or Developer Edition, your administrator can use the Data Loader to mass delete the mistakenly imported records.
See
Performing Mass Deletes on page 301.
See Also:
D
ATA
L
OADER
Data Loader Overview
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
Data Loader is a client application for the bulk import or export of data. Use it to insert, update, delete, or export Salesforce records.
When importing data, Data Loader reads, extracts, and loads data from comma separated values (CSV) files or from a database connection. When exporting data, it outputs CSV files.
Note: If commas are not appropriate for your locale, use a tab or other delimiter.
You can use Data Loader in two different ways:
• User interface—When you use the user interface, you work interactively to specify the configuration parameters, CSV files used for import and export, and the field mappings that map the field names in your import file with the field names in
Salesforce.
287
Data Loader When to Use Data Loader
• Command line—When you use the command line, you specify the configuration, data sources, mappings, and actions in files. This enables you to set up Data Loader for automated processing.
Data Loader offers the following key features:
• An easy-to-use wizard interface for interactive use
• An alternate command line interface for automated batch operations
• Support for large files with up to 5 million records
• Drag-and-drop field mapping
• Support for all objects, including custom objects
• Can be used to process data in both Salesforce and Database.com
• Detailed success and error log files in CSV format
• A built-in CSV file viewer
• Support for Windows 7
To get started, see the following topics:
•
•
Note: In previous versions, Data Loader has been known as “AppExchange Data Loader“ and “Sforce Data Loader.”
When to Use Data Loader
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
Data Loader complements the web-based import wizards that are accessible from the Setup menu in the online application.
Refer to the following guidelines to determine which method best suits your business needs:
Use Data Loader when:
• You need to load 50,000 to 5,000,000 records. Data Loader is supported for loads of up to 5 million records. If you need to load more than 5 million records, we recommend you work with a salesforce.com partner or visit the App Exchange for a suitable partner product.
• You need to load into an object that is not yet supported by the import wizards.
• You want to schedule regular data loads, such as nightly imports.
• You want to export your data for backup purposes.
Use the import wizards when:
• You are loading less than 50,000 records.
• The object you need to import is supported by import wizards. To see what import wizards are available and thus what objects they support, click
Your Name
> Setup > Data Management.
• You want to prevent duplicates by uploading records according to account name and site, contact email address, or lead email address.
For more information about the import wizards, see
on page 238.
288
Data Loader Installing Data Loader
I
NSTALL AND
C
ONFIGURE
D
ATA
L
OADER
Installing Data Loader
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
To access the page to download Data Loader:
User Permissions Needed
“Modify All Data”
To use Data Loader: The appropriate user permission for the operation you are doing, for example, “Create” on accounts to insert new accounts
System Requirements
To use Data Loader, you need:
• Microsoft ® Windows ® 7 or Windows XP
• 120 MB free disk space
• 256 MB available memory
• Java JRE 1.6 or later (Windows 7 or Windows XP)
• Sun JVM 1.6 or later (Windows 7 or Windows XP)
• Administrator privileges on the machine
Installation Procedure
Warning: Over time, multiple versions of the Data Loader client application have been available for download.
Different versions have different entries in the Add or Remove Programs dialog in your Windows Control Panel.
Some versions were released with earlier product names such as “AppExchange Data Loader” or “Sforce Data Loader.”
You can run different versions at the same time on one computer. However, do not install multiple copies of the same version.
The latest version is always available from Salesforce at
Your Name
> Setup > Data Management > Data Loader.
If you have previously installed the latest version and want to install it again, first remove it from your computer by using the Add or Remove Programs dialog in Windows Control Panel.
1. In the application, click Your Name > Setup > Data Management > Data Loader.
2. Click Download the Data Loader and save the installer to your PC. If you're prompted to run or save the file, click Run.
If you're then prompted to allow the program to make changes to the computer, click Yes.
3. Double-click the downloaded file to launch the InstallShield wizard.
4. Click Next.
5. Accept the license agreement and click Next.
6. Accept the default installation directory, or click Change... to choose another directory. Click Next.
7. Click Install.
289
Import Your Data Configuring Data Loader
8. Click Finish.
9. To start Data Loader, double-click the Data Loader icon on your desktop, or choose Start > All Programs > salesforce.com
> Apex Data Loader > Apex Data Loader.
Tip:
If you experience login issues in the command line interface after upgrading to a new version of Data Loader, please try re-encrypting your password to solve the problem. For information on the password encryption utility, see
Encrypting From the Command Line
on page 305.
If you want to download the source code and make changes, an open source version of Data Loader is available at https://github.com/forcedotcom/dataloader .
Login Considerations
If your organization restricts IP addresses, logins from untrusted IPs are blocked until they’re activated. Salesforce automatically sends you an activation email that you can use to log in. The email contains a security token that you must add to the end of your password. For example, if your password is mypassword , and your security token is XXXXXXXXXX , you must enter mypasswordXXXXXXXXXX to log in.
Configuring Data Loader
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
Use the Settings menu to change the default operation settings of Data Loader.
1. Start Data Loader by choosing Start > Programs > salesforce.com > Data Loader > Data Loader.
2. Choose Settings > Settings.
3. Edit the fields as desired:
Field
Batch size
Insert null values
Description
In a single insert, update, upsert, or delete operation, records moving to or from Salesforce are processed in increments of this size. The maximum value is 200. We recommend a value between 50 and 100.
The maximum value is 10,000 if the Use Bulk API option is selected.
Select this option to insert blank mapped values as null values during data operations. Note that when you are updating records, this option instructs Data Loader to overwrite any existing data in mapped fields.
This option is not available if the
Use Bulk API
option is selected. Empty field values are ignored when you update records using the Bulk API. To set a field value to null when the Use Bulk API option is selected, use a field value of
#N/A
.
290
Import Your Data
Field
Assignment rule
Server host
Reset URL on Login
Compression
Timeout
Query request size
Generate status files for exports
Read all CSVs with UTF-8 encoding
Write all CSVs with UTF-8 encoding
Use European date format
Allow field truncation
Configuring Data Loader
Description
Specify the ID of the assignment rule to use for inserts, updates, and upserts. This option applies to inserts, updates, and upserts on cases and leads. It also applies to updates on accounts if your organization has territory assignment rules on accounts. The assignment rule overrides
Owner
values in your CSV file.
Enter the URL of the Salesforce server with which you want to communicate. For example, if you are loading data into a sandbox, change the URL to https://test.salesforce.com
.
By default, Salesforce resets the URL after login to the one
. To turn off this automatic reset,
disable this option.
Compression enhances the performance of Data Loader and is turned on by default. You may want to disable compression if you need to debug the underlying SOAP messages. To turn off compression, enable this option.
Specify how many seconds Data Loader waits to receive a response back from the server before returning an error for the request.
In a single export or query operation, records are returned from Salesforce in increments of this size. The maximum value is 2,000 records. Larger values may improve performance but use more memory on the client.
Select this option to generate success and error files when exporting data.
Select this option to force files to open in UTF-8 encoding, even if they were saved in a different format.
Select this option to force files to be written in UTF-8 encoding.
Select this option to support the date formats dd/MM/yyyy and dd/MM/yyyy HH:mm:ss
.
Select this option to truncate data in the following types of fields when loading that data into Salesforce: Email,
Multi-select Picklist, Phone, Picklist, Text, and Text
(Encrypted).
In Data Loader versions 14.0 and earlier, values for fields of those types are truncated by Data Loader if they are too large. In Data Loader version 15.0 and later, the load operation fails if a value is specified that is too large.
291
Import Your Data
Field
Use Bulk API
Enable serial mode for Bulk API
Upload Bulk API Batch as Zip File
Time Zone
Configuring Data Loader
Description
Selecting this option allows you to specify that the previous behavior, truncation, be used instead of the new behavior in
Data Loader versions 15.0 and later. This option is selected by default and has no effect in versions 14.0 and earlier.
This option is not available if the
Use Bulk API
option is selected. In that case, the load operation fails for the row if a value is specified that is too large for the field.
Select this option to use the Bulk API to insert, update, upsert, delete, and hard delete records. The Bulk API is optimized to load or delete a large number of records asynchronously. It’s faster than the default SOAP-based
API due to parallel processing and fewer network round-trips.
Warning: When you select the Hard Delete operation, the deleted records are not stored in the
Recycle Bin. Instead, they become immediately eligible for deletion.
Select this option to use serial instead of parallel processing for Bulk API. Processing in parallel can cause database contention. When this is severe, the load may fail. Using serial mode guarantees that batches are processed one at a time. Note that using this option may significantly increase the processing time for a load.
This option is only available if the Use Bulk API option is selected.
Select this option to use Bulk API to upload zip files containing binary attachments, such as Attachment records or Salesforce CRM Content.
This option is only available if the
Use Bulk API
option is selected.
Select this option to specify a default time zone.
If a date value does not include a time zone, this value is used.
• If no value is specified, the time zone of the computer where Data Loader is installed is used.
• If an incorrect value is entered, GMT is used as the time zone and this fact is noted in the Data Loader log.
Valid values are any time zone identifier which can be passed to the Java getTimeZone(java.lang.String) method.
292
Import Your Data Configuring Data Loader
Field
Proxy host
Proxy port
Proxy username
Proxy password
Proxy NTLM domain
Start at row
Description
The value can be a full name such as
America/Los_Angeles , or a custom ID such as
GMT-8:00
.
The host name of the proxy server, if applicable.
The proxy server port.
The username for proxy server authentication.
The password for proxy server authentication.
The name of the Windows domain used for NTLM authentication.
If your last operation failed, you can use this setting to begin where the last successful operation finished.
4. Click OK to save your settings.
See Also:
Data Loader Behavior with Bulk API Enabled
Configuring the Data Loader to Use the Bulk API
Data Loader Behavior with Bulk API Enabled
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
Enabling the Bulk API in Data Loader allows you to load or delete a large number of records faster than using the default
SOAP-based API. However, there are some differences in behavior in Data Loader when you enable the Bulk API. One important difference is that it allows you to execute a hard delete if you have the permission and license. See
on page 290.
The following settings are not available on the Settings > Settings page in Data Loader when the
Use Bulk API
option is selected:
Insert null values
This option enables Data Loader to insert blank mapped values as null
values during data operations when the Bulk
API is disabled. Empty field values are ignored when you update records using the Bulk API. To set a field value to null
when the
Use Bulk API
option is selected, use a field value of
#N/A
.
293
Import Your Data Uninstalling the Data Loader
Allow field truncation
This option directs Data Loader to truncate data for certain field types when the Bulk API is disabled. A load operation fails for the row if a value is specified that is too large for the field when the
Use Bulk API
option is selected.
See Also:
Configuring the Data Loader to Use the Bulk API
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
The Bulk API is optimized to load or delete a large number of records asynchronously. It is faster than the SOAP-based API due to parallel processing and fewer network round-trips. By default, Data Loader uses the SOAP-based API to process records.
To configure Data Loader to use the Bulk API for inserting, updating, upserting, deleting, and hard deleting records:
1. Start Data Loader by choosing Start > Programs > salesforce.com > Data Loader > Data Loader.
2. Choose Settings > Settings.
3. Select the
Use Bulk API
option.
4. Click OK.
Note:
• You can also select the Enable serial mode for Bulk API option. Processing in parallel can cause database contention. When this is severe, the load may fail. Using serial mode guarantees that batches are processed one at a time. Note that using this option may significantly increase the processing time for a load.
• Caution: When you select the Hard Delete operation, the deleted records are not stored in the Recycle Bin.
Instead, they become immediately eligible for deletion.
See Also:
Uninstalling the Data Loader
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
To uninstall the Data Loader client application:
1. Go to Start > Control Panel > Add or Remove Programs.
2. Select the Data Loader program.
294
Data Loader
3. Click Remove. The uninstaller removes the program from your computer.
U
SE
D
ATA
L
OADER
Data Types Supported by Data Loader
Data Types Supported by Data Loader
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
Data Loader supports the following data types:
Base64
String path to file (converts the file to a base64–encoded array). Base64 fields are only used to insert or update attachments and Salesforce CRM Content. For more information, see
Uploading Attachments on page 301 and
Uploading Content with the Data Loader on page 302.
Boolean
• True values (case insensitive) = yes , y , true , on , 1
• False values (case insensitive) = no , n , false , off , 0
Date Formats
We recommend you specify dates in the format yyyy-MM-ddTHH:mm:ss.SSS+/-HHmm :
• yyyy is the four-digit year
•
MM
is the two-digit month (01-12)
• dd
is the two-digit day (01-31)
• HH is the two-digit hour (00-23)
• mm is the two-digit minute (00-59)
• ss
is the two-digit seconds (00-59)
•
SSS
is the three-digit milliseconds (000-999)
• +/-HHmm
is the Zulu (UTC) time zone offset
The following date formats are also supported:
• yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
• yyyy-MM-dd'T'HH:mm:ss.SSS Pacific Standard Time
• yyyy-MM-dd'T'HH:mm:ss.SSSPacific Standard Time
• yyyy-MM-dd'T'HH:mm:ss.SSS PST
• yyyy-MM-dd'T'HH:mm:ss.SSSPST
• yyyy-MM-dd'T'HH:mm:ss.SSS GMT-08:00
• yyyy-MM-dd'T'HH:mm:ss.SSSGMT-08:00
• yyyy-MM-dd'T'HH:mm:ss.SSS -800
• yyyy-MM-dd'T'HH:mm:ss.SSS-800
295
Import Your Data Data Types Supported by Data Loader
• yyyy-MM-dd'T'HH:mm:ss
• yyyy-MM-dd HH:mm:ss
• yyyyMMdd'T'HH:mm:ss
• yyyy-MM-dd
• MM/dd/yyyy HH:mm:ss
• MM/dd/yyyy
Note the following tips for date formats:
• To enable date formats that begin with the day rather than the month, select the
Use European date format box in the Settings dialog. European date formats are dd/MM/yyyy and dd/MM/yyyy HH:mm:ss .
• If your computer's locale is east of Greenwich Mean Time (GMT), we recommend that you change your computer setting to GMT in order to avoid date adjustments when inserting or updating records.
• Only dates within a certain range are valid. The earliest valid date is 1700-01-01T00:00:00Z GMT, or just after midnight on January 1, 1700. The latest valid date is 4000-12-31T00:00:00Z GMT, or just after midnight on
December 31, 4000. These values are offset by your time zone. For example, in the Pacific time zone, the earliest valid date is 1699-12-31T16:00:00, or 4:00 PM on December 31, 1699.
Double
Standard double string
ID
A Salesforce ID is a case-sensitive 15-character or case–insensitive 18-character alphanumeric string that uniquely identifies a particular record.
Tip: To ensure data quality, make sure that all Salesforce IDs you enter in Data Loader are in the correct case.
Integer
Standard integer string
String
All valid XML strings; invalid XML characters are removed.
296
Import Your Data Exporting Data
Exporting Data
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
To export records:
To export all records:
User Permissions Needed
“Read” on the records
“Read” on the records
You can use the Data Loader export wizard to extract data from any Salesforce object. When you export, you can choose to include (Export All) or exclude (Export) soft-deleted records.
1. Start the Data Loader by choosing Start > Programs > salesforce.com > Data Loader > Data Loader.
2. Click Export or Export All . These commands can also be found in the File menu.
3. Enter your Salesforce username and password. Click Log in to log in. After your login completes successfully, click Next.
(Until you log out or close the program, you will not be asked to log in again.)
If your organization restricts IP addresses, logins from untrusted IPs are blocked until they’re activated. Salesforce automatically sends you an activation email that you can use to log in. The email contains a security token that you must add to the end of your password. For example, if your password is mypassword , and your security token is XXXXXXXXXX , you must enter mypasswordXXXXXXXXXX to log in.
4. Choose an object. For example, select the Account object. If your object name does not display in the default list, check
Show all objects
to see a complete list of objects that you can access. The objects will be listed by localized label name, with developer name noted in parentheses. For object descriptions, see the SOAP API Developer's Guide .
5. Click Browse... to select the CSV file to which the data will be exported. You can enter a new file name to create a new file or choose an existing file.
If you select an existing file, the contents of that file are replaced. Click Yes to confirm this action, or click No to choose another file.
6. Click Next.
7. Create a SOQL query for the data export. For example, check
Id
and
Name
in the query fields and click Finish. As you follow the next steps, you will see that the CSV viewer displays all the Account names and their IDs. SOQL is the Salesforce
Object Query Language that allows you to construct simple but powerful query strings. Similar to the SELECT command in SQL, SOQL allows you to specify the source object, a list of fields to retrieve, and conditions for selecting rows in the source object.
a. Choose the fields you want to export.
b. Optionally, select conditions to filter your data set. If you do not select any conditions, all the data to which you have read access will be returned.
c. Review the generated query and edit if necessary.
Tip: You can use a SOQL relationship query to include fields from a related object. For example:
Select Name, Pricebook2Id, Pricebook2.Name, Product2Id, Product2.ProductCode FROM
PricebookEntry WHERE IsActive = true
297
Import Your Data Defining Field Mappings
Or:
Select Id, LastName, Account.Name FROM Contact
When using relationship queries in Data Loader, the fully specified field names are case-sensitive. For example, using
ACCOUNT.NAME
instead of
Account.Name
does not work.
Data Loader doesn’t support nested queries or querying child objects. For example, queries similar to the following return an error:
SELECT Amount, Id, Name, (SELECT Quantity, ListPrice,
PriceBookEntry.UnitPrice, PricebookEntry.Name,
PricebookEntry.product2.Family FROM OpportunityLineItems)
FROM Opportunity
Also, Data Loader doesn’t support queries that make use of polymorphic relationships. For example, the following query results in an error:
SELECT Id, Owner.Name, Owner.Type, Owner.Id, Subject FROM Case
For more information on SOQL, see the Force.com SOQL and SOSL Reference .
8. Click Finish, then click Yes to confirm.
9. A progress information window reports the status of the operation.
10. After the operation completes, a confirmation window summarizes your results. Click View Extraction to view the CSV file, or click OK to close. For more details, see
Reviewing Output Files on page 303.
Note: Data Loader currently does not support the extraction of attachments. As a workaround, we recommend that you use the weekly export feature in the online application to export attachments.
Defining Field Mappings
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
Whenever you insert, delete, or update files, use the Mapping Dialog window to associate Salesforce fields with the columns of your CSV file. For more information, see
Inserting, Updating, or Deleting Data Using Data Loader
on page 299.
1. To automatically match fields with columns, click Auto-Match Fields to Columns. The Data Loader automatically populates the list at the bottom of the window, based on the similarity of field and column names. Note that for a delete operation, automatic matching works only on the ID field.
2. To manually match fields with columns, click and drag fields from the list of Salesforce fields at the top to the list of CSV column header names at the bottom. For example, if you are inserting new Account records where your CSV file contains the names of new accounts, click and drag the
Name
field to the right of the
NAME
column header field.
3. Optionally, click Save Mapping to save this mapping for future use. Specify a name for the SDL mapping file.
If you select an existing file, the contents of that file are replaced. Click Yes to confirm this action, or click No to choose another file.
298
Import Your Data Inserting, Updating, or Deleting Data Using Data Loader
4. Click OK to use your mapping for the current operation.
Inserting, Updating, or Deleting Data Using Data Loader
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
To insert records:
To update records:
To upsert records:
To delete records:
To hard delete records
User Permissions Needed
“Create” on the record
“Edit” on the record
“Create” or “Edit” on the record
“Delete” on the record
“Delete” on the record
The insert, update, upsert, delete, and hard delete wizards in Data Loader allow you to add new records, modify existing records, or delete existing records. Note that “upsert” is a combination of inserting and updating. If a record in your file matches an existing record, the existing record is updated with the values in your file. If no match is found, then the record is created as new. When you hard delete records, the deleted records are not stored in the Recycle Bin and become immediately eligible
for deletion. For more information, see Configuring Data Loader
on page 290.
1. Start Data Loader by choosing Start > Programs > salesforce.com > Data Loader > Data Loader.
2. Click Insert, Update, Upsert, Delete or Hard Delete. These commands can also be found in the File menu.
3. Enter your Salesforce username and password. Click Log in to log in. After your login completes successfully, click Next.
(Until you log out or close the program, you are not asked to log in again.)
If your organization restricts IP addresses, logins from untrusted IPs are blocked until they’re activated. Salesforce automatically sends you an activation email that you can use to log in. The email contains a security token that you must add to the end of your password. For example, if your password is mypassword
, and your security token is
XXXXXXXXXX
, you must enter mypasswordXXXXXXXXXX to log in.
4. Choose an object. For example, if you are inserting Account records, select Account. If your object name does not display in the default list, check Show all objects to see a complete list of the objects that you can access. The objects are listed by localized label name, with developer name noted in parentheses. For object descriptions, see the Object Reference for Salesforce and Force.com
.
5. Click Browse... to select your CSV file. For example, if you are inserting Account records, you could specify a CSV file named insertaccounts.csv
containing a Name column for the names of the new accounts.
6. Click Next. After the object and CSV file are initialized, click OK.
7. If you are performing an upsert:
a. Your CSV file must contain a column of ID values for matching against existing records. The column may be either an external ID (a custom field with the “External ID” attribute), or Id (the Salesforce record ID). From the drop-down list, select which field to use for matching. If the object has no external ID fields,
Id
is automatically used. Click Next to continue.
299
Import Your Data Inserting, Updating, or Deleting Data Using Data Loader
b. If your file includes the external IDs of an object that has a relationship to your chosen object, enable that external ID for record matching by selecting its name from the drop-down list. If you make no selection here, you can use the related object's
Id
field for matching by mapping it in the next step. Click Next to continue.
8. Define how the columns in your CSV file map to Salesforce fields. Click Choose an Existing Map to select an existing field mapping, or click Create or Edit a Map to create a new map or modify an existing map. For more details and an example of usage, see
on page 298.
9. Click Next.
10. For every operation, the Data Loader generates two unique CSV log files; one file name starts with “success,” while the other starts with “error.” Click Browse... to specify a directory for these files.
11. Click Finish to perform the operation, and then click Yes to confirm.
12. As the operation proceeds, a progress information window reports the status of the data movement.
13. After the operation completes, a confirmation window summarizes your results. Click View Successes to view your success
on page 303.
Tip:
•
If you are updating or deleting large amounts of data, review Performing Mass Updates
Deletes for tips and best practices.
• There is a five-minute limit to process 100 records when the Bulk API is enabled. Also, if it takes longer than 10 minutes to process a file, the Bulk API places the remainder of the file back in the queue for later processing. If the Bulk API continues to exceed the 10-minute limit on subsequent attempts, the file is placed back in the queue and reprocessed up to 10 times before the operation is permanently marked as failed. Even if the processing failed, some records could have completed successfully, so you must check the results. If you get a timeout error when loading a file, split your file into smaller files, and try again.
Performing Mass Updates
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
To update a large number of records at one time, we recommend the following steps:
1. Obtain your data by performing an export of the objects you wish to update, or by running a report. Make sure your report includes the record ID.
2. As a backup measure, save an extra copy of the generated CSV file.
3. Open your working file in a CSV editor such as Excel, and update your data.
Updating, or Deleting Data Using Data Loader
on page 299.
6. If you made a mistake, use the backup file to update the records to their previous values.
300
Import Your Data Uploading Attachments
Performing Mass Deletes
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
To delete a large number of records at one time using Data Loader, we recommend the following steps:
297.) Save an extra copy of the generated CSV file.
2. Next, export the records you wish to delete, this time using only the record ID as the desired criterion.
3. Launch the Data Loader and follow the delete or hard delete wizard. Map only the ID column. See
Inserting, Updating, or Deleting Data Using Data Loader
on page 299.
Uploading Attachments
You can use Data Loader to upload attachments to Salesforce. Before uploading attachments, note the following:
• If you intend to upload via the Bulk API, verify that
Upload Bulk API Batch as Zip File
on the Settings >
Settings page is enabled.
• If you are migrating attachments from a source Salesforce organization to a target Salesforce organization, begin by requesting a data export for the source organization. On the Schedule Export page, make sure to select the Include
Attachments...
checkbox, which causes the file
Attachment.csv
to be included in your export. You can use this
CSV file to upload the attachments. For more information on the export service, see
Exporting Backup Data on page 354.
To upload attachments:
1. Confirm that the CSV file you intend to use for attachment importing contains the following required columns (each column represents a Salesforce field):
• ParentId - the Salesforce ID of the parent record.
•
Name
- the name of the attachment file, such as myattachment.jpg
.
•
Body
- the absolute path to the attachment on your local drive.
Ensure that the values in the Body column contain the full file name of the attachments as they exist on your computer.
For example, if an attachment named myattachment.jpg
is located on your computer at
C:\Export
,
Body
must specify C:\Export\myattachment.jpg
. Your CSV file might look like this:
ParentId,Name,Body
50030000000VDowAAG,attachment1.jpg,C:\Export\attachment1.gif
701300000000iNHAAY,attachment2.doc,C:\Export\files\attachment2.doc
The CSV file can also include other optional Attachment fields, such as
Description
.
2. Proceed with an insert or upsert operation; see
Inserting, Updating, or Deleting Data Using Data Loader on page 299. At
the
Select data objects
step, make sure to select the
Show all Salesforce objects
checkbox and the
Attachment object name in the list.
301
Import Your Data Uploading Content with the Data Loader
Uploading Content with the Data Loader
Available in: Enterprise, Unlimited, and Developer Editions
You can use Data Loader to bulk upload documents and links into libraries in Salesforce CRM Content. Before uploading documents or links, note the following:
• If you intend to upload via the Bulk API, verify that
Upload Bulk API Batch as Zip File
on the Settings >
Settings page is enabled.
• When you upload a document from your local drive using Data Loader, you must specify the actual path in the
VersionData
and
PathOnClient
fields in the CSV file.
VersionData
identifies the location and extracts the format and PathOnClient identifies the type of document being uploaded.
• When you upload a link using the Data Loader, you must specify the URL in
ContentUrl
. Do not use
PathOnClient or VersionData to upload links.
• You can't export content using the Data Loader.
1. Create a CSV file with the following fields:
•
Title - file name.
• Description - (optional) file or link description.
Note: If there are commas in the description, use double quotes around the text.
•
VersionData
- complete file path on your local drive (for uploading documents only).
Note: Files are converted to base64 encoding on upload. This adds approximately 30% to the file size.
•
PathOnClient
- complete file path on your local drive (for uploading documents only).
•
ContentUrl
- URL (for uploading links only).
•
OwnerId - (optional) file owner, defaults to the user uploading the file.
• FirstPublishLocationId - library ID.
•
RecordTypeId
- content type ID.
Note: If you publish to a library that has restricted content types, you must specify
RecordTypeId
.
To determine the RecordTypeId
values for your organization using Data Loader, follow the steps in Exporting Data
.
Your SOQL query might look like this:
Select Id, Name FROM RecordType WHERE SobjectType = 'ContentVersion'
To determine the
RecordTypeId
values for your organization using the AJAX Toolkit:
a. Log in to Salesforce.
302
Import Your Data Reviewing Output Files
b. Enter this URL in your browser: http:// instanceName.salesforce.com/soap/ajax/27.0/debugshell.html
. Enter the instanceName
, such as na1
, for your organization. You can see the instanceName
in the URL field of your browser after logging in to Salesforce.
c. In the AJAX Toolkit Shell page type: sforce.connection.describeSObject("ContentVersion")
d. Press Enter.
e. Click on the arrows for recordTypeInfos .
All of the
RecordTypeId
values for your organization are listed.
•
TagsCsv
- (optional) tag.
A sample CSV file is:
Title,Description,VersionData,PathOnClient,OwnerId,FirstPublishLocationId,RecordTypeId,TagsCsv testfile,"This is a test file, use for bulk upload",c:\files\testfile.pdf,c:\files\testfile.pdf,005000000000000,058700000004Cd0,012300000008o2sAQG,one
299. All documents and links will be available in the specified library.
Reviewing Output Files
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
After every import or export, Data Loader generates two CSV output files that contain the results of the operation. One file name starts with “success,” while the other starts with “error.” During every export, Data Loader saves the extracted data to a
CSV file that you specify in the wizard. Data Loader has a built-in CSV file viewer with which you can open and view these files.
To view output files from a Data Loader operation:
1. Choose View > View CSV.
2. Specify the number of rows to view. Each row in the CSV file corresponds to one Salesforce record. The default is 1000.
3. To view a CSV file of your choice, click Open CSV. To view the last success file, click Open Success. To view the last error file, click Open Error. The CSV file opens in a new window.
4. Optionally, click Open in External Program to open the file in the associated external program, such as Microsoft ® Office
Excel.
The “success” file contains all of the records that were successfully loaded. In this file, there's a column for the newly generated record IDs. The “error” file contains all of the records that were rejected from the load operation. In this file, there's a column that describes why the load failed.
5. Click Close to return to the CSV Chooser window, and then click OK to exit the window.
303
Data Loader Troubleshooting Data Loader Operations
Note: To generate success files when exporting data, select the
Generate status files for exports
setting.
For more information, see
Configuring Data Loader on page 290.
Troubleshooting Data Loader Operations
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
If you need to investigate a problem with Data Loader, or if requested by salesforce.com Customer Support, you can access log files that track the operations and network connections made by Data Loader. The two log files are: sdl.log
Contains a detailed chronological list of Data Loader log entries. Log entries marked “INFO” are procedural items, such as logging in to Salesforce. Log entries marked “ERROR” are problems such as a submitted record missing a required field.
sdl_out.log
A supplemental log that contains additional information not captured in sdl.log. For example, it includes log entries for the creation of proxy server network connections.
These files can be opened with commonly available text editor programs, such as Microsoft Notepad.
You can quickly open these files by entering %TEMP%\sdl.log
and %TEMP%\sdl_out.log
in either the Run dialog or the Windows Explorer address bar.
If you are having login issues from the command line, ensure that the password provided in the configuration parameters is encrypted. If you are having login issues from the UI, you may need to obtain a new security token.
R
UN
B
ATCH
P
ROCESSES
Running in Batch Mode
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
You can run Data Loader in batch mode from the command line. See the following topics:
•
Understanding Installed Directories and Files
•
Encrypting From the Command Line
•
Upgrading Your Batch Mode Interface
•
Using the Command Line Interface
•
•
Data Loader Process Configuration Parameters
304
Import Your Data Understanding Installed Directories and Files
•
Data Loader Command Line Operations
•
•
•
Running Individual Batch Processes
•
Note: If you have used the batch mode from the command line with a version earlier than 8.0, see
Batch Mode Interface on page 306.
Understanding Installed Directories and Files
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
In versions 8.0 and later,
creates several directories under the installation directory. The following directories are involved in running the program from the command line for automated batch processing: bin
Contains the batch files encrypt.bat
process.bat
For information on running the Data Loader from the command line, see
Using the Command Line Interface on page
307.
conf
The default configuration directory. Contains the configuration files config.properties
,
Loader.class
, and log-conf.xml
.
The config.properties
file that is generated when you modify the Settings dialog in the graphical user interface is located at C:\Documents and Settings\your Windows username\Application
Data\salesforce.com\Data Loader version_number
. You can copy this file to the conf
installation directory to use it for batch processes.
samples
Contains subdirectories of sample files for reference.
File Path Convention
The file paths provided in these topics start one level below the installation directory. For example,
\bin
means
C:\Program
Files \salesforce.com\Data Loader version_number\bin , provided you accepted the default installation directory.
If you installed the program to a different location, please substitute that directory path as appropriate.
Encrypting From the Command Line
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
When running Data Loader in batch mode from the command line, you must encrypt the following configuration parameters:
305
Import Your Data Upgrading Your Batch Mode Interface
• sfdc.password
• sfdc.proxyPassword
Use the utility described below to perform encryption.
Using the Encryption Utility
Data Loader offers an encryption utility to secure passwords specified in configuration files. This utility is used to encrypt passwords, but data that you transmit using Data Loader is not encrypted.
1. Run
\bin\encrypt.bat
.
2. At the command line, follow the prompts provided to execute the following actions:
Generate a key
Key text is generated on screen from the text you provide. Carefully copy the key text to a key file, omitting any leading or trailing spaces. The key file can then be used for encryption and decryption.
Encrypt text
Generates an encrypted version of a password or other text. Optionally, you can provide a key file for the encryption.
In the configuration file, make sure that the encrypted text is copied precisely and the key file is mentioned.
Verify encrypted text
Given encrypted and decrypted versions of a password, verifies whether the encrypted password provided matches its decrypted version. A success or failure message is printed to the command line.
Upgrading Your Batch Mode Interface
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
The batch mode interface in Data Loader versions 8.0 and later aren’t backwards-compatible with earlier versions. If you’re using a version earlier than 8.0 to run batch processes, your options are as follows:
Maintain the old version for batch use
Do not uninstall your old version of Data Loader. Continue to use that version for batch processes. You can’t take advantage of newer features such as database connectivity, but your integrations will continue to work. Optionally, install the new version alongside the old version and dedicate the old version solely to batch processes.
Generate a new config.properties file from the new GUI
If you originally generated your config.properties
file from the graphical user interface, use the new version to set the same properties and generate a new file. Use this new file with the new batch mode interface. For more information, see
Using the Command Line Interface
on page 307.
Manually update your config.properties file
If your old config.properties
file was created manually, then you must manually update it for the new version. For
more information, see Understanding Installed Directories and Files
on page 305.
306
Import Your Data Using the Command Line Interface
Using the Command Line Interface
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
For automated batch operations such as nightly scheduled loads and extractions, run Data Loader from the command line.
Before running any batch operation, be sure to include your encrypted password in the configuration file. For more information,
see Introduction on page 323 and
Encrypting From the Command Line
on page 305. From the command line, navigate to the bin
directory and type process.bat
, which takes the following parameters:
• The directory containing config.properties
.
• The name of the batch process bean contained in process-conf.xml
.
For more information about using process.bat
, see
Running Individual Batch Processes on page 323.
To view tips and instructions, add -help to the command contained in process.bat
.
Data Loader runs whatever operation, file, or map is specified in the configuration file that you specify. If you do not specify a configuration directory, the current directory is used. By default, Data Loader configuration files are installed at the following location:
C:\Program Files\salesforce.com\Data Loader version number\conf
You use the process-conf.xml
file to configure batch processing. Set the name of the process in the bean element's id attribute: (for example <bean id="myProcessName">).
If you want to implement enhanced logging, use a copy of log-conf.xml
.
You can change parameters at runtime by giving param = value as program arguments. For example, adding process.operation=insert
to the command changes the configuration at runtime.
You can set the minimum and maximum heap size. For example, -Xms256m -Xmx256m sets the heap size to 256 MB.
Note: These topics only apply to Data Loader version 8.0 and later.
Tip:
If you experience login issues in the command line interface after upgrading to a new version of Data Loader, please try re-encrypting your password to solve the problem. For information on the password encryption utility, see
Encrypting From the Command Line
on page 305.
Configuring Batch Processes
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
Use \samples\conf\process-conf.xml
to configure your Data Loader processes, which are represented by ProcessRunner beans. A process should have
ProcessRunner
as the class
attribute and the following properties set in the configuration file:
307
Import Your Data name
Sets the name of the ProcessRunner bean. This value is also used as the non-generic thread name and for configuration backing files (see below).
configOverrideMap
A property of type map
where each entry represents a configuration setting: the key is the setting name; the value is the setting value.
enableLastRunOutput
If set to true (the default), output files containing information about the last run, such as sendAccountsFile_lastrun.properties
, are generated and saved to the location specified by lastRunOutputDirectory
. If set to false, the files are not generated or saved.
lastRunOutputDirectory
The directory location where output files containing information about the last run, such as sendAccountsFile_lastrun.properties
, are written. The default value is
\conf
. If enableLastRunOutput is set to false, this value is not used because the files are not generated.
The configuration backing file stores configuration parameter values from the last run for debugging purposes, and is used to load default configuration parameters in config.properties
. The settings in configOverrideMap
take precedence over those in the configuration backing file. The configuration backing file is managed programmatically and does not require any manual edits.
on page 308.
Data Loader Process Configuration Parameters
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
When running Data Loader from the command line, you can specify the following configuration parameters in the process-conf.xml
file. In some cases, the parameter is also represented in the graphical user interface at Settings > Settings.
Tip: A sample process-conf.xml
file can be found in the \samples directory that's installed with Data Loader.
Parameter Name dataAccess.readUTF8
Data Loader Process Configuration Parameters
Data
Type boolean
Equivalent
Option in
Settings
Dialog
Description
Read all
CSVs with
UTF-8 encoding
Select this option to force files to open in UTF-8 encoding, even if they were saved in a different format.
Sample value: true
308
Import Your Data Data Loader Process Configuration Parameters
Parameter Name dataAccess.writeUTF8
dataAccess.name
dataAccess.readBatchSize
dataAccess.type
dataAccess.writeBatchSize
process.enableLastRunOutput
Data
Type boolean string integer string integer process.enableExtractSuccessOutput
boolean boolean
Equivalent
Option in
Settings
Dialog
Description
Write all
CSVs with
UTF-8 encoding
Select this option to force files to be written in
UTF-8 encoding.
Sample value: true
Not applicable
(N/A)
Name of the data source to use, such as a CSV file name. For databases, use the name of the database configuration in database-conf.xml
.
Sample value: c:\dataloader\data\extractLead.csv
N/A
Number of records read from the database at a time. The maximum value is 200.
Sample value:
50
N/A
Standard or custom data source type. Standard types are csvWriter
, csvRead
, databaseWrite
, and databaseRead
.
Sample value: csvWrite
N/A
Number of records written to the database at a time. The maximum value is 2,000. Note the implication for a large parameter value: if an error occurs, all records in the batch are rolled back. In contrast, if the value is set to 1, each record is processed individually (not in batch) and errors are specific to a given record. We recommend setting the value to 1 when you need to diagnose problems with writing to a database.
Sample value: 500
Generate status files for exports
Select this option to generate success and error files when exporting data.
Sample value: true
N/A
When running Data Loader in batch mode, you can disable the generation of output files such as sendAccountsFile_lastRun.properties
.
Files of this type are saved by default to the conf directory. To stop the writing of these files, set this option to false .
309
Import Your Data Data Loader Process Configuration Parameters
Parameter Name process.encryptionKeyFile
process.initialLastRunDate
process.lastRunOutputDirectory
process.loadRowToStartAt
process.mappingFile
Data
Type string
(file name) date string
(directory)
Equivalent
Option in
Settings
Dialog
Description
Alternatively, you can change the location of the directory where these files are saved, using
process.lastRunOutputDirectory
.
Sample value: true
N/A
N/A
N/A
Name of the file that contains the encryption key.
See
Encrypting From the Command Line on
page 305.
Sample value: c:\dataloader\conf\my.key
The initial setting for the process.lastRunDate
parameter, which can be used in a SQL string and is automatically updated when a process has run successfully. For
an explanation of the date format syntax, see Date
Format must be yyyy-MM-ddTHH:mm:ss.SSS+/-HHmm . For example: 2006-04-13T13:50:32.423-0700
When running Data Loader in batch mode, you can change the location where output files such as sendAccountsFile_lastRun.properties
are written. Files of this type are saved by default to the
\conf
directory. To change the location, change the value of this option to the full path where the output files should be written.
Alternatively, you can stop the files from being written, using
.
number string
(file name)
Start at row
N/A
If your last operation failed, you can use this setting to begin where the last successful operation finished.
Sample value:
1008
Name of the field mapping file to use. See
Sample value: c:\dataloader\conf\accountExtractMap.sdl
310
Import Your Data Data Loader Process Configuration Parameters
Parameter Name process.operation
process.statusOutputDirectory
process.outputError
process.outputSuccess
process.useEuropeanDates
sfdc.assignmentRule
sfdc.bulkApiCheckStatusInterval
Data
Type string string
(directory)
Equivalent
Option in
Settings
Dialog
Description
N/A
The operation to perform. See
on page 316.
Sample value: extract
N/A
The directory where “success” and “error” output files are saved. The file names are automatically generated for each operation unless you specify otherwise in process-conf.xml
.
Sample value: c:\dataloader\status string
(file name) N/A
The name of the CSV file that stores error data from the last operation.
Sample value: c:\dataloader\status\myProcessErrors.csv
string
(file name) N/A
The name of the CSV file that stores success data from the last operation. See also
process.enableExtractSuccessOutput
on page 309.
Sample value: c:\dataloader\status\myProcessSuccesses.csv
boolean string integer
Use
European date format
Select this option to support the date formats dd/MM/yyyy
Sample value:
and dd/MM/yyyy HH:mm:ss
.
true
Specify the ID of the assignment rule to use for inserts, updates, and upserts. This option applies to inserts, updates, and upserts on cases and leads.
It also applies to updates on accounts if your organization has territory assignment rules on accounts. The assignment rule overrides
Owner values in your CSV file.
Assignment rule
Sample value:
03Mc00000026J7w
N/A
The number of milliseconds to wait between successive checks to determine if the asynchronous
Bulk API operation is complete or how many records have been processed. See also
5000.
Sample value: 5000
311
Import Your Data
Parameter Name sfdc.bulkApiSerialMode
sfdc.bulkApiZipContent
sfdc.connectionTimeoutSecs
sfdc.debugMessages
sfdc.debugMessagesFile
sfdc.enableRetries
Data Loader Process Configuration Parameters
Data
Type boolean boolean integer boolean string
(file name) boolean
Equivalent
Option in
Settings
Dialog
Description
Enable serial mode for
Bulk API
Select this option to use serial instead of parallel processing for Bulk API. Processing in parallel can cause database contention. When this is severe, the load may fail. Using serial mode guarantees that batches are processed one at a time. Note that using this option may significantly increase the processing time for a load. See also
Sample value: false
Upload
Bulk API
Batch as
Zip File
Select this option to use Bulk API to upload zip files containing binary attachments, such as
Attachment records or Salesforce CRM Content.
.
Sample value: true
N/A
The number of seconds to wait for a connection during API calls.
Sample value:
60
N/A
If true, enables SOAP message debugging. By default, messages are sent to STDOUT unless you specify an alternate location in sfdc.debugMessagesFile
.
Sample value: false
N/A
See
process.enableExtractSuccessOutput
on page 309. Stores SOAP messages sent to or from Salesforce. As messages are sent or received, they are appended to the end of the file. As the file does not have a size limit, please monitor your available disk storage appropriately.
Sample value:
\lexiloader\status\sfdcSoapTrace.log
N/A
If true, enables repeated attempts to connect to
Salesforce servers. See sfdc.maxRetries
page 314 and
page 314.
Sample value: true
312
Import Your Data
Parameter Name sfdc.endpoint
sfdc.entity
sfdc.externalIdField
sfdc.extractionRequestSize
sfdc.extractionSOQL
sfdc.insertNulls
sfdc.loadBatchSize
Data Loader Process Configuration Parameters
Data
Type
URL string string integer string boolean integer
Equivalent
Option in
Settings
Dialog
Description
Server host
Enter the URL of the Salesforce server with which you want to communicate. For example, if you are loading data into a sandbox, change the
URL to https://test.salesforce.com
.
Sample production value: https://login.salesforce.com/services/Soap/u/27.0
N/A
The Salesforce object used in the operation.
Sample value:
Lead
N/A
Used in upsert operations; specifies the custom field with the “External ID” attribute that is used as a unique identifier for data matching.
Sample value: LegacySKU__c
Query request size
In a single export or query operation, records are returned from Salesforce in increments of this size. The maximum value is 2,000 records. Larger values may improve performance but use more memory on the client.
Sample value:
500
N/A
The SOQL query for the data export.
Sample value:
SELECT Id, LastName,
FirstName, Rating, AnnualRevenue,
OwnerId FROM Lead
Insert null values
Select this option to insert blank mapped values as null
values during data operations. Note that when you are updating records, this option instructs Data Loader to overwrite any existing data in mapped fields.
Sample value: false
Batch size
In a single insert, update, upsert, or delete operation, records moving to or from Salesforce are processed in increments of this size. The maximum value is 200. We recommend a value between 50 and 100.
Sample value: 100
313
Import Your Data
Parameter Name sfdc.maxRetries
sfdc.minRetrySleepSecs
sfdc.noCompression
sfdc.password
sfdc.proxyHost
sfdc.proxyPassword
sfdc.proxyPort
sfdc.proxyUsername
sfdc.resetUrlOnLogin
Data Loader Process Configuration Parameters
Data
Type integer integer
Equivalent
Option in
Settings
Dialog
Description
The maximum number of repeated attempts to connect to Salesforce. See
Sample value:
3 N/A
The minimum number of seconds to wait between connection retries. The wait time increases with each try. See
Sample value:
2 N/A
Compression enhances the performance of Data
Loader and is turned on by default. You may want to disable compression if you need to debug the underlying SOAP messages. To turn off compression, enable this option.
Compression
Sample value: false boolean encrypted string N/A
An encrypted Salesforce password that corresponds to the username provided in
. See also
Sample value:
4285b36161c65a22
URL
Proxy host
The host name of the proxy server, if applicable.
Sample value: http://myproxy.internal.company.com
encrypted string
Proxy password integer string boolean
An encrypted password that corresponds to the proxy username provided in
on page 305.
Sample value:
4285b36161c65a22
Proxy port
The proxy server port.
Sample value: 8000
Proxy username
The username for proxy server authentication.
Sample value: jane.doe
Reset URL on Login
By default, Salesforce resets the URL after login
to the one specified in sfdc.endpoint
. To turn
314
Import Your Data
Parameter Name sfdc.timeoutSecs
sfdc.timezone
sfdc.truncateFields
Data Loader Process Configuration Parameters
Data
Type integer
Equivalent
Option in
Settings
Dialog
Description off this automatic reset, disable this option by setting it to false
.
Valid values: true (default), false
Timeout
Specify how many seconds Data Loader waits to receive a response back from the server before returning an error for the request.
Sample value:
540 string boolean
If a date value does not include a time zone, this value is used.
• If no value is specified, the time zone of the computer where Data Loader is installed is used.
• If an incorrect value is entered, GMT is used as the time zone and this fact is noted in the
Data Loader log.
Valid values are any time zone identifier which can be passed to the Java getTimeZone(java.lang.String)
method.
The value can be a full name such as
America/Los_Angeles
, or a custom ID such as
GMT-8:00
.
Time Zone
You can retrieve the default value by running the
TimeZone.getDefault()
method in Java.
This value is the time zone on the computer where Data Loader is installed.
Select this option to truncate data in the following types of fields when loading that data into
Salesforce: Email, Multi-select Picklist, Phone,
Picklist, Text, and Text (Encrypted).
In Data Loader versions 14.0 and earlier, values for fields of those types are truncated by Data
Loader if they are too large. In Data Loader version 15.0 and later, the load operation fails if a value is specified that is too large.
Allow field truncation
Selecting this option allows you to specify that the previous behavior, truncation, be used instead of the new behavior in Data Loader versions 15.0
315
Import Your Data
Parameter Name sfdc.useBulkApi
sfdc.username
Data Loader Command Line Operations
Data
Type boolean
Equivalent
Option in
Settings
Dialog
Description and later. This option is selected by default and has no effect in versions 14.0 and earlier.
This option is not available if the Use Bulk
API
option is selected. In that case, the load operation fails for the row if a value is specified that is too large for the field.
Sample value: true
Use Bulk
API
Select this option to use the Bulk API to insert, update, upsert, delete, and hard delete records.
The Bulk API is optimized to load or delete a large number of records asynchronously. It’s faster than the default SOAP-based API due to parallel processing and fewer network round-trips. See also
Sample value: true string N/A
Salesforce username. See sfdc.password
.
Sample value: [email protected]
Data Loader Command Line Operations
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
When running Data Loader in batch mode from the command line, several operations are supported. An operation represents the flow of data between Salesforce and an external data source such as a CSV file or a database. See the following list of operation names and descriptions.
Extract
Uses a Salesforce Object Query Language to export a set of records from Salesforce, then writes the exported data to a data source. Soft-deleted records are not included.
Extract All
Uses a Salesforce Object Query Language to export a set of records from Salesforce, including both existing and soft-deleted records, then writes the exported data to a data source.
Insert
Loads data from a data source into Salesforce as new records.
316
Import Your Data Configuring Database Access
Update
Loads data from a data source into Salesforce, where existing records with matching ID fields are updated.
Upsert
Loads data from a data source into Salesforce, where existing records with a matching custom external ID field are updated; records without matches are inserted as new records.
Delete
Loads data from a data source into Salesforce, where existing records with matching ID fields are deleted.
Hard Delete
Loads data from a data source into Salesforce, where existing records with matching ID fields are deleted without being stored first in the Recycle Bin.
Configuring Database Access
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
When you run Data Loader in batch mode from the command line, use \samples\conf\database-conf.xml
to configure database access objects, which you use to extract data directly from a database.
DatabaseConfig Bean
The top-level database configuration object is the DatabaseConfig bean, which has the following properties: sqlConfig
The
for the data access object that interacts with a database.
dataSource
The bean that acts as database driver and authenticator. It must refer to an implementation of javax.sql.DataSource
such as org.apache.commons.dbcp.BasicDataSource
.
The following code is an example of a DatabaseConfig bean:
<bean id="AccountInsert" class="com.salesforce.dataloader.dao.database.DatabaseConfig" singleton="true">
<property name="sqlConfig" ref="accountInsertSql"/>
</bean>
DataSource
The
DataSource
bean sets the physical information needed for database connections. It contains the following properties: driverClassName
The fully qualified name of the implementation of a JDBC driver.
url
The string for physically connecting to the database.
317
Import Your Data Configuring Database Access username
The username for logging in to the database.
password
The password for logging in to the database.
Depending on your implementation, additional information may be required. For example, use org.apache.commons.dbcp.BasicDataSource
when database connections are pooled.
The following code is an example of a DataSource bean:
<bean id="oracleRepDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
<property name="url" value="jdbc:oracle:thin:@myserver.salesforce.com:1521:TEST"/>
<property name="username" value="test"/>
<property name="password" value="test"/>
</bean>
See Also:
Spring Framework Overview
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
The Data Loader configuration files are based on the Spring Framework , which is an open source full-stack Java/J2EE application framework.
The Spring Framework allows you to use XML files to configure beans. Each bean represents an instance of an object; the parameters correspond to each object's setter methods. A typical bean has the following attributes: id
Uniquely identifies the bean to
XmlBeanFactory
, which is the class that gets objects from an XML configuration file.
class
Specifies the implementation class for the bean instance.
For more information on the Spring Framework, see the official documentation and the support forums . Note that salesforce.com
cannot guarantee the availability or accuracy of external websites.
See Also:
318
Import Your Data Configuring Database Access
Data Access Objects
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
When running Data Loader in batch mode from the command line, several data access objects are supported. A data access object allows access to an external data source outside of Salesforce. They can implement a read interface (
DataReader
), a write interface ( DataWriter ), or both. See the following list of object names and descriptions.
csvRead
Allows the reading of a comma or tab-delimited file. There should be a header row at the top of the file that describes each column.
csvWrite
Allows writing to a comma-delimited file. A header row is added to the top of the file based on the column list provided by the caller.
databaseRead
Allows the reading of a database. Use database-conf.xml
to configure database access.
databaseWrite
Allows writing to a database. Use database-conf.xml
to configure database access.
See Also:
SQL Configuration
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
When running Data Loader in batch mode from the command line, the
SqlConfig
class contains configuration parameters for accessing specific data in the database. As shown in the code samples below, queries and inserts are different but very similar. The bean must be of type com.salesforce.dataloader.dao.database.SqlConfig
and have the following properties: sqlString
The SQL code to be used by the data access object.
The SQL can contain replacement parameters that make the string dependent on configuration or operation variables.
Replacement parameters must be delimited on both sides by “@” characters. For example,
@process.lastRunDate@
.
sqlParams
A property of type map that contains descriptions of the replacement parameters specified in sqlString . Each entry represents one replacement parameter: the key is the replacement parameter's name, the value is the fully qualified Java
319
Import Your Data Configuring Database Access type to be used when the parameter is set on the SQL statement. Note that “java.sql” types are sometimes required, such as java.sql.Date
instead of java.util.Date
. For more information, see the official JDBC API documentation .
columnNames
Used when queries (
SELECT
statements) return a JDBC
ResultSet
. Contains column names for the data outputted by executing the SQL. The column names are used to access and return the output to the caller of the
DataReader interface.
SQL Query Bean Example
<bean id="accountMasterSql" class="com.salesforce.dataloader.dao.database.SqlConfig" singleton="true">
<property name="sqlString"/>
<value>
SELECT distinct
'012x00000000Ij7' recordTypeId, accounts.account_number, org.organization_name, concat (concat(parties.address1, ' '), parties.address2) billing_address, locs.city, locs.postal_code, locs.state, locs.country, parties.sic_code
from ar.hz_cust_accounts accounts, ar.hz_organization_profiles org, ar.hz_parties parties, ar.hz_party_sites party_sites, ar.hz_locations locs where accounts.PARTY_ID = org.PARTY_ID
and parties.PARTY_ID = accounts.PARTY_ID
and party_sites.PARTY_ID = accounts.PARTY_ID
and locs.LOCATION_ID = party_sites.LOCATION_ID
and (locs.last_update_date > @process.lastRunDate@ OR accounts.last_update_date > @process.lastRunDate@
</value>
</property>
<property name="columNames">
<list>
<value>recordTypeId</value>
<value>account_number</value>
<value>organization_name</value>
<value>billing_address</value>
<value>city</value>
<value>postal_code</value>
<value>state</value>
<value>country</value>
<value>sic_code</value>
</list>
</property>
<property name="sqlParams">
<map>
<entry key="process.lastRunDate" value="java.sql.Date"/>
</map>
</property>
</bean>
320
Import Your Data
SQL Insert Bean Example
<bean id="partiesInsertSql" class="com.salesforce.dataloader.dao.database.SqlConfig" singleton="true">
<property name="sqlString"/>
<value>
INSERT INTO REP.INT_PARTIES (
BILLING_ADDRESS, SIC_CODE)
VALUES (@billing_address@, @sic_code@)
</value>
</property>
<property name="sqlParams"/>
<map>
<entry key="billing_address" value="java.lang.String"/>
<entry key="sic_code" value="java.lang.String"/>
</map>
</property>
</bean>
Mapping Columns
See Also:
Mapping Columns
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
When running Data Loader in batch mode from the command line, you must create a properties file that maps values between
Salesforce and data access objects.
1. Create a new mapping file and give it an extension of .sdl
.
2. Observe the following syntax:
• On each line, pair a data source with its destination.
• In an import file, put the data source on the left, an equals sign (=) as a separator, and the destination on the right. In an export file, put the destination on the left, an equals sign (=) as a separator, and the data source on the right.
• Data sources can be either column names or constants. Surround constants with double quotation marks, as in
“sampleconstant”. Values without quotation marks are treated as column names.
• Destinations must be column names.
• You may map constants by surrounding them with double quotation marks, as in:
"Canada"=BillingCountry
3. In your configuration file, use the parameter process.mappingFile
to specify the name of your mapping file.
Note: If your field name contains a space, you must escape the space by prepending it with a backslash (
\
). For example:
Account\ Name=Name
321
Import Your Data Mapping Columns
Column Mapping Example for Data Insert
The Salesforce fields are on the right.
SLA__C=SLA__c
BILLINGCITY=BillingCity
SYSTEMMODSTAMP=
OWNERID=OwnerId
CUSTOMERPRIORITY__C=CustomerPriority__c
ANNUALREVENUE=AnnualRevenue
DESCRIPTION=Description
BILLINGSTREET=BillingStreet
SHIPPINGSTATE=ShippingState
Column Mapping Example for Data Export
The Salesforce fields are on the left.
Id=account_number
Name=name
Phone=phone
Column Mapping for Constant Values
Data Loader supports the ability to assign constants to fields when you insert, update, and export data. If you have a field that should contain the same value for each record, you specify that constant in the
.sdl
mapping file instead of specifying the field and value in the CSV file or the export query.
The constant must be enclosed in double quotation marks. For example, if you’re importing data, the syntax is
"constantvalue"=field1 .
If you have multiple fields that should contain the same value, you must specify the constant and the field names separated by commas. For example, if you’re importing data, the syntax would be
"constantvalue"=field1, field2
.
Here’s an example of an
.sdl
file for inserting data. The Salesforce fields are on the right. The first two lines map a data source to a destination field, and the last three lines map a constant to a destination field.
Name=Name
NumEmployees=NumberOfEmployees
"Aerospace"=Industry
"California"=BillingState, ShippingState
"New"=Customer_Type__c
A constant must contain at least one alphanumeric character.
Note: If you specify a constant value that contains spaces, you must escape the spaces by prepending each with a backslash (
\
). For example:
"Food\ &\ Beverage"=Industry
322
Data Loader Running Individual Batch Processes
Running Individual Batch Processes
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
To start an individual batch process use \bin\process.bat
, which requires the following parameters:
A configuration directory
The default is
\conf
.
To use an alternate directory, create a new directory and add the following files to it:
• If your process is not interactive, copy process-conf.xml
from \samples\conf .
• If your process requires database connectivity, copy database-conf.xml
from
\samples\conf
.
• Copy config.properties
from
\conf
.
A process name
The name of the ProcessRunner bean from
\samples\conf\process-conf.xml
.
Process Example process ../conf accountMasterProcess
Note: You can configure external process launchers such as the Microsoft Windows XP Scheduled Task Wizard to run processes on a schedule.
C
OMMAND
L
INE
Q
UICK
S
TART
Introduction
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
Watch a Demo: Importing Accounts Using the Data Loader Command Line Interface (5:20 minutes)
In addition to using Data Loader interactively to import and export data, you can also run it from the command line. This enables you to automate the import and export of data.
This quick start shows you how to use the Data Loader command line functionality to import data. You'll follow these steps:
•
Step 1: Create the encryption key
•
Step 2: Create the encrypted password for your login username
323
Import Your Data Prerequisites
•
Step 3: Create the Field Mapping File
•
Step 4: Create a process-conf.xml
file that contains the import configuration settings
•
Step 5: Run the process and import the data
Prerequisites
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
To step through this quick start, you should have the following:
• Data Loader installed on the computer that runs the command line process.
• The Java Runtime Environment (JRE) installed on the computer that runs the command line process.
• Familiarity with importing and exporting data by using the Data Loader interactively through the user interface. This makes it easier to understand how the command line functionality works.
Tip: When you install Data Loader, sample files are installed in the samples directory. This directory is found below the program directory, for example, C:\Program Files (x86)\salesforce.com\Apex Data Loader
22.0\samples\
. Examples of files that are used in this quick start can be found in the
\samples\conf
directory.
Step One: Create the Encryption Key
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
When you use Data Loader from the command line, there’s no user interface. Therefore, you’ll need to provide the information that you would normally enter in the user interface by using a text file named process-conf.xml
. For example, you’ll need to add to this file the username and password that Data Loader uses to log in to Salesforce. The password must be encrypted before you add it to the process-conf.xml
file, and creating the key is the first step in that process.
1. Open a command prompt window by clicking Start > All Programs > Accessories > Command Prompt. Alternatively, you can click Start > Run, enter cmd in the Open field, and click OK.
2. In the command window enter cd\ to navigate to the root directory of the drive where Data Loader is installed.
3. Navigate to the Data Loader \bin directory by entering this command. Be sure to replace the file path with the path from your system.
cd C:\Program Files (x86)\salesforce.com\Apex Data Loader 22.0\bin
4. Create an encryption key by entering the following command. Replace <seedtext> with any string.
encrypt.bat —g <seedtext>
324
Import Your Data Step Two: Create the Encrypted Password
Note: To see a list of command-line options for encrypt.bat
, type encrypt.bat
from the command line.
5. Copy the generated key from the command window to a text file named key.txt
and make a note of the file path. In this example, the generated key is e8a68b73992a7a54
.
Note: Enabling quick edit mode on a command window can make it easier to copy data to and from the window.
To enable quick edit mode, right-click the top of the window and select Properties. On the Options tab, select
QuickEdit Mode.
The encryption utility is used to encrypt passwords, but data that you transmit using Data Loader is not encrypted.
See Also:
Step Two: Create the Encrypted Password
Step Two: Create the Encrypted Password
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
In this step, you’ll create the encrypted password using the key that you generated in the previous step.
1. In the same command prompt window, enter the following command. Replace <password>with the password that Data
Loader uses to log in to Salesforce. Replace <filepath> with the file path to the key.txt
file that you created in the previous step.
encrypt.bat –e <password> "<filepath>\key.txt"
325
Import Your Data Step Three: Create the Field Mapping File
2. Copy the encrypted password that is generated by the command. You'll use this value in a later step.
See Also:
Step Three: Create the Field Mapping File
Step Three: Create the Field Mapping File
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
The field mapping file associates data sources with destinations. This is a text file, typically with an .sdl
file extension.
1. Copy the following to a text file and save it with a name of accountInsertMap.sdl
. This is a data insert so the data source is on the left of the equals sign and the destination field is on the right.
#Mapping values
#Thu May 26 16:19:33 GMT 2011
Name=Name
NumberOfEmployees=NumberOfEmployees
Industry=Industry
Tip: For complex mappings, you can use the Data Loader user interface to map source and destination fields and then save those mappings to an .sdl
file. This is done on the Mapping dialog box by clicking Save Mapping.
See Also:
Step Four: Create the Configuration File
Step Four: Create the Configuration File
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
The process-conf.xml
file contains the information that Data Loader needs to process the data. Each <bean> in the process-conf.xml
file refers to a single process such as an insert, upsert, export, and so on. Therefore, this file can contain multiple processes. In this step, you'll edit the file to insert accounts into Salesforce.
1. Make a copy of the process-conf.xml
file from the \samples\conf directory. Be sure to maintain a copy of the original because it contains examples of other types of Data Loader processing such as upserts and exports.
2. Open the file in a text editor and replace the contents with the following XML:
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="accountInsert"
326
Import Your Data Step Four: Create the Configuration File class="com.salesforce.dataloader.process.ProcessRunner" singleton="false">
<description>accountInsert job gets the account record from the CSV file and inserts it into Salesforce.</description>
<property name="name" value="accountInsert"/>
<property name="configOverrideMap">
<map>
<entry key="sfdc.debugMessages" value="true"/>
<entry key="sfdc.debugMessagesFile" value="C:\DLTest\Log\accountInsertSoapTrace.log"/>
<entry key="sfdc.endpoint" value="https://servername.salesforce.com"/>
<entry key="sfdc.username" value="[email protected]"/>
<!--Password below has been encrypted using key file, therefore, it will not work without the key setting: process.encryptionKeyFile.
The password is not a valid encrypted value, please generate the real value using the encrypt.bat utility -->
<entry key="sfdc.password" value="e8a68b73992a7a54"/>
<entry key="process.encryptionKeyFile" value="C:\DLTest\Command Line\Config\key.txt"/>
<entry key="sfdc.timeoutSecs" value="600"/>
<entry key="sfdc.loadBatchSize" value="200"/>
<entry key="sfdc.entity" value="Account"/>
<entry key="process.operation" value="insert"/>
<entry key="process.mappingFile" value="C:\DLTest\Command Line\Config\accountInsertMap.sdl"/>
<entry key="dataAccess.name" value="C:\DLTest\In\insertAccounts.csv"/>
<entry key="process.outputSuccess" value="c:\DLTest\Log\accountInsert_success.csv"/>
<entry key="process.outputError" value="c:\DLTest\Log\accountInsert_error.csv"/>
<entry key="dataAccess.type" value="csvRead"/>
<entry key="process.initialLastRunDate" value="2005-12-01T00:00:00.000-0800"/>
</map>
</property>
</bean>
3. Modify the following parameters in the process-conf.xml
file. For more information about the process configuration parameters, see
Data Loader Process Configuration Parameters on page 308.
• sfdc.endpoint
—Enter the URL of the Salesforce instance for your organization; for example, https://na1.salesforce.com
.
• sfdc.username
—Enter the username Data Loader uses to log in.
• sfdc.password
—Enter the encrypted password value that you created in step 2.
• process.mappingFile
—Enter the path and file name of the mapping file.
• dataAccess.Name
—Enter the path and file name of the data file that contains the accounts that you want to import.
• sfdc.debugMessages
—Currently set to true for troubleshooting. Set this to false after your import is up and running.
• sfdc.debugMessagesFile
—Enter the path and file name of the command line log file.
• process.outputSuccess
—Enter the path and file name of the success log file.
• process.outputError
—Enter the path and file name of the error log file.
327
Import Your Data Step Five: Import the Data
Warning: Use caution when using different XML editors to edit the process-conf.xml
file. Some editors add XML tags to the beginning and end of the file which will cause the import to fail.
See Also:
Step Five: Import the Data
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
To insert records:
To update records:
To upsert records:
To delete records:
To hard delete records:
User Permissions Needed
“Create” on the record
“Edit” on the record
“Create” or “Edit” on the record
“Delete” on the record
“Delete” on the record
Now that all the pieces are in place, you can run Data Loader from the command line and insert some new accounts.
1. Copy the following data to a file name accountInsert.csv
. This is the account data that you'll import into your organization.
Name,Industry,NumberOfEmployees
Dickenson plc,Consulting,120
GenePoint,Biotechnology,265
Express Logistics and Transport,Transportation,12300
Grand Hotels & Resorts Ltd,Hospitality,5600
2. In the command prompt window, enter the following command: process.bat "<file path to process-conf.xml>" <process name>
• Replace <file path to process-conf.xml> with the path to the directory containing process-conf.xml
.
• Replace <process name> with the process specified in process-conf.xml
.
Your command should look something like this: process.bat "C:\DLTest\Command Line\Config" accountInsert
After the process runs, the command prompt window displays success and error messages. You can also check the log files: insertAccounts_success.csv
and insertAccounts_error.csv
. After the process runs successfully, the insertAccounts_success.csv
file will contain the records that you imported along with the ID and status of each
record. For more information about the status files, see Reviewing Output Files on page 303.
328
Data Loader Data Loader Third-Party Licenses
Data Loader Third-Party Licenses
Available in: Enterprise, Unlimited, Developer, and Database.com Editions
The following third-party licenses are included with the installation of Data Loader:
Technology
Apache Jakarta Commons
BeanUtils
Apache Commons Collections
Version Number
1.6
Apache Commons Database
Connection Pooling (DBCP)
Apache Commons Logging
3.1
1.2.1
1.0.3
Apache Commons Object Pooling
Library
1.2
Apache Log4j 1.2.8
Eclipse SWT 3.452
OpenSymphony Quartz Enterprise
Job Scheduler
1.5.1
Rhino JavaScript for Java
Spring Framework
1.6R2
1.2.6
License http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-1.1
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
http://www.eclipse.org/legal/epl-v10.html
http://www.opensymphony.com/quartz/license.action
http://www.mozilla.org/MPL/MPL-1.1.txt
http://www.apache.org/licenses/LICENSE-2.0.txt
Note: Salesforce.com is not responsible for the availability or content of third-party websites.
I
MPORTING
FAQ
General Importing Questions
Available in: All Editions.
•
Can I mass upload data into Salesforce?
•
Should I use the import wizards or Connect for Outlook to upload my data into Salesforce?
329
Import Your Data General Importing Questions
•
Who in my organization can use the import wizards?
•
What permissions do I need to import records?
•
What file formats can the import wizards handle?
•
•
Are there size restrictions on my import data?
•
Why can’t I log in to Data Loader?
•
Why isn’t Data Loader importing special characters?
•
Can I import into custom fields?
•
Can I import into fields that are not on my page layout?
•
What's the difference between importing data into a custom field or into a picklist?
•
Can I delete my imported data if I make a mistake?
•
How do I update records using the Import Wizard?
•
Why do date fields import incorrectly when I use the Data Loader?
•
What does the Import Queue show me?
•
How long does it take to import a file?
•
Why might there be a delay in importing my file?
•
Can I import amounts in different currencies?
•
Can Customer Support help me import my data?
•
Can I import data in more than one language?
•
How do I perform mass updates to records?
•
How do I update fields with blank values?
•
See Also:
Importing Business Accounts and Contacts
Can I mass upload data into Salesforce?
Professional, Unlimited, Enterprise, and Developer editions have a mass import wizard for accounts, contacts, leads, and custom objects that will allow you to mass import data. In addition, Unlimited, Enterprise, and Developer editions have API access to use database mass upload tools like Data Loader.
330
Import Your Data General Importing Questions
Should I use the import wizards or Connect for Outlook to upload my data into Salesforce?
In organizations that do not use person accounts:
If you want to upload accounts and contacts for multiple users at one time, your administrator should use the Import
My Organization’s Accounts and Contacts wizard. If you want to upload your own contacts from any application other than Outlook, you should use the Import My Contacts wizard.
If you use Microsoft Outlook and want to keep your Outlook contacts, accounts, and calendar events up to date with
Salesforce, we recommend you use Salesforce for Outlook to initially sync your data and for all subsequent updates. You can also sync your Outlook data, including tasks, using Connect for Outlook.
For custom objects, leads, and solutions, your administrator must use the respective import wizard to import those kinds of records into Salesforce. You can't sync those records using Salesforce for Outlook or Connect for Outlook.
In organizations that use person accounts:
Person accounts are not supported in Salesforce for Outlook or Connect for Outlook.
If you want to upload person accounts for multiple users at one time, your administrator should use the Import My
Organization’s Person Accounts wizard. If you want to upload business accounts and contacts for multiple users at one time, your administrator should use the Import My Organization’s Business Account/Contacts wizard. If you want to upload your own person accounts, you should use the Import My Person Accounts wizard. If you want to upload your own contacts from any application other than Outlook, you should use the Import My Contacts wizard.
For custom objects, leads, and solutions, your administrator must use the respective import wizard to import those kinds of records into Salesforce.
Who in my organization can use the import wizards?
All users in your organization can use the Import My Contacts wizard. In Enterprise, Unlimited, or Developer Edition organizations with person accounts enabled, all users can use the Import My Person Accounts wizard.
Only an administrator can use the organization-wide “Import My Organization's” wizards to import accounts, contacts, leads, solutions, or custom objects for multiple users at one time. In Personal Edition, none of the organization-wide wizards are available. In Contact Manager and Group Edition, the “Import My Organization's Leads” and “Import My Organization's
Solutions” wizards are not available.
What permissions do I need to import records?
Data Loader
To import records with the Data Loader, you need “Create” permission on the record you want to import.
Import Wizard for Records You Own
Records being imported
My Contacts
Access needed
Any user
331
Import Your Data General Importing Questions
Records being imported
My Person Accounts
Access needed
“Create” on accounts
AND
“Read” on contacts
AND
“Import Personal Contacts”
AND
At least one person account record type available for your profile
Import Wizard for Records Owned By Other Users
Records being imported
My Organization’s Accounts and Contacts
My Organization’s Person Accounts
My Organization’s Leads
My Organization’s Solutions
My Organization’s Custom Objects
Access needed
Administrators
Users with the “Modify All Data” permission
Any user with “Import Person Accounts” permission
“Read”, “Create”, and “Edit” on leads
AND
“Import Leads”
Any user with “Import Solutions” permission
Any user with “Modify All Data” permission
Import Wizard for Campaign Members
Records being imported
New Campaign Members (Lead Import Wizard)
Updated Campaign Members (Campaign Update Wizard)
Access needed
“Edit” on campaigns
AND
Marketing User
checked in your user information
AND
“Import Leads”
“Edit” on campaigns
AND
“Import Leads”
AND
“Read” on contacts
Marketing User
checked in your user information
332
Import Your Data General Importing Questions
What file formats can the import wizards handle?
You can import contacts and business accounts directly from an ACT! or Outlook file, or from any CSV (comma-separated values) file, such as a GoldMine or Excel file. You can import leads, solutions, custom objects, or person accounts from any
CSV file.
Note: If commas are not appropriate for your locale, use a tab or other delimiter.
What data can be imported?
You can use import wizards to import the following records:
Contacts and business accounts
Use the Import My Contacts wizard and the Import My Organization’s Accounts and Contacts wizard to import contacts and business accounts. In organizations with person accounts, note that the Import My Organization’s Accounts and
Contacts wizard is called the Import My Organization’s Business accounts/Contacts wizard.
In Professional, Enterprise, Unlimited, and Developer Edition organizations, you can also import contact and business account notes.
Person accounts
In Enterprise, Unlimited, and Developer Edition organizations, use the Import My Person Accounts wizard to import person accounts that you own. Administrators can use the Import My Organization's Person Accounts wizard to import person accounts for multiple users.
Leads
In Professional, Enterprise, Unlimited, and Developer Edition organizations, use the Import My Organization’s Leads wizard to import leads.
Solutions
In Professional, Enterprise, Unlimited, and Developer Edition organizations, use the Import My Organization's Solutions wizard to import solutions.
Custom objects
In Contact Manager, Group, Professional, Enterprise, Unlimited, and Developer Edition organizations, use the Import
My Organization's Custom Objects wizard to import custom objects.
In the “Import My Organization's...” wizards for accounts, contacts, leads, solutions, and custom objects, administrators can import into any of the listed fields, even if a field is hidden or read-only in their page layout or field-level security settings.
Individual users can import only into the fields that are accessible to them via their page layout or field-level security settings.
Import wizards for other records are not available.
333
Import Your Data General Importing Questions
Are there size restrictions on my import data?
Yes. Your import file cannot exceed 100MB in size, and each record in the file cannot be bigger than 400KB. In addition, each imported note and each imported description cannot exceed 32KB. Descriptions longer than 32KB are truncated.
In addition to the import file limits, your import is also subject to the overall storage limits for your organization. Note that the size of your import file does not directly correlate to the storage space needed for those records. For example, an import file of 50MB in size may not create 50MB of data in Salesforce.
Why can’t I log in to Data Loader?
If you’re having trouble logging in to Data Loader, try the following solutions.
• Add a security key to the end of your password to log in to Data Loader.
• Change the Server host to point to the appropriate server in Data Loader by following these steps:
1. Start the Data Loader by navigating to Start > Programs > salesforce.com > Data Loader > Data Loader.
2. Navigate to Settings > Settings.
3. Set
Server host
to https://instance_name.salesforce.com
, where instance_name
is the Salesforce instance you’re on.
4. Click OK to save your settings.
• Ask your administrator whether you’re working behind a proxy server. If so, adjust your Data Loader settings. If you’re using APIs that are behind a proxy server, the proxy server prevents the APIs from connecting with Salesforce servers; you won’t see information about the APIs under Login History.
Why isn’t Data Loader importing special characters?
If Data Loader fails to import special characters such as ö, ñ, or é, your source data file might not be properly encoded. To ensure the file is properly encoded:
1. Make any modifications to your source data file in .xls format.
2. In Microsoft ® Excel ® , save a copy of your file as a Unicode Text file.
3. Open the Unicode Text file you just saved with a text editor.
4. Click File > Save As to change the following file settings:
• File name extension—
.csv
• Save as type—All Files
• Encoding—UTF-8
5. Click Save, and close the file.
Note: Don’t open the file after you have saved the settings or you may revert the encoding changes.
334
Import Your Data
6. Import the data using Data Loader as you normally would, and select the newly created .csv file.
General Importing Questions
Can I import into custom fields?
Yes. Your administrator must create the custom fields prior to import.
For checkbox fields, records with a value of 1 in the field are imported as checked while a value of 0 is not checked.
Can I import into fields that are not on my page layout?
No. You can import only into the fields that are accessible to you via your page layout or field-level security settings. However, in the organization-wide import wizards for accounts, contacts, leads, solutions, and custom objects, administrators have access to import into any of the listed fields, even if a field is hidden or read-only in their page layout or field-level security settings.
What's the difference between importing data into a custom field or into a picklist?
When you have data that does not match any of the standard fields, your administrator can create a custom field for that data prior to import. For example, you might want a Middle Name field for contacts. During import, you map your data to that custom field.
A picklist is a field with a predefined set of values from which you pick. For example, the Rating picklist has predefined values of “Hot,” “Warm,” and “Cold.” You should import your data into an existing picklist when that picklist accurately represents your data, even if the exact values do not match. The import wizards warn you before importing any new picklist values. However, the wizards will accept any value for a picklist field, even if the value is not predefined. Your administrator can later edit the picklist to include the needed values. Note that the import wizards do not allow you to import more than
100 new picklist or multi-select picklist values for any field during a single import.
Can I delete my imported data if I make a mistake?
Your administrator can choose
Your Name
> Setup > Data Management > Mass Delete Records to perform a mass delete of accounts, contacts, leads, or solutions that you mistakenly imported. You cannot mass delete mistakenly imported custom objects.
View the Using Mass Delete to Undo Imports document for instructions.
For organization imports that have not begun processing, you can cancel an import in the Import Queue. Click
Your Name
> Setup > Monitoring > Imports. Alternatively, click
Your Name
> Setup > Data Management, choose one of the import wizards, and then select the import queue link. The import queue is not accessible to Personal Edition organizations.
335
Import Your Data General Importing Questions
How do I update records using the Import Wizard?
You can use the Import Wizard to update leads, contacts, or accounts using the record’s ID as the unique identifier. These steps do not apply to custom objects.
Note: These steps assume you have administrator-level of knowledge with Salesforce.
Before you begin, prepare the data you’re updating.
1. Create a tabular report for the records you’re updating, including the record ID and the fields you’re updating.
2. Save the report locally as a .csv file for backup purposes.
3. Click Save As to create a new version of the .csv file and make your changes to the data.
4. Click Save.
After you have updated the report, import the .csv file into Salesforce. The steps vary based on the records you’re updating.
To Update Leads
1. Click Setup > Administration Setup > Data Management > Import Leads > Start the Import Wizard!.
2. Under Matching Type, choose Salesforce.com ID. Click Next.
3. Select Overwrite existing lead values.
4. Map the Lead ID field to the Lead ID column in your local file, as well as all other fields.
5. Review, and click Import Now!.
To Update Accounts or Contacts
1. Click Setup > Administration Setup > Data Management > Import Accounts/Contacts > Start the Import Wizard!.
2. Click Next, and then click Choose File to select the file you’re importing.
3. Under Contact Matching Type, choose Salesforce.com ID. The Account Matching Type automatically matches the
Contact Matching Type. Click Next.
4. Map the
Contact Id
field to the Contact ID column in your local file, and map the other contact fields. Click Next.
5. Map the contact phone and address fields. Click Next.
6. Select Overwrite existing account values, map the Account Id field to the Account ID column in your local file, and map the other account fields. Click Next.
7. Map the extra import fields, and click Next.
8. Click Import Now!.
The import wizard matches the record IDs in your file with the record IDs in Salesforce and updates the fields that were mapped.
Why do date fields import incorrectly when I use the Data Loader?
When importing date fields using the Data Loader, sometimes dates import incorrectly because the Data Loader converts the date specified in the imported .csv file to GMT. If your machine’s time zone isn’t GMT or if your machine’s clock adjusts for daylight savings time (DST), your dates may be off by a day.
336
Import Your Data General Importing Questions
To prevent the Data Loader from adjusting the date when it converts to GMT, directly change the format of cells containing dates to reflect the native time zone.
1. Open your .csv file in Microsoft ® Excel ® .
2. In each cell in which you entered dates, add hour data to represent the native time zone. For example, if the date is June
9, 2011 and the time zone is GMT+8, enter June 9, 2011 8:00 . Excel will reformat this to 6/9/2011 8:00.
3. Right-click the cell in which you entered dates, and click Format Cells.
4. Click Number > Custom.
5. In
Type
, enter yyyy-mm-ddThh:mm:ss.sssZ
. For example, if the cell was 6/9/2011 8:00 , it’s now
2011–06–09T08:00:00.00Z
.
What does the Import Queue show me?
Click
Your Name
> Setup > Monitoring > Imports. The Import Queue
shows all of the unprocessed files you have submitted using the import wizards under
Your Name
> Setup > Data Management. You can see when each file was submitted, its status, and a processing time estimate. Click Del to cancel an import file that has not begun processing. The import queue is not accessible to Personal Edition organizations.
How long does it take to import a file?
For the individual user import wizard, the length of time required depends on the amount of data, but on average it only takes a few minutes.
The administrator import wizards work asynchronously, and you will receive a notification email after your file has been successfully imported. The asynchronous import can take a few minutes to no more than 24 hours.
Administrators, except in Personal Edition, can also check the Import Queue to view the progress of import files. Click
Your
Name
> Setup > Monitoring > Imports. To expedite the import process, we recommend you review the directions in
on page 238.
Why might there be a delay in importing my file?
In order to manage the volume of imports and ensure that all users receive the highest level of performance, organization import files are accepted in “asynchronous” mode. This means that your file passes through a controlled queue and will be imported when the system can best manage the data, however your organization import will not take longer than 24 hours to complete. You will receive a notification email when the import is complete.
Can I import amounts in different currencies?
If your Group, Professional, Enterprise, Unlimited, or Developer Edition organization has set up the ability to use multiple currencies, you can import amounts in different currencies using the
Currency ISO Code
column in your import file.
337
Import Your Data General Importing Questions
Can Customer Support help me import my data?
Customer Support is available to assist Group, Professional, Enterprise, and Unlimited Edition organizations throughout the import process.
Can I import data in more than one language?
The import wizard imports one language at a time, the language of the user doing the import. If you have the same data in different languages, run an import for each additional language.
How do I perform mass updates to records?
To update more than 50,000 but less than 5 million records, use Data Loader.
To update more than 5 million records, we recommend you work with a salesforce.com partner or visit the App Exchange for a suitable partner product.
How do I update fields with blank values?
To replace fields with null values, you must use Data Loader.
1. Choose Start > All Programs > salesforce.com > Data Loader > Data Loader to open Data Loader.
2. Click Export and complete the wizard. When the operation finishes, click View Extraction.
3. Click Open in external program to open your data in Excel. Blank out the fields you want to update.
4. In Data Loader, choose Settings > Settings, and select Insert null values. Click OK to save your settings.
5. Click Update and follow the wizard to reimport your data.
What is an external ID?
When importing custom objects, solutions, or person accounts, you can use external IDs to prevent duplicate records from being created as a result of the import operation.
An external ID is a custom field that has the “External ID” attribute, meaning that it contains unique record identifiers from a system outside of Salesforce. When you select this option, the import wizard will detect existing records in Salesforce that have the same external ID. Note that this operation is not case-sensitive - for example, “ABC” will be matched with “abc”.
However, there is an exception: if the custom field has the separate “Unique” attribute and the case-sensitive option for that attribute is selected, uppercase and lowercase letters will not be considered identical.
338
Importing FAQ Importing Business Accounts and Contacts
Importing Business Accounts and Contacts
Available in: All Editions
•
How many contact and business account records can I import?
•
How do I prepare my contact data?
•
What do I do with extra data that does not match any contact or business account fields?
•
Can the import wizards de-duplicate my contact and business account data?
•
When do the import wizards create new contacts and business accounts?
•
Can the import wizards change the ownership of existing contacts and business accounts?
•
Can I import contact and business account records that are owned by different people?
•
Can the contact and business account import wizards recognize similar names?
•
Can I import existing contact and business account data to add information?
•
How do the import wizards associate contacts and business accounts?
•
What type of data integrity warnings can I possibly expect?
•
Can I synchronize my contact and business account data after I’ve imported it?
How many contact and business account records can I import?
For organizations without person accounts, individual users can import up to 500 records during each import session, and administrators can import up to 50,000 records at a time running the Import My Organization’s Accounts and Contacts wizard.
For organizations with person accounts, users can run the Import My Organization’s Accounts and Contacts wizard.
If you have more than the allowable number of records, simply repeat the import process. In addition to the record limits on each import, your import is also subject to the overall storage limits for your organization.
How do I prepare my contact data?
1. Export your contacts and business accounts from their source.
2. For individual imports from ACT! or Outlook, review the default field mappings and modify your data if necessary. For individual imports from other sources or organization imports, use Excel to clean up your data and label your import columns with the field names listed under
Field Mapping for Other Data Sources and Organization Import
.
3. Save the file in a CSV format and start the appropriate import wizard.
339
Import Your Data Importing Business Accounts and Contacts
What do I do with extra data that does not match any contact or business account fields?
In the import wizards, Professional, Enterprise, Unlimited, and Developer Edition users can choose to import miscellaneous data into business account or contact
Note
fields, or not import it at all. When importing into notes, the wizard creates a single business account or contact
Note
field for the data.
Alternatively, your administrator can create custom fields for the miscellaneous data prior to the import. In Personal, Contact
Manager, and Group Edition organizations, miscellaneous data is not imported unless your administrator creates custom fields.
Can the import wizards de-duplicate my contact and business account data?
The Import My Contacts wizard and the Import My Organization’s Accounts and Contacts wizard attempt to eliminate duplicate contacts and business accounts. In organizations with person accounts, note that the Import My Organization’s
Accounts and Contacts wizard is called the Import My Organization’s Business accounts/Contacts wizard. The import wizards can merge data in your import file with existing records in Salesforce only if you are the owner of or have read/write access to the existing records. You can specify criteria for avoiding duplicates by choosing a
Matching Type
. Your personal contacts can be matched by name or email. Your organization’s contacts can be matched by Salesforce ID, name, or email. Your organization’s business accounts can be matched by Salesforce ID or by name and site.
Avoiding Duplicate Business Accounts
The import wizards attempt to avoid duplicate business accounts based on:
• If
Salesforce ID
is the
Account Matching Type
:
Business accounts are matched according to their account ID. That is, if there is a record in your import file that has the same ID as a record in Salesforce, then that record will be updated in Salesforce.
• If
Name and Site
is the
Account Matching Type
:
◊ If two accounts have the same
Account Name
and
Account Site
, the wizards add your import data to the existing data in Salesforce.
◊ If more than one record in your import file has the same Account Name and Account Site , the wizards merge those records and create only one account in Salesforce.
◊ If two accounts have “similar”
Account Name
and
Account Site
values, the wizards add your import data to the existing data in Salesforce
◊ If the
Account Site
field is empty in your import file, the wizards match just on the
Account Name
field, ignoring any site values that may exist in Salesforce.
◊ Local name fields are imported but not checked for duplicates.
• The wizards do not overwrite any existing business account fields unless you check the Overwrite existing account values
box in the wizard.
With this box checked, you can insert or update existing business account fields with new data. However, you cannot use this checkbox to update existing field data with blank values. With this box unchecked, the wizard updates any empty business account fields, but does not touch any fields with existing data.
Avoiding Duplicate Contacts
340
Import Your Data Importing Business Accounts and Contacts
The import wizards attempt to avoid duplicate contacts based on:
• If Salesforce ID is the Contact Matching Type :
Contacts are matched according to their contact ID. That is, if there is a record in your import file that has the same ID as a record in Salesforce, then that record will be updated in Salesforce.
• If Name is the Contact Matching Type :
◊ For contacts with the same Account Name , Account Site , First Name , and Last Name (or the same Account
Name
,
Account Site
, and
Full Name
), the wizards merge your import data with existing data in Salesforce. The contact name by itself is not sufficient information for matching; you must also include the contact’s business account.
◊ If two contacts have “similar” names in the Account Name , Account Site , and First Name and Last Name (or
Full Name ) fields, the wizards merge the contacts into one record in Salesforce. However, if two contacts have the same First Name (Local) or Last Name (Local), the wizard will not merge those records.
• If
is the
Contact Matching Type
:
Contacts are matched according to their email within the scope of a given business account. That is, within a specified business account, if a contact in your import file has the same email as a contact in Salesforce, then that contact will be updated in Salesforce. If you are not matching by email and there is an existing contact in Salesforce with the same email, then a new contact will be created for that business account.
• In the absence of any record matching between your import file and Salesforce, the wizards merge duplicate records in your import file to create only one new contact in Salesforce.
For business account and contact notes in Professional, Enterprise, Unlimited, and Developer Edition organizations, the wizards de-duplicate the notes in your import file if an existing business account or contact note has the exact same text.
Avoiding Duplicate Leads
The Import My Organization’s Leads wizard can eliminate duplicate leads if you choose a Matching Type of Salesforce
ID , Name , or Email .
When do the import wizards create new contacts and business accounts?
• If any of the contacts or business accounts in your import file do not match an existing record, the wizard creates a new contact or business account.
• If you do not have object-level permission to update an object or read/write sharing access to an existing business account or contact record that matches your import data, the wizard creates a new record owned by you.
• If you are matching records by name, the wizards create new records based on specific fields in your import file:
Field in Your Import File
Account Site
Record Created in Salesforce
The wizards attempt to match this field to an existing business account with the same
Account Name
. If the
Account Name matches but the Account Site does not, a new business account is created.
If the Account Name matches but the Account Site is empty in the import file, the wizard updates the existing business account but does not overwrite the existing site value unless you check the
Overwrite existing account values box in the wizard.
341
Import Your Data
Field in Your Import File
Outlook Manager's Name
Reports To
Parent Account
Importing Business Accounts and Contacts
Record Created in Salesforce
When this field is mapped to the contact
Reports To
field, the wizards attempt to match the manager’s name to an existing contact within the same business account. If no contact exists for the manager within the same business account, a new one is created. For contacts that are not attached to business accounts, the wizards try to match the
Manager's Name
field to a contact from any business account.
The wizards attempt to match the name to an existing contact within the same business account. If no contact exists with that name in the same business account, a new one is created. For contacts that are not attached to business accounts, the wizards try to match the
Reports To
field to any matching contact from any business account.
The wizards attempt to match the name in this field to an existing business account. If no business account exists with that name, a new one is created.
Can the import wizards change the ownership of existing contacts and business accounts?
No. For individual imports, the wizard creates new records with you as the owner. For existing records that have matching names, the wizard only updates records that you own or records to which you have read/write access. The ownership of these records is not changed.
For organization imports, the wizard tries to merge existing data that matches, but it never changes the record ownership, regardless of the Record Owner values in your import file. New and updated records are marked as having been created or modified by the administrator doing the import. This does not affect the record ownership.
Can I import contact and business account records that are owned by different people?
Yes, but only if you are the administrator, are using the organization import wizard, and are not in a Personal Edition organization.
If your sharing model is Public Read/Write, new duplicate records that are owned by different users are de-duplicated and merged into a single record whenever possible. For example, if two users have new records for Trident Inc. in your import file, only one account named “Trident Inc.” is created. If the record in your import file matches an existing record in Salesforce, the two records are merged if the record owner has access to edit the existing Salesforce record.
If your organization has Private or Public Read Only sharing, then two records are always created, unless the record already exists and the relevant users have access to edit that existing record.
342
Import Your Data Importing Business Accounts and Contacts
You must add a
Record Owner
column to your import file so that the owner of the original data becomes the owner in the system. In the Record Owner column, enter the users’ full usernames (for example, “[email protected]”) or first and last names (for example, “Joe Smith”, or “Smith Joe” for Asian locales). This enables each user to maintain ownership of their records, without overriding the sharing model. When importing records by Salesforce record ID, the Record Owner field in your import file is ignored. All records retain their existing owners; record owners cannot be updated using the import wizard.
Can the contact and business account import wizards recognize similar names?
The wizards can recognize slight differences between business account names, business account sites, and contact names. The wizards use the following rules in determining whether business account names, business account sites, or contact names are the same and should be merged:
• Case is ignored, “Tom Jones” = “Tom JONES”
• Punctuation is ignored in business account names and sites, “I.B.M.” = “IBM”
• Spaces are ignored in business account names and sites, “Home Link” = “HomeLink”
• The following words are ignored if they appear at the beginning or end of the business account name and are separated by spaces or punctuation. For example, “The Gap”, “Gap, The”, and “Gap Company” are all merged into one business account.
The
Corp
Incorporated
PLC
Co
Corporation
Ltd
LLC
Inc
Company
International
Intl
• Salutations are ignored in contact names, “Mr. Tom Jones” = “Tom Jones”
• “.com” is NOT ignored in business account names, for example, “acme.com” is not merged with “Acme”
• Middle names and initials are NOT ignored in contact names, “Tom T. Jones” is not merged with “Tom Jones”
Can I import existing contact and business account data to add information?
When you import existing contacts, new information is added to the contact. Note that the contact in your import file must match the existing contact in the system.
To import existing business account data, check the
Overwrite existing account values
box on the mapping page of the wizard. With this box checked, you can insert or update existing business account fields with new data. However, you cannot use this checkbox to update existing field data with blank values. You can update existing data only if you own the record or have read/write access to it. With this box unchecked, the wizard updates any empty business account fields, but does not touch any fields with existing data.
343
Importing FAQ Importing Person Accounts
How do the import wizards associate contacts and business accounts?
Import file rows that have both a business account name and a contact name create a business account and a contact, with the contact(s) attached to that business account. You can have multiple contacts listed with the same business account name.
Business accounts without related contacts just create a business account record. Contacts without business account names just create a contact record.
What type of data integrity warnings can I possibly expect?
Typical data integrity issues include values that are too long and invalid data, such as dates in the wrong format. The wizards simply truncate data that is too long and ignore invalid data, but the records are still imported. In addition, the administrator wizards offer you the chance to review the warnings before proceeding with the import.
Can I synchronize my contact and business account data after I’ve imported it?
Yes. However, if you plan to regularly synchronize with Outlook, we recommend that you simply synchronize your data rather than importing it via one of the import wizards.
Importing Person Accounts
Available in: Enterprise, Unlimited, and Developer Editions
•
How do I prevent duplicate person accounts?
•
How do I use the import wizard to mass update existing person accounts?
•
Which person account fields are required for importing?
•
Can I update lookup fields for my person accounts?
How do I prevent duplicate person accounts?
To prevent duplicate person account records from being created as a result of your import, populate a column in your import file with the names, email addresses, Salesforce IDs, or external IDs of the person accounts. These are the fields that can be used to match rows in your import file with existing records in Salesforce. In the wizard, you can specify the field you are using for record matching and what action to take when a matching existing record is found.
344
Import Your Data Importing Person Accounts
How do I use the import wizard to mass update existing person accounts?
To mass update existing person account records via the import wizards:
1. Run a person account report and export the results to Excel. To enable record matching, make sure to include the name, email address, Salesforce ID, or external ID field in the report.
2. Use Excel or a similar application to update field values in the import file as desired.
3. If you own the records in your import file, launch the Import My Person Accounts wizard at
Your Name
> Setup > Import
> Import Person Accounts. If the records in your import file are owned by multiple different users, launch the Import
My Organization's Person Accounts wizard at
Your Name
> Setup > Data Management > Import Person Accounts.
4. At the Prevent Duplicates step:
• If you are using the Import My Organization's Person Accounts wizard, choose the
Yes
radio button. This option is not included in the other wizard.
• In the “Which field...” section, choose the field in your file to use for record matching: name, Salesforce ID, email address, or external ID.
• In the “If existing records...” section, choose the second option,
Update existing records and do not insert any new records .
5. Proceed with the remaining steps in the wizard.
6. After finishing the wizard and receiving the email notification that the process has completed, verify in Salesforce that the records have been updated as you intended.
Which person account fields are required for importing?
Each person account has a name field that should be included in your import file. In addition, if your administrator has defined universally required custom fields for person accounts, those fields should be included in your import file.
Can I update lookup fields for my person accounts?
Yes, if person accounts have a lookup relationship with another object, you can use the import wizard to update the value of that lookup field. We recommend the following procedure:
1. Run a person account report and export the results to Excel. In the report, include the Salesforce IDs of both the person account and the object referenced in the lookup field.
2. Use Excel or a similar application to update field values in the import file as desired.
3. Start the Import My Organization's Person Accounts wizard by going to Your Name > Setup > Data Management >
Import Person Accounts.
4. At the Prevent Duplicates step:
• Choose the
Yes
radio button.
• Choose
Salesforce ID
.
•
Update existing records and do not insert any new records
is automatically selected because you are matching by Salesforce ID.
5. At the Specify Relationships step:
345
Importing FAQ Importing Leads
• Specify the record owner field in your import file.
• Check the box that corresponds to the lookup field you are including in your import file.
6. At the Define Lookup Matching step, choose
Salesforce ID
.
Note: Any related records must already exist in Salesforce before proceeding. Related records will not be updated during your import even if your import file contains different values for fields on those related records.
7. After finishing the wizard and receiving the email notification that the process has completed, verify in Salesforce that the person account records have been updated as you intended.
Importing Leads
Available in: Professional, Enterprise, Unlimited, and Developer Editions
•
•
•
Who are imported leads assigned to?
•
What happens to duplicate leads in my import file?
•
Can I update existing leads during lead import?
•
How do I prepare my lead import file?
•
How many leads can I import?
50,000 at a time.
In addition to the record limits on each import, your import is also subject to the overall storage limits for your organization.
Who can import leads?
Only administrators, and users with the “Import Leads” permission, can import leads using the Import My Organization’s
Leads wizard.
Who are imported leads assigned to?
Imported leads are assigned to users or queues according to the lead assignment rule chosen in the wizard. If you do not choose an assignment rule or if the rule fails to properly assign the lead, then the administrator doing the import is assigned as the owner of the imported leads. Alternatively, you can add a
Record Owner
column to your import file to specify the lead owners (either users or queues). In addition, when importing records by Salesforce record ID, the
Record Owner
field in your import file is ignored. All records retain their existing owners; record owners cannot be updated using the import wizard.
346
Import Your Data Importing Leads
What happens to duplicate leads in my import file?
The import wizard de-duplicates leads in your import file if you choose a
Matching Type
of
Salesforce ID
,
Name
, or
Email . Alternately, if you choose a Matching Type of None , duplicate leads will be created in Salesforce and you can merge them later.
When importing new leads for a campaign via the Lead Import Wizard, the Matching Type option is not available; the wizard does not merge duplicate records. However, if you are using the Campaign Update Wizard, duplicate leads are not created. The
Lead ID
field in your import file ensures that the correct, existing lead will be updated with the campaign status information.
Can I update existing leads during lead import?
Yes, if you use a Matching Type of Salesforce ID , Name , or Email . For example, if you are matching by email and a record in your source file has the same email as a lead in Salesforce, then that lead will be updated in Salesforce, provided you have read/write access to that lead. If you are not matching by email and there is a record in Salesforce with the same email, then a new lead will be created.
How do I prepare my lead import file?
Save your import data as a CSV (comma-separated values) file, then mark each column in your file with the appropriate lead field label, as specified in Field Mapping for Importing Leads.
Note: If commas are not appropriate for your locale, use a tab or other delimiter.
Can I mass-convert leads?
No, Salesforce doesn’t support mass-converting leads. Consider the following alternatives.
• Export the leads you want to convert through the Data Loader or one of the APIs, ensure that you have an account created for the lead you’re importing, and insert them back into Salesforce as contacts.
Note: In the activity history there won’t be an entry noting that the contact was created by the Data Loader or an API call.
• Use the convertLead DML operation. The convertLead DML operation converts a lead into an account and contact, as well as (optionally) an opportunity.
Note: Before you convert the leads, be sure to start with clean data. Your leads won’t convert if they:
◊ Belong to different companies
◊ Already exist as a contact
347
Importing FAQ Importing Campaign Members
◊ Match multiple contacts
• Find a third-party app on AppExchange .
Note: Third-party apps are likely at an additional cost and may not have the exact functionality you want.
Importing Campaign Members
Available in: Professional, Enterprise, Unlimited, and Developer Editions
•
Why are there two campaign import wizards?
•
How many campaign members can I import?
•
Who can import campaign members?
•
What status is assigned to campaign members?
•
How do I prepare my campaign import file?
Why are there two campaign import wizards?
You can access the campaign import wizards via the Add Members - Import File and Update & Add Members - Import
File links on the Manage Members page, which is available from any campaign detail page. The wizards are:
• Lead Import Wizard: To access this wizard from a campaign detail page, click Manage Members > Add Members -
Import File > Import Leads. Use this wizard to import leads. It imports a list of names, creates or updates leads in the system, and associates those leads with your campaign.
• Campaign Update Wizard: To access this wizard from a campaign detail page, click Manage Members > Update & Add
Members - Import File > Update & Add Campaign Members. Use this wizard to update the campaign member statuses of existing leads and contacts. It imports a list of existing Salesforce contacts and leads, associates them with your campaign, and updates their response history.
How many campaign members can I import?
The number of campaign members that can be imported is determined by the following wizards:
• Lead Import Wizard: Import up to 50,000 leads at one time.
• Campaign Update Wizard: Update up to 50,000 existing contacts and leads at one time.
In addition to the record limits, your import is also subject to the overall storage limits for your organization.
348
Importing FAQ Importing Solutions
Who can import campaign members?
In order to use the campaign import wizards to import new leads for a campaign or update the campaign history for multiple leads and contacts, users must have the
Marketing User
checkbox selected on their personal information. They must also have the Marketing User profile (or the “Edit” permission on campaigns and “Import Leads” permission).
What status is assigned to campaign members?
With the campaign import wizards, you can assign a campaign member status to a lead or contact in one of two ways:
• Add a
Status
column to your import file. Enter the status for each lead or contact on the campaign.
• Select a default status in the campaign import wizard. Any lead or contact with a blank or invalid status in your import file will automatically be assigned to the default status.
How do I prepare my campaign import file?
A campaign import file can be prepared by using one of the following wizards:
• Lead Import Wizard: Prepare your import file of new leads using Excel.
• Campaign Update Wizard: Update only the member status of an existing lead or contact. Your import file must include a
Status
column plus a Record Id column that contains the unique Salesforce
Contact ID
or
Lead ID
values for the leads and contacts.
Importing Solutions
Available in: Professional, Enterprise, Unlimited, and Developer Editions
•
How many solutions can I import into my organization?
•
How do I prevent duplicate solutions?
•
Can I use the import wizard to mass update existing solution records?
•
Can I update lookup fields for my solutions?
•
Can I import solution categories?
•
Can I import solutions written in HTML format?
•
Which solution fields are required for importing?
How many solutions can I import into my organization?
50,000 at a time.
349
Import Your Data Importing Solutions
In addition to the record limits on each import, your import is also subject to the overall storage limits for your organization.
How do I prevent duplicate solutions?
To prevent duplicate solutions from being created as a result of your import, include a column in your import file that has either solution titles, Salesforce IDs, or external IDs. These are the fields that can be used to match rows in your import file with existing records in Salesforce. In the wizard, you can specify the field you are using for record matching and what action to take when a matching existing record is found.
Can I use the import wizard to mass update existing solution records?
Yes, you can mass update existing solution records via the import wizard:
1. Run a solution report and export the results to Excel. To enable record matching, make sure to include the solution title,
Salesforce ID, or external ID field in the report.
2. Use Excel or a similar application to update field values in the import file as desired.
3. Start the Import My Organization's Solutions wizard by going to
Your Name
> Setup > Data Management > Import
Solutions.
4. At the Prevent Duplicates step:
• Choose the
Yes
radio button.
• Choose the field for record matching that you included in your file: name, Salesforce ID, or external ID.
• Choose the option
Update existing records and do not insert any new records
.
5. After finishing the wizard and receiving the email notification that the process has completed, verify in Salesforce that the solution records have been updated as you intended.
Can I update lookup fields for my solutions?
Yes. If your solutions have a custom field that creates a lookup relationship with a custom object, you can use the import wizard to update the value of that field. We recommend the following procedure:
1. Run a solution report and export the results to Excel. Include the Salesforce IDs of both the solution and the lookup field in the report.
2. Use Excel or a similar application to update field values in the import file as desired.
3. Start the Import My Organization's Solutions wizard by going to
Your Name
> Setup > Data Management > Import
Solutions.
4. At the Prevent Duplicates step:
• Choose the Yes radio button.
• Choose Salesforce ID .
•
Update existing records and do not insert any new records is automatically selected because you are matching by Salesforce ID.
5. At the Specify Relationships step:
350
Importing FAQ Importing Custom Objects
• Choose the author field, if any, in your import file.
• Check the box that corresponds to the lookup field you are including in your import file.
6. At the Define Lookup Matching step, choose
Salesforce ID
.
7. After finishing the wizard and receiving the email notification that the process has completed, verify in Salesforce that the solution records have been updated as you intended.
Can I import solution categories?
Categories for solutions cannot be imported at this time.
Can I import solutions written in HTML format?
Yes. However, unless your organization has enabled HTML solutions, HTML tags will display in the solutions after they are imported.
Which solution fields are required for importing?
For data quality reasons, you should provide a solution title for each solution you are importing. If you are updating existing solutions and a row in your import file does not have a solution title or you do not map the solution title field, the wizard does not change the existing solution title. However, if you are importing new solutions and a row in your import file does not have a solution title or you do not map the solution title field, the record will be created with the value “[Not Provided]” as the solution title. In addition, if your administrator has defined universally required custom fields for solutions, those fields should be included in your import file.
Importing Custom Objects
Available in: Contact Manager, Group, Professional, Enterprise, Unlimited, and Developer Editions
•
How many custom objects can I import into my organization?
•
How do I prevent duplicate custom object records?
•
Can I use the import wizard to mass update existing custom object records?
•
Which fields are required to import custom objects?
•
Can I update lookup fields for my custom object?
•
Why does the import wizard not allow me to match on the record owner?
•
Can I use the import wizard to transfer custom objects to other users?
351
Import Your Data Importing Custom Objects
How many custom objects can I import into my organization?
You can import up to 50,000 records for a given custom object at one time.
In addition to the record limits on each import, your import is also subject to the overall storage limits for your organization.
How do I prevent duplicate custom object records?
To prevent duplicate custom object records from being created as a result of your import, include a column in your import file that has either record names, Salesforce IDs, or external IDs. These are the fields that can be used to match rows in your import file with existing records in Salesforce. In the wizard, you can specify the field you are using for record matching and what action to take when a matching existing record is found.
Can I use the import wizard to mass update existing custom object records?
Yes, you can mass update existing custom object records via the import wizard:
1. Run a custom object report and export the results to Excel. To enable record matching, make sure to include the name,
Salesforce ID, or external ID field in the report.
2. Use Excel or a similar application to update field values in the import file as desired.
3. Start the Import My Organization's Custom Objects wizard by going to
Your Name
> Setup > Data Management >
Import Custom Objects.
4. At the Prevent Duplicates step:
• Choose the
Yes
radio button.
• Choose the field for record matching that you included in your file: name, Salesforce ID, or external ID.
• Choose the option
Update existing records and do not insert any new records
.
5. After finishing the wizard and receiving the email notification that the process has completed, verify in Salesforce that the custom object records have been updated as you intended.
Which fields are required to import custom objects?
Each custom object has a name field that should be included in your import file. In addition, if your custom object has a master-detail relationship with another kind of record, then you must provide the name, Salesforce ID, or external ID of the master record. If the wizard does not find a match for the master record, that custom object record will not be imported. Also, if your administrator has defined universally required custom fields for the custom object, those fields should be included in your import file.
352
Import Your Data Importing Custom Objects
Can I update lookup fields for my custom object?
Yes, if your custom object has a lookup relationship with another object, you can use the import wizard to update the value of that field. We recommend the following procedure:
1. Run a custom object report and export the results to Excel. Include the Salesforce IDs of both the custom object and the lookup field in the report.
2. Use Excel or a similar application to update field values in the import file as desired.
3. Start the Import My Organization's Custom Objects wizard by going to
Your Name
> Setup > Data Management >
Import Custom Objects.
4. At the Prevent Duplicates step:
• Choose the
Yes
radio button.
• Choose Salesforce ID .
•
Update existing records and do not insert any new records is automatically selected because you are matching by Salesforce ID.
5. At the Specify Relationships step:
• Choose the record owner field, if any, in your import file.
• Check the box that corresponds to the lookup field you are including in your import file.
6. At the Define Lookup Matching step, choose
Salesforce ID
.
7. After finishing the wizard and receiving the email notification that the process has completed, verify in Salesforce that the custom object records have been updated as you intended.
Note that if a custom object has a master-detail relationship with another object, you cannot update the value of the required master record via the import wizard.
Why does the import wizard not allow me to match on the record owner?
If your custom object has a master-detail relationship with another kind of record, then the record owner of the custom object is automatically set to the owner of the master record and cannot be changed.
Can I use the import wizard to transfer custom objects to other users?
Yes, as long as the user to whom you are transferring the record has the “Read” permission for the custom object.
353
Scarica
Pubblicità