# What is the difference between standard price books and custom price books in Sales Cloud?

**Topic:** Sales Cloud · **Difficulty:** Medium · **Tags:** Sales Cloud, Price Books, Product Catalog

Read it on the site: https://www.forcechallenges.com/interview-questions/what-is-the-difference-between-standard-price-books-and-custom-price-books-in-sales-cloud

## Answer

**Basics:** Price books list products with prices. The Standard Price Book exists automatically, cannot be deleted, and contains list prices for all products. Custom price books (wholesale, partner, EMEA, education) let you sell the same product at different prices. An opportunity or quote uses exactly one price book.

**How it works:** Create a Product (`Product2`), add it to the Standard Price Book with a list price (`PricebookEntry`), then add it to a custom `Pricebook2` with its own price, or tick "Use Standard Price". Users picking products on an opportunity choose the price book first; only products in that book can be added. Each entry belongs to a currency in multi-currency orgs, so one product can have a price per currency per book.

**Advanced / deep dive:** Opportunity line items copy the price at the time of adding; later price book changes do not update existing line items, which preserves deal history. Changing an opportunity's price book after products are added removes the products, so users are warned. Price book entries can be active or inactive, and price books themselves can be deactivated rather than deleted. Visibility: users need access to the price book via sharing and object permissions; Price Book access is managed separately from product access. For complex pricing (volume tiers, discount schedules, bundles, contract pricing) use Salesforce CPQ or Revenue Cloud (CPQ is in maintenance for new sales; verify current positioning), since native price books are flat. Data loading: load products, then standard entries, then custom entries (order matters). In Apex tests, the Standard Price Book is not visible by default; use `Test.getStandardPricebookId()` to create entries. Price books can be assigned to opportunities via Flow or defaulting rules; integrate with ERP for price syncing.

**Code / config example:**
```apex
// Test setup: standard entry must come first
Id stdId = Test.getStandardPricebookId();
Product2 p = new Product2(Name = 'Widget', IsActive = true);
insert p;
insert new PricebookEntry(Pricebook2Id = stdId, Product2Id = p.Id, UnitPrice = 100, IsActive = true);

Pricebook2 partner = new Pricebook2(Name = 'Partner', IsActive = true);
insert partner;
insert new PricebookEntry(Pricebook2Id = partner.Id, Product2Id = p.Id, UnitPrice = 80, IsActive = true);
```

**Hidden gotchas & must-remember points:**
- A product needs a standard price book entry before any custom entry.
- One price book per opportunity; changing it removes existing line items.
- Line item prices are copied, not linked.
- In multi-currency orgs each currency needs its own entry.
- The Standard Price Book cannot be deleted, and in tests you must use `Test.getStandardPricebookId()`.
- Native price books lack tiered or rule-based pricing.

**Best practice:** Keep the standard book as the master, create custom books per segment, and use a pricing tool when rules become complex.

---
Source: ForceChallenges · last updated 2026-11-02
