Insert Operation in Salesforce Data Loader [Detailed Guide for Beginners]

I worked in an organization that uses Salesforce CRM. Recently, we launched a new product and ran a campaign to promote it. From this campaign, we got 10000 new leads, which we stored in an Excel file.

Now, to follow up on all those leads, the sales team wants to store them in a single Salesforce lead object. Now, instead of adding them one by one, we can use the Insert Operation in Salesforce Data Loader to upload all 10000 leads from the Excel (CSV) file into Salesforce.

In this article, I will explain how to use the insert operation in Salesforce Data Loader to create multiple records at once in Salesforce objects.

Insert Operation in Salesforce Data Loader

The Insert option in Salesforce Data Loader is used to add or create new records in Salesforce. When we have data that does not exist in Salesforce, such as new Leads, Accounts, or Contacts, we use the Insert option to upload it from a file.

For example, if you ran a marketing campaign and got many new leads in an Excel file, you can use Data Loader to upload all those leads at one time. You just need to save the Excel file as a CSV file and then use the Insert option to load it into Salesforce.

In the Insert process, you select the object (such as Lead or Account), choose your CSV file, and map the file’s fields to Salesforce fields. Field mapping means telling Salesforce which column in the file should go into which field in Salesforce.

After mapping, Data Loader will insert all records from the file into Salesforce. If the data is correct, the records will be created successfully. If there is any problem, Data Loader gives you an error file so you can fix it and upload again.

How to Use the Insert Operation in Salesforce Data Loader

In the steps below, I will explain how to create new records in Salesforce from an external Excel file using the Data Loader insert operation. So users can create new records in bulk with a few clicks.

To insert lead records into Salesforce via Data Loader, ensure you have installed Data Loader in your system and have the required permission to create, update, and delete the lead records.

  1. First, we should have a CSV field with the required field columns to create a lead record in Salesforce. In the CSV file below, you can see we have some lead information with required fields in Salesforce leads.
    • If your file contains a date field, then the date should be in the MM-DD-YYYY format.
Salesforce Data Loader Insert Operation
  1. When you open the Data Loader, you first have to select the operation you want to perform, such as Insert, Update, or Delete.
    • If you have not logged in, it will prompt you to log in to Salesforce using your username, password, and security token.
Login to Data Loader in Salesforce
  1. After logging in, select the Salesforce object where you want to insert the data. Here, I want to create lead records, so I have selected the Lead object.
    • Next, you choose your CSV file where you have stored the records that you want to insert.
Insert Records From CSV File into Salesforce object
  1. In this step, we have to map the file fields with Salesforce fields.
    • Some fields will automatically get mapped because the field names in the file match the Salesforce field names.
    • But you must cross-check to make sure the correct fields are matched.
    • If any fields are not matched automatically, you need to map them manually before running the upload.
    • To map fields manually, click the Create or Edit a Map button.
Map Fields in Salesforce Data Loader
  1. To map the fields that are not automatically matched, find the unmapped fields in the list and drag and drop them to the correct Salesforce fields.
    • Then click the OK button. It will take you back to the previous step. After that, click the Next button to continue.
Map Fields Manfully in Salesforce Data Loader
  1. In this step, select a folder where Data Loader will save the success file (records successfully saved in Salesforce) and the error file (records that failed to save due to errors).
    • Then click the Finish button to proceed.
Salesforce Data Loader Success and Failed Records
  1. When the upload is finished, you will see the View Success and View Error buttons. If you want to proceed, just click the OK button.
Insert Operation in Salesforce Data Loader

In the image below, you can see all the records that were created using the Insert operation in Salesforce Data Loader.

How to Insert Record using Data Loader in Salesforce

In this way, we can use the Insert operation in Salesforce Data Loader to create multiple new records from a CSV file into Salesforce at once.

Conclusion

I hope you have got a clear idea about how to use the Insert operation in Salesforce Data Loader to create multiple records at once in Salesforce objects. With this feature, users do not need to create records one by one. They can upload a large amount of data in a single process using a CSV file.

It also helps to avoid mistakes that can happen when entering data manually. By using Data Loader, you can quickly add new Leads, Accounts, Contacts, or any other Salesforce records in bulk.

You may like to read:

Agentforce in Salesforce

DOWNLOAD FREE AGENTFORCE EBOOK

Start with AgentForce in Salesforce. Create your first agent and deploy to your Salesforce Org.

Salesforce flows complete guide

FREE SALESFORCE FLOW EBOOK

Learn how to work with flows in Salesforce with 5 different real time examples.