Loading

Update Product Prices and Price Book Entries in Salesforce with Data Loader

Udgivelsesdato: Oct 9, 2026
Beskrivelse

Available in: Lightning Experience and Salesforce Classic

Available in: Enterprise Edition, Unlimited Edition, Developer Edition, Performance Edition, and Professional Edition (with API enabled)

Permissions needed: API Enabled in the user profile and Edit permission on Price Books

Question: How do I update prices for Salesforce products that are in one price book or in multiple price books?

Løsning

This article explains how to update Salesforce Product prices in one or more price books. You export the Price Book Entry records with Data Loader, change the Unit Price values in the CSV file, and import the file back as an update.

Why You Need the Price Book Entry ID

To update prices, you need the PriceBookEntry Salesforce ID. The only way you can get that is by exporting the ID using Data Loader or another third-party tool such as Workbench or DataLoader.io. The following walkthrough shows you how to obtain the Salesforce ID and update the product prices.

Step 1: Export Price Book Entries

  1. Launch Data Loader.
  2. Click the Export button.
  3. Select OAuth or Password Authentication as your login method.
  4. Log in.
  5. Click the Next button.
  6. Select the check box that reads Show all Salesforce objects.
  7. Scroll down to select the Price Book Entry object.
  8. Click the Browse button and enter a file name (suggestion would be pricebookentry.csv) and select a location for the file (suggestion would be desktop). Files should end with ".csv."
  9. Click the Next button.
  10. Click the Select All button.

Note: This tutorial downloads all Price Book Entries. If you would like to filter the Price Book Entries based on specific products, you can use a selective query in the query editor box by adding the WHERE condition expression and then the product ID values that you want to filter on. In the example below, only Price Book Entries for Products that have the ID 01t1I000000CqeK or 01t1I000000CqeL are exported. You can find the Product ID by viewing the desired product in Salesforce and then copying the value from the URL located in the browser's address bar. In the example URL https://na73.salesforce.com/01t1I000000CqeL, the product ID is listed after the .com/

Example SOQL query:
Select Id, Name, Pricebook2Id, Product2Id, UnitPrice, IsActive, UseStandardPrice, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp, ProductCode, IsDeleted FROM PricebookEntry WHERE Product2Id='01t1I000000CqeK' OR Product2Id='01t1I000000CqeL'

This query selects the Price Book Entry fields for the two listed products only.

  1. Click Finish.
  2. Click OK.

If you followed the suggestions, a file called pricebookentry.csv is on your desktop.

Step 2: Update the Prices in the Price Book Entry CSV File

  1. Open the CSV file.
  2. Update the Unit Price field for each Price Book Entry.
  3. Save the CSV file.

Step 3: Import the CSV File as an Update

  1. Launch Data Loader.
  2. Click the Update button.
  3. Select OAuth or Password Authentication as your login method.
  4. Log in.
  5. Click the Next button.
  6. Select the check box that reads Show all Salesforce objects.
  7. Scroll down to select the Price Book Entry object.
  8. Click the Browse button.
  9. Select the CSV file you just saved.
  10. Click the Next button.
  11. A dialog box pops up confirming the number of records to be imported. Click the OK button.
  12. Click the Create or Edit a Map button.
  13. Click the Auto-Match Fields to Columns button.
  14. Click the OK button.
  15. Click the Next button.
  16. Click the Finish button.

The product prices are now updated.

Vidensartikelnummer

000384199

 
Indlæser
Salesforce Help | Article