You can easily import external data into Salesforce. Supported data sources include any program that can save data in the comma delimited text format (.csv).
Salesforce offers two main methods for importing data.
- Data Import Wizard—this tool, accessible through the Setup menu, lets you import data in common standard objects, such as contacts, leads, accounts, as well as data in custom objects. It can import up to 50,000 records at a time. It provides a simple interface to specify the configuration parameters, data sources, and the field mappings that map the field names in your import file with the field names in Salesforce.
- Data Loader—this is a client application that can import up to five million records at a time, of any data type, either from files or a database connection. It can be operated either through the user interface or the command line. In the latter case, you need to specify data sources, field mappings, and other parameters via configuration files. This makes it possible to automate the import process, using API calls.
Use the Data Import Wizard When:
- You need to load less than 50,000 records.
- The objects you need to import are supported by the wizard.
- You don’t need the import process to be automated.
Use Data Loader When:
- You need to load 50,000 to five million records. If you need to load more than 5 million records, we recommend you work with a Salesforce partner or visit the AppExchange for a suitable partner product.
- You need to load into an object that is not supported by the Data Import Wizard.
- You want to schedule regular data loads, such as nightly imports.
Follow these steps before you start importing any data.
- Use your existing software to create an export file.
- Clean up the import file for accuracy and consistency. This involves updating the data to remove duplicates, delete unnecessary information, correct spelling and other errors, and enforce naming conventions.
- Compare your data fields with the Salesforce fields you can import into, and verify that your data will be mapped into the appropriate Salesforce fields. You might need to fine-tune the mapping before starting the import. For details, see Field Mapping for Data Sources in the online help.
- Make any configuration changes required in Salesforce to handle the imported data. For example, you might need to create new custom fields, add new values to picklists, or temporarily deactivate workflow rules.
This information can help you integrate your imported data into Salesforce.
- New Values for Picklists and Multi-Select Picklists—If you import a picklist value that doesn’t match an existing picklist value:
- For an unrestricted picklist, the Data Import Wizard uses the value that’s in the import file.
- For a restricted picklist, the Data Import Wizard uses the picklist’s default value.
- Multi-Select Picklists—To import multiple values into a multi-select picklist, separate the values by a semicolon in your import file.
- Checkboxes—To import data into a checkbox field, use 1 for checked values and 0 for unchecked values.
- Default Values—For picklist, multi-select picklist, and checkbox fields, if you do not map the field in the import wizard, the default value for the field, if any, is automatically inserted into the new or updated record.
- Date/Time Fields—Ensure that the format of any date/time fields you are importing matches how they display in Salesforce per your locale setting.
- Formula Fields—Formula fields cannot accept imported data because they are read-only.
- Field Validation Rules—Salesforce runs validation rules on records before they are imported. Records that fail validation aren’t imported. Consider deactivating the appropriate validation rules before running an import if they affect the records you are importing.
You can easily export data from Salesforce, either manually or on an automatic schedule. The data is exported as a set of comma-separated values (CSV) files. This provides a convenient way to export your data, either for backup or for importing into a different system.
Salesforce offers two main methods for exporting data.
- Data Export Wizard—this is an in-browser wizard, accessible through the Setup menu. It allows you to export data manually once every six days (for weekly export) or 28 days (for monthly export). You can also export data automatically, at weekly or monthly intervals.
- Data Loader—this is a client application that you must install separately. It can be operated either through the user interface or the command line. The latter option is useful if you want to automate the export process, or use APIs to integrate with another system.
Follow these steps to export data using the wizard.
- From Setup, enter Data Export in the Quick Find box, then select Data Export and Export Now or Schedule Export.
- The Export Now option prepares your files for export immediately. This option is only available if enough time has passed since your last export.
- The Schedule Export option allows you to schedule the export process for weekly or monthly intervals.
- Select the desired encoding for your export file.
- If you want images, documents, attachments, and so on included in your data, select the appropriate options.
- Select Replace carriage returns with spaces to have spaces instead of carriage returns or line breaks in your export files. This is useful if you plan to use your export files for importing or other integrations.
- If you're scheduling your export, select the frequency (only available for organizations with monthly exports), start and end dates, and time of day for your scheduled export.
- Under Exported Data, select the types of data to include in your export. We recommend that you select Include all data if you’re not familiar with the terminology used for some of the types of data.
- Click Start Export or Save.Salesforce creates a zip archive of CSV files and emails you when it's ready. Exports will complete as soon as possible, however we can't guarantee the date and time the export will complete. Large exports are broken up into multiple files. Follow the link in the email or click Data Export to download the zip file. Zip files are deleted 48 hours after the email is sent.
No comments:
Post a Comment