How to Mass Create, Update, Delete & Transfer Records in Salesforce

When working with data in Salesforce, many times there is a desire to mass manipulate records rather than doing it one by one.

Here is a quick recap of all the different options available to you to mass create, update, delete & transfer records in Salesforce.

  1. Use Salesforce standard feature (where available)

  2. Flows

  3. Apex Code

  4. Custom UI with Apex Code

  5. Data Import Wizard

  6. Data Loader

  7. Tools available on AppExchange

Let’s check some of these options out a little more in detail.

Mass Create Records

To create multiple records at a time, you can use Data Import Wizard, Data Loader, Flow, third-party tools on AppExchange, or a custom Apex trigger. When planning to use Flow or an Apex trigger, you can initiate the record creation on field updates or when some other record is created. Process Builder cannot be used in this case as it can create only one record at a time. However, you can use Process Builder to launch a Flow.

Mass Update Records

As an end user, if you have a requirement to update many records at a time, for example, a Sales Rep needs to update Lead or Opportunity statuses or a Support Rep needs to update Cases, then list views can be used in this case to update records in one go. Admins & Developers can use any of the automation tools mentioned above except for Process Builder.

Mass Delete Records

Generally, end users do not have permission to delete records, but if your org does allow, then as an Admin, you can install & set up the ‘Mass Delete’ AppExchange package for them. As an Admin or Developer, if you are testing some configuration on standard objects in a developer org or sandbox and you have a lot of records created as a result, then use the Mass Delete Records out-of-the-box Salesforce feature. The AppExchange package and Salesforce feature both work only with standard objects.

Mass Transfer Records

When people switch jobs or roles, the records owned by them in Salesforce may need to be transferred to someone else. To make this process easier, use the Mass Transfer Records out-of-the-box Salesforce feature. This tool comes in handy even when someone gets a promotion, switches job role/department, or is on a vacation/sabbatical.

Without further ado, let’s dive right in to learn how to actually perform these tasks. Here’s what we will be covering in this guide:

  • How to Mass Create Records

  • How to Mass Update Records

  • How to Mass Delete Records

    • Using Salesforce Mass Delete Tool

    • Using Mass Delete AppExchange Package

  • How to Mass Transfer Records

References & Useful URLs

  1. Mass Update Records in Salesforce - (5 mins) https://help.salesforce.com/articleView?id=000315142&language=en_US&type=1&mode=1

  2. Delete Multiple Records and Reports - (5 mins) https://help.salesforce.com/articleView?id=admin_massdelete.htm&type=5

  3. Mass Transfer Records - (5 mins) https://help.salesforce.com/articleView?id=admin_transfer.htm&type=5