Top 3 Ways to Mass Update Salesforce Records

Editor’s note: This article has been updated for accuracy and comprehensiveness in February 2024.

As we all know, Salesforce keeps playing a leading role among integrated CRM platforms. More and more businesses are taking advantage of it nowadays. However, those of us who used Salesforce at least once in our life came across the situation when we needed to quickly update large data volumes and needed to do it quickly and easily with minimum efforts. However, Salesforce’s built-in tools do not cover all the scenarios, which users may require, and that is why data loaders started gaining more and more pace.

There is a variety of data loaders either desktop or web-based on the Internet, which you can use for this purpose. Today, we would like to focus on such a cloud-based solution as Skyvia. With this data loader, you can mass update Salesforce records in two ways — either by uploading a ready-made CSV file or, if the records for updating can be received from Salesforce itself, by selecting Salesforce as source and target and setting the needed filters.

Alternatively, you can choose the Skyvia Query product and use SQL to update data in bulk. With Skyvia Query, you have two options — either enter SQL statements via code editor if you are an SQL professional or compose statements with visual query builder if you are an SQL beginner.

Table of contents

  1. Salesforce Mass Update via Data Loader Using CSV
  2. Salesforce Mass Update via Data Loader Using Filters
  3. Salesforce Mass Update via Query Using SQL
  4. Built-in Salesforce Features for Mass Updating
  5. Using Salesforce Apex for Custom Mass Update Solutions
  6. Third-party Tools for Mass Updating in Salesforce
  7. Automating Mass Updates in Salesforce
  8. Conclusion

Salesforce Mass Update via Data Loader Using CSV

When it comes to the most popular method of updating data in bulk, updating via CSV files takes the first place. No wonder it is so widely used for those people who have hundreds or thousands of records in a CSV file and who need to update records asap that is the perfect and fastest solution.

Below, we explicitly describe how to mass-update Salesforce records with Skyvia Data Loader via import operation. As an example, we mass update leads in Salesforce. Our leads have changed the employer company, and we would like to change the old company to a new one in bulk in Salesforce. We add extra lookup keys to map FirstName and LastName columns for reliability.

Taking the below steps, you will be able to mass update tasks in Salesforce, mass update addresses in Salesforce or any other SFDC records in the similar way.

Discover best pricing

Simple Step-by-Step Instruction

To successfully update Salesforce records via CSV files, follow the below steps:

  1. Register a free Skyvia account.
  2. Create a new import package in Skyvia by clicking +NEW in the top menu and selecting Import in the Integration column.
Automatically update Salesforce records via CSV files 1

In the opened package editor window check whether the source type — CSV upload manually — is selected. Then, select the Salesforce connection from the drop-down list as a target.

If you haven’t had enough time to create the Salesforce connection in Skyvia yet, click +New connection at the bottom of the drop-down list. The detailed procedure for creating a connection is described in our How to Import Data into Salesforce tutorial. Check it out for more details.

When source and target have been selected, add a task to the import package by clicking the Add new link on the right.

Automatically update Salesforce records via CSV files 2

When the task editor opens, upload the required CSV file. The columns, which you have in the CSV file, will be displayed on the right of the task editor. Pay attention to the CSV Separator parameter. It should be selected correctly to display columns as a table (as on our screenshot). When everything looks fine, click Next step to proceed with target settings.

Automatically update Salesforce records via CSV files 3

In the Target drop-down list, select the Lead object. Then, select Update as an operation type and go further.

Automatically update Salesforce records via CSV files 4

On the Mapping Definition tab, map source columns to target columns. If you have Lead IDs in your CSV file, the ID column is mapped automatically.

If you do not have Lead IDs, you can use Target Lookup. To use it, you need to have a column or a set of columns in a CSV file, which will be used to uniquely identify the record you want to update in Salesforce. This can be any other column than Salesforce ID or even multiple columns.

In our CSV file, we don’t have IDs that is why we select the Target Lookup mapping. As a next step we select Lead in the Lookup Object drop-down list and Id value in the Result Column list.

Under the Lookup Key Column, in the first drop-down list, we choose Company. In the second drop-down list, we select Constant and below enter the company name we want to be replaced in Salesforce.

To add another Lookup Key Column, click +Add Lookup Key. In the first drop-down list, we select FirstName. In the second drop-down list, we remain Column as it is. In the third drop-down list, we select FirstName. We click +Add Lookup Key again and repeat the same action but with LastName. Adding extra lookup keys helps you better find required leads and replace an old employer company for a new one.

Automatically update Salesforce records via CSV files 5

After you have finished with the ID column, proceed with the Company column. You need to select Constant and enter the company name, which should be inserted instead of the old one. At the end, click Save to complete your task.

Automatically update Salesforce records via CSV files 6

Create and run your package by clicking the corresponding buttons in the title bar. You can check your package status on the Monitor tab. Uploading a result CSV will help you to visually check updated records.

Automatically update Salesforce records via CSV files 7

As you see, everything is quite simple and easy to configure. In the same way, you can mass update any Salesforce fields or objects you need to.

Salesforce Mass Update via Data Loader Using Filters

Another way to update data with Skyvia Data Loader is to do it through filters. This alternative way is the right solution if the records you need to update can be received from Salesforce itself. As an example, let us mass update a contact owner in Salesforce.

Simple Step-by-Step Instruction

To find out how to mass update contacts in Salesforce through filters, perform the following easy steps:

  1. Create a new import package in Skyvia as described above.
  2. When the package editor opens, click Data Source database or cloud app under Source Type and select the Salesforce connection as a source. Then, select the same Salesforce connection as a target. When both connections are selected, proceed with adding a task to the import package. After clicking the Add new link, you are dropped into the task editor window.
Automatically update Salesforce records via CSV files 8

On the Source Definition tab of the task editor window, select Contact in the Source drop-down list.

Afterward, apply filters to select records for the update. In the Filter section, click the +Condition button on the right and set the condition according to which contacts will be updated. In the first drop-down list, we select Owner. In the second drop-down list, we select Email as we want to update a contact owner by email. In the third drop-down list, we select equals and enter an email. In our example, the contact owner we want to change has the following email address: [email protected].

Automatically update Salesforce records via CSV files 9
  1. In Skyvia, you are also free to add multiple filters, which can be united in groups. Each group can consist of several filters and/or subgroups united with a logical operator AND or OR. Find out more about it in the Filter Settings topic. When everything is ready on the Source Definition tab, click Next step to proceed further.
  2. On the Target Definition tab of the task editor window, select the same Contact object in the Target drop-down list. Then, select Update as an operation type and go further.
Automatically update Salesforce records via CSV files 10

On the Mapping Definition tab, map the source columns to the target columns.

Columns are actually mapped automatically. However, we only need to map the Id and OwnerId columns. The Id column should be mapped through column mapping — it will be used to search for a record to update, and the OwnerId column should be mapped through target lookup. The Target Lookup mapping allows getting the ID directly from target tables by other fields, identifying rows, such as emails, names, for example.

Automatically update Salesforce records via CSV files 11

We click Clear Mapping on the right of the task editor to clear mapping of unneeded fields and map Id column through Column mapping. Next, we select the Target Lookup mapping for OwnerId column. We automatically receive User value in the Lookup Object drop-down list and Id value in the Result Column drop-down list.

Under Lookup Key Column, select the target lookup key column — Email value. Two new drop-down lists are displayed. The first determines how to select the lookup object rows. It is set to Column by default. You need to change it to Constant and enter an email address of a new contact owner. When you are ready with a task, click Save.

If everything is correct, click Create to create an import package and run it. After that, on the Monitor tab, you can check whether your package has been successful or not by clicking the Run ID line.

Automatically update Salesforce records via CSV files 12

Salesforce Mass Update via Query Using SQL

The third way to update Salesforce data in bulk is through Skyvia Query using SQL. Skyvia Query also allows you to preview changes before applying, so the operation is safe. Skyvia Query can be used by both — experienced SQL users and SQL beginners. Except for UPDATE statements, Skyvia Query also supports SQL SELECT, INSERT and DELETE for cloud sources. You can find more about Skyvia Query in our documentation. Below we describe in simple steps how to mass update opportunities in Salesforce, to be exact how to mass update a Salesforce opportunity owner.

You create a query in a standard way by clicking +NEW and selecting Builder in the Query

Salesforce Mass Update via Query Using SQL 1

The query editor opens. To query data, first, you need to create a connection to Salesforce by clicking the +New connection link (in case you have not created it yet) or select the already created Salesforce connection from the drop-down list on the left.

Salesforce Mass Update via Query Using SQL 2

To update an opportunity owner, you need to know the owner ID. If you do not remember it, you can easily extract this ID from the User table, filtering User by email.

So, to query data from a table, simply drag this table from the Salesforce object list to the Result Fields pane. In our example, we drag User to the Result Fields pane.

Salesforce Mass Update via Query Using SQL 3

Next, to filter data by email, we click User and drag the User.Email column from the User table to the Filters pane. Then we click User.Email in the Filters pane and configure the filter in the Details pane on the right side of the query. Finally, we check our query and click Execute to run it.

The query result field displays a record with User ID. You need to copy the ID to use it in your second query.

Salesforce Mass Update via Query Using SQL 4

Now we need to create another query to update the OwnerID. To create the second query, click the button on the query page tab bar. A new query will be created with the same view opened as the previously active query. To switch to the necessary view, click the corresponding button on the right side of the query toolbar — in our case, it is the SQL view button. We enter the UPDATE statement to the code editor. It looks like the following:

UPDATE Opportunity

SET OwnerId='005A0000001gx22BBG'

WHERE OwnerId = '005A0000001gx22IAA'
Salesforce Mass Update via Query Using SQL 5

When you have finished your second query, click Execute to run it and mass update Salesforce opportunities (opportunity owner to be exact).

Built-in Salesforce Features for Mass Updating

Built-in Salesforce features for mass updating offer users a convenient way to update multiple records quickly and efficiently without requiring manual data entry or extensive navigation through records. 

Inline Editing in List Views

Inline editing streamlines the data management process by allowing users to make changes directly within the List View interface.

With it, users can modify field values, such as text fields, picklists, and dates, for multiple records simultaneously. This capability eliminates the need to open each record individually, saving significant time and improving productivity. Users can edit the values directly by simply clicking on the fields within the list view, making updates in real-time.

Salesforce data

Users can also review and confirm changes before saving them, ensuring data accuracy. This helps prevent errors and discrepancies in the data, leading to better data quality and reliability. Additionally, users have the flexibility to customize list views to display the specific fields they need to edit, further enhancing efficiency.

Mass Update Records with Salesforce Reports

The ability to mass update records within Salesforce reports gives users a powerful tool for making bulk changes based on specific criteria outlined. These reports can filter records based on various criteria, such as record type, owner, status, or any other field values. Once the report is generated and the desired records are identified, users can initiate a mass update directly from the report results.

This capability enables users to make consistent changes across multiple records quickly and accurately, without the need for manual updates or navigating through individual records.

Additionally, Salesforce logs the updates performed through this feature, including details such as the user who initiated the update, the date and time of the update, and the specific changes made to each record. This audit trail ensures transparency and accountability in the data management process, helping organizations maintain data integrity and compliance with regulatory requirements.

Utilizing Salesforce Process Builder for Automated Updates

Note! Salesforce Process Builder is retiring for Marketing Cloud Connect, starting after the Spring ’24 release. 

Salesforce Process Builder is a powerful tool that enables users to automate business processes and streamline workflows within the Salesforce platform. One of its key functionalities is facilitating automated updates, allowing users to make mass updates to records based on predefined criteria without the need for manual intervention.

Salesforce Process Builder

Using Salesforce Apex for Custom Mass Update Solutions 

Salesforce Apex is a powerful programming language that allows users to build custom functionalities and automate complex business processes within the Salesforce platform. When it comes to mass updating records, Salesforce Apex offers robust capabilities for creating custom solutions tailored to specific business requirements.

Salesforce Apex is an ideal choice for mass updates when organizations require highly customized and tailored automation rules to meet specific business requirements. Apex provides users with the flexibility to implement complex logic and manipulate data in ways that may not be achievable with standard Salesforce functionality alone. Therefore, Apex is best suited for scenarios where standard automation tools like Process Builder or Workflow Rules fall short of meeting the organization’s needs.

Note! Find more information in the Apex Developer Guide by Salesforce.

Third-party Tools for Mass Updating in Salesforce 

Third-party tools for Salesforce offer additional functionality and flexibility beyond the built-in features provided by Salesforce. These tools are developed by third-party vendors and usually are recommended at the AppExchange. You can also find more information about third-party tools in our blog articles:

Pros of using third-party tools

  • Extended functionality beyond standard Salesforce features
  • User-friendly interfaces that make it easy for non-technical users to perform mass updates
  • Enhanced performance, especially for large volumes of data
  • Integration capabilities with other systems and applications
  • Customization options to tailor the mass update process to specific needs

Cons of using third-party tools

  • The cost associated with purchasing and maintaining third-party tools
  • Potential reliance on external vendors for support and updates
  • Compatibility issues with Salesforce updates and releases
  • Security and data privacy concerns related to third-party tool access to Salesforce data

Overall, leveraging third-party tools for mass updating in Salesforce can provide organizations with greater flexibility, enhanced functionality, and improved performance when managing and updating large volumes of data within the platform. However, it’s important to carefully evaluate the pros and cons of each tool to ensure it meets the organization’s needs and requirements.

automate data routine

Automating Mass Updates in Salesforce

Automating mass updates in Salesforce is essential for organizations looking to streamline their data management processes and ensure data accuracy and consistency across the platform. Two key aspects of automating mass updates include scheduled updates using Salesforce features or third-party tools and implementing best practices for setting up automation.

Scheduled updates allow organizations to automate the process of updating Salesforce records at predefined intervals, such as daily, weekly, or monthly. This ensures that data is regularly refreshed and updated without manual intervention. Salesforce provides built-in features like Process Builder and Scheduled Flows that can be used to schedule updates based on specific criteria or triggers. Additionally, third-party tools such as Skyvia or DemandTools offer advanced scheduling capabilities and support for complex data integration scenarios.

Some best practices to ensure efficient and effective execution include:

  • Clearly define the objectives and scope of the automation process, including the specific records and fields to be updated.
  • Develop a comprehensive data governance strategy to maintain data quality and integrity throughout the automation process.
  • Test the automation workflow thoroughly in a sandbox environment before deploying it to production to identify and address any potential issues or errors.
  • Monitor the automation process regularly to ensure it continues functioning as intended and make adjustments as needed.
  • Implement proper error handling and exception handling mechanisms to address any errors or issues that may arise during the automation process.
  • Document the automation workflow, including the criteria, actions, and scheduling parameters, to facilitate troubleshooting and maintenance in the future.

By following these best practices and leveraging the capabilities of Salesforce features or third-party tools, companies can automate mass updates effectively and efficiently, saving time and resources while ensuring data accuracy and consistency across the platform.

Conclusion

Those are the ways that can make your life easier when mass updating a large amount of data in Salesforce. Depending on whether you have a CSV file with necessary records or records for updating are received from Salesforce itself, you choose on your own which way to use. With Skyvia Data Loader, you can schedule your mass update operation whenever you want. We also recommend trying our Query product. With SQL, you will update your SFDC records even quicker, and our technical support is always at hand to assist you with any questions you have.

Anna Tereshchenko
Anna Tereshchenko
Technical Writer

TOPICS

BY CONNECTORS

Skyvia podcast