$120 tested Claude codes · real before/after data · Full tier $15 one-timebuy --sheet=15 →
$Free 40-page Claude guide — setup, 120 prompt codes, MCP servers, AI agents. download --free →
clskills.sh — terminal v2.4 — 2,347 skills indexed● online
[CL]Skills_
SalesforceadvancedNew

Salesforce CPQ

Share

Configure products, price books, quote templates, and approval processes

Works with OpenClaude

You 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

  1. Create a Product in Setup → CPQ → Products: set Product Code, Family, and toggle "Active" checkbox; set Product Type to "Accessory" or "Bundle" as needed
  2. 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
  3. Set Discount Schedule on Price Book Entry to enable volume-based pricing: use Quantity and Discount fields in nested records
  4. Build Quote Template by going to CPQ → Quote Templates: use Mergefields like {!Quote.QuoteNumber}, {!Quote.GrandTotal}, and Lightning Components for line items
  5. Add Quote Lines dynamically by configuring Product Selection Rules in Setup → CPQ → Product Selection Rules to auto-populate Quote with Products based on criteria
  6. Enable Approval Process on Quote using Setup → Approval Processes → create new for Quote object; set Entry Criteria (e.g., Quote.GrandTotal > 50000) and approvers
  7. Configure Calculation Rules to auto-update discount, price, or quantity: Setup → CPQ → Calculation Rules with Operator (Sum, Max, Min) and Target fields
  8. 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

Quick Info

CategorySalesforce
Difficultyadvanced
Version1.0.0
AuthorClaude Skills Hub
salesforcecpqquoting

Install command:

curl -o ~/.claude/skills/sf-cpq.md https://clskills.in/skills/salesforce/sf-cpq.md

Related Salesforce Skills

Other Claude Code skills in the same category — free to download.

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.