Configure products, price books, quote templates, and approval processes
✓Works with OpenClaudeYou are a Salesforce CPQ administrator. The user wants to configure products, price books, quote templates, and approval processes in Salesforce CPQ.
What to check first
- Verify CPQ package is installed: Setup → Installed Packages → search "CPQ"
- Confirm user has "Salesforce CPQ Admin" permission set assigned
- Check that Products, Price Books, and Quotes objects are accessible in Setup → Objects and Fields
Steps
- Create a Product in Setup → CPQ → Products: set Product Code, Family, and toggle "Active" checkbox; set Product Type to "Accessory" or "Bundle" as needed
- Create Price Book Entries by navigating to Setup → CPQ → Price Books, select or create a Price Book, then add Products with List Price and optional tiered pricing
- Set Discount Schedule on Price Book Entry to enable volume-based pricing: use Quantity and Discount fields in nested records
- Build Quote Template by going to CPQ → Quote Templates: use Mergefields like
{!Quote.QuoteNumber},{!Quote.GrandTotal}, and Lightning Components for line items - Add Quote Lines dynamically by configuring Product Selection Rules in Setup → CPQ → Product Selection Rules to auto-populate Quote with Products based on criteria
- Enable Approval Process on Quote using Setup → Approval Processes → create new for Quote object; set Entry Criteria (e.g.,
Quote.GrandTotal > 50000) and approvers - Configure Calculation Rules to auto-update discount, price, or quantity: Setup → CPQ → Calculation Rules with Operator (Sum, Max, Min) and Target fields
- Test end-to-end by creating a Quote record, selecting Products, verifying Price Book pricing applies, and submitting for approval
Code
// Apex class to programmatically create Quote with Line Items and trigger approval
public class CPQQuoteManager {
// Create Quote and add Line Items
public static Id createQuoteWithLineItems(String accountId, String opportunityId, List<String> productIds) {
try {
// Create Quote record
SBQQ__Quote__c quote = new SBQQ__Quote__c(
SBQQ__Account__c = accountId,
SBQQ__Opportunity__c = opportunityId,
SBQQ__PriceBook__c = getPriceBookId(),
SBQQ__Status__c = 'Draft'
);
insert quote;
// Create Quote Line Items
List<SBQQ__QuoteLine__c> quoteLines = new List<SBQQ__QuoteLine__c>();
Integer lineNumber = 1;
for (String productId : productIds) {
SBQQ__QuoteLine__c quoteLine = new SBQQ__QuoteLine__c(
SBQQ__Quote__c = quote.Id,
SBQQ__Product__
Note: this example was truncated in the source. See the GitHub repo for the latest full version.
Common Pitfalls
- Treating this skill as a one-shot solution — most workflows need iteration and verification
- Skipping the verification steps — you don't know it worked until you measure
- Applying this skill without understanding the underlying problem — read the related docs first
When NOT to Use This Skill
- When a simpler manual approach would take less than 10 minutes
- On critical production systems without testing in staging first
- When you don't have permission or authorization to make these changes
How to Verify It Worked
- Run the verification steps documented above
- Compare the output against your expected baseline
- Check logs for any warnings or errors — silent failures are the worst kind
Production Considerations
- Test in staging before deploying to production
- Have a rollback plan — every change should be reversible
- Monitor the affected systems for at least 24 hours after the change
Related Salesforce Skills
Other Claude Code skills in the same category — free to download.
Salesforce Apex Class
Write Apex classes with triggers, batch jobs, and best practices
Salesforce LWC
Build Lightning Web Components with reactive properties and events
Salesforce SOQL
Write optimized SOQL and SOSL queries with relationships and aggregations
Salesforce Flow Builder
Build screen flows, record-triggered flows, and scheduled flows
Salesforce Apex Trigger
Create Apex triggers with handler pattern and bulk-safe logic
Salesforce Integration
Integrate Salesforce with external systems using REST/SOAP callouts
Salesforce Admin Config
Configure objects, fields, page layouts, validation rules, and profiles
Salesforce Apex Testing
Write Apex test classes with test data factories and assertions
Want a Salesforce skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.