Skip to main content

How to Guide - Salesforce Data Import: Step 3- Test & Upload

Testing.  Taste is lacking.

                                 Importing Data to Salesforce using a Spreadsheet or .CSV Files


Trailhead Baby readers, like yourself, are very smart, so it should go without saying that testing the data upload with a Salesforce sandbox is a best practice.  Yes, it will increase the workload, but inserting a small set of records first, say 10 of each object, will ensure that your order is correct.  Imaging uploading a large batch of records to production incorrectly!  Weeding out 1,000 incorrect inserts out of 10,000 total accounts would be unpleasant!  Even worse, incorrectly inserted data could overwrite existing accounts.  Eeek!  (Admins- I know we like to click, but fixing this would be too much clicking!  Even Trailhead Babies have to sleep sometime!)

Data Import Steps:
3) Test and Upload
Before uploading any records, start by downloading data loader.  First time data loader user?
Watch:
You can also read the Data Loader Guide on developer.Salesforce.com.

Importing Leads
Leads are the simplest object to upload thanks to the Data Import Wizard.  Need a tutorial?  This article provides step-by-step instructions.  A word of caution - test all imports, even simple ones with a sandbox first!  A few weeks ago, I helped my mother import a batch of new leads from Tahoe Dreamin.  Simple enough.  The problem - I made an "oops!" and forgot to associate the leads with a campaign.  She had to click through every lead, one-by-one, in order to associate each person with the campaign.  Sorry mom! I should have tested the import in a sandbox or inserted a handful of leads before tackled the whole batch.
http://www.dummies.com/business/customers/how-to-import-your-leads-into-salesforce/

Importing Accounts and Contacts
Accounts and Contacts can be inserted using the Data Import Wizard or with data loader.  Personally, I prefer data loader:
1) Insert the Accounts
2) Extract the account name and record IDs
3) Patch the account record IDs into the Contact spreadsheet 
4) Insert the Contacts


If you prefer to use the Data Import Wizard - Watch:

Importing Opportunities
Data loader, not the Data Import Wizard, must be used to insert Opportunities.  
1) Extract the account names and record IDs
2) Patch the account record ID's into the Opportunity spreadsheet
3) Insert the Opportunities

Importing Opportunity Contact Roles
1) Extract the contact record ID's and the opportunity record ID's
2) Patch the ID's into the Opportunity Contact Role spreadsheet
3) Insert the Opportunity Contact Roles

The main point- This is a step by step process, and there are a lot of steps for a seemingly simple upload.  Organization and understanding the structure of the Salesforce Org is key!  

Clean Data | Determine the Insert Order | Test & Insert


Importing a few more objects?

The more complicated the insert, the more necessary it becomes to have all of your pieces in the correct order.  Let's take a look at a 15 object restore.  The dependencies between tables have expanded with the addition of more objects! It's more than knowing which objects you need - You need the correct order and all of the dependencies.

Objects for Insert

More complicated restores: Use a third party solution such as CopyStorm/Restore where you can push a few buttons, and have the application insert all of the records in the correct order.
(The 15 object restore displayed above... I completed it in 30 seconds with CopyStorm/Restore.  No data loader or recordID patching needed.)


Confused about RecordID patching?  Error messages from data loader? Read the next post for FAQ!


Comments

Popular posts from this blog

Service Cloud Specialist Superbadge - 4,5,6,7

Part of doing the Service Cloud Specialist superbadge is trying new things, so I am putting up picture of new things that I've tried recently.  One of my favorite new things this week was taking a shower with my whole block collection.  Mom put me in the shower, and I sneaked out to grab the block bin and dumped it in.  I'm concerned to share photos because of the slight nudity, however, I can assure you that it was a glorious adventure.  Instead, I'll share my favorite Saturday new thing- walking to the coffee shop for a sprinkle donut!  Back to the superbadge... Challenge 4 Case Routing If you haven't taken the Onmi Channel module yet, now is a good time! I kept that particular module open one on screen while I walked through this step.  It is hard to give many hints about this step without giving away too many details - so - the best advice is to read through the challenge and label each step with the corresponding Salesforce term.  (IE - "The channel, Sto

Service Cloud Specialist Superbadge - 1,2,3

A confession - I know next to nothing about service cloud.  While I was excited that a new superbadge was available, it made me a little nervous that I had to do all of the prerequisites and tackle new things like macros.  New things - new year - let's get started! (Right after I finish guitar practice) If you are also a service cloud novice, the Omni-Channel Basics is a crucial prerequisite even though it is not officially required. Challenge 1 App Appearance  This, like all superbadges, requires a careful read through the instructions prior to any clicking.  I found it helpful to take a separate notebook and write down the steps that I would need for each challenge step - for example -  My rough notes for challenge 1: Create 2 profiles  Tweak service Console 3 new items on utility bar Allow access for new profiles Create User  Beware - After editing the service console, you might have to edit the new profiles.  I found it necessary to click "edit&quo

Business Administration Specialist Superbadge- 3 & 4

This afternoon, I added a genius wig in an attempt to look a little older and more experienced.  The free lemonade offer worked!  I made two dollars today!  A huge thank you to Jocelyn Fennewald , Salesforce MVP, for pointing out the "remove all columns" option within the report creator.  When you start a create a new report, simply click to start with a clean screen.  If you are familiar with report and dashboards, this challenge should only take 30 or so minutes to complete.  Below are tips and gotchas for each report / dashboard.  If you need more help, leave a comment! Reports Accounts by Market To create the "Market" row grouping, use a bucket field. Make sure that the correct date range is selected. High Value Residential  This report includes: 1 filter, 1 grouping, and 1 summarized field.  Rated Accounts by State The record count for state and account rating are automatically added. Note the filter.  Open Support Cases You ma