FIRST IMPORT: Right.
SECOND IMPORT: The checkbox is already set to true; no need to set when import.
#Salesforce CPQ & Billing38 diskutieren mit
- Letzte Aktivität
- Erstellt am
- Empfohlen
- Alle Fragen
- Fragen mit einer akzeptierten Antwort
- Unbeantwortete Fragen
- Fragen ohne akzeptierte Antwort
Hello,
I am trying to understand best practice for discount schedules when applying to a brand new sale and when applying to an amendment. Here are the scenarios:
- New Sale - pulls in current discount schedule. The discount schedule is using either the SBQQ__Quantity__c field or a custom quantity field. Cross Orders is checked true. Some discount schedules have aggregation scope blank and some have aggregation scope set to Product.
- Amendments - subscriptions lines being pulled in through the amendment process apply the original discount schedule as expected. Any new lines added are applying old discount schedules without a tier. But we want the new discount schedule to apply to new lines. Things to note are in number 1 above the SBQQ__QuoteLineQuantityField__c and the fact that Cross Order is checked as true. I have written a price rule that does the following and is working as expected on the new lines but I am not getting the Discount Tiers. Do I need an additional price rule to apply the tier or do I need to create duplicate Discount Schedules that look at the SBQQ__EffectiveQuantity__c field for amendments?
- Price Rule Header
- Evaluation Scope: Calculator
- Lookup Object: SBQQ__DiscountSchedule__c
- Calculator Evaluation Event: Before Calculate
- Price Conditions
- SBQQ__Existing__c equals false
- SBQQ__Product__c not equal to blank
- Lookup Query
- Query 1
- Tested Object: Quote Line
- Match Type: Field Value
- Tested Field: SBQQ__Product__c
- Operator: equals
- Lookup Field: SBQQ__Product__c
- Query 2
- Tested Object: Quote
- Match Type: Field Value
- Tested Field: SBQQ__PricebookId__c
- Operator: equals
- Lookup Field: SBQQ__Pricebook__c
- Query 3
- Match Type: Static Value
- Tested Value: true
- Operator: equals
- Lookup Field: Active_for_New_Quote_Lines__c
- Query 4
- Match Type: Static Value
- Tested Value: 2026
- Operator: equals
- Lookup Field: APricing_Year__c
- Query 1
- Price Actions
- Price Action 1
- Target Object: Quote Line
- Target Field: SBQQ__DiscountSchedule__c
- Price Action 2
- Target Object: Quote Line
- Target Field: SBQQ__DiscountSchedule__c
- Source Lookup Field: Id
- Price Action 1
- Price Rule Header
Thank you.
#Salesforce CPQ & Billing #CPQ
We use Salesforce CPQ and we do not use MDQ. We use quote line groups on a quote to signify the year of the subscription. For example,
- Year 1 quote line group has dates of 1/1/2026 through 12/31/2026 and comes on as list price.
- Year 2 quote line group has dates of 1/1/2027 through 12/31/2027 and we want to apply a 5% uplift using the year one price and apply 5% uplift to each line in the Year 2 quote line group.
- Year 3 quote line group has dates of 1/1/2028 through 12/41/2028 and we want to apply a 5% uplift using the year 2 price and apply that 5% to each line in the Year 3 quote line group.
Does anyone else done this before? If so, and you used the QCP could you share how you built it? We need help building this and adding to our current QCP. Thank you.
14. Aug., 20:28 Hi Rachel - yes, this is very doable with the QCP, and since Year 1 comes in at list you actually have a clean shortcut. Two approaches, depending on exactly what you're upflifting from:
Common setup for both: order your Quote Line Groups by the group's Start Date so you always know which is Year 1, 2, 3, and match lines across groups by Product (add any configuration attributes to the match key if the same product is configured differently across years).
Option A - uplift off list (simplest, and it fits your description): because every year holds the same product at the same list price, a compounding 5% is just a per-group markup. The simplest lever is a negative Additional Discount (%), which acts as a markup in CPQ - set it by group in onBeforeCalculate: Year 2 = -5, Year 3 = -10.25. The formula per group is -(1.05^(year-1) - 1) x 100. That lands Year 2 at list x 1.05 and Year 3 at list x 1.1025 - true compounding - and you never have to read another line's calculated price. (Just confirm negative discounts are allowed in your CPQ package settings; if they aren't, set the target Unit Price directly instead.)
Option B - compound off the prior year's actual (discounted) price: if Year 1 might carry negotiated discounts and you want 5% on the real Year 1 price, do it in onAfterCalculate instead. Build a map of each product's Customer Price (or Net Price) from the prior group, then set this line's price to priorPrice x 1.05. One gotcha worth knowing: CPQ re-derives List Price from the price book during calculation, so don't try to override List - apply your value at the Customer/Net price stage, which is exactly why onAfterCalculate is the right hook here.
For a straight 'Year 1 at list, +5% each year' setup, Option A is far less code and less fragile, so I'd start there and only move to B if you need to compound off discounted prices.
(A CPQ Price Rule can handle a flat per-group uplift too, but the compounding across three groups is cleaner to express in the QCP - so your instinct is right.)
Happy to sketch the grouping/ordering loop if you go with Option A!
Using Enterprise Edition with CPQ. On a CPQ quote a sales rep pushes a custom button to book the order, which creates a case that moves on to Contracts, then the Sales Order team for entry into the ERP. There is a one-to-one lookup relationship between CQP Quote and Case. On the case, once the Sales Order teams confirms the quote is good, I would like to put a button or a checkbox on the case that runs a flow that goes to the quote and checks the box Ordered, which creates an order. The flow should then get the newly created order and do the same actions that clicking the Activate button does. I suspect it runs the two CPQ Apex triggers, on named OrderTrigger and the other named OrderProductTrigger. The main question is, would this take care of all the things that the order's Activate button does if you select it manually? Any other advice on how to "press the Activate button" via automation rather than manual action?
12. Aug., 15:03 Setting the Order Status to Activated should run the triggers and perform the same actions as using the button.
Note that Order creation runs some async processes that must complete before you Activate. Check the documentation for this. Some of the processes include creating price schedules (if needed) or contracting an amendment (if needed). You may need to build in a delay before triggering activation automatically. There may be some documentation or a knowledge article with more details.
-Frank
I created several custom fields on the Opportunity Contact Role object. I want these fields to be available in the "Add Contact Role" popup that appears when adding a Contact Role from an Opportunity.
I have already added the custom fields to the Opportunity Contact Role Multi-Line Layout, but they are still not displayed in the popup.
Is this popup customizable to show custom Opportunity Contact Role fields? If so, are there any additional configuration steps required? If not, what is the recommended Salesforce approach for capturing custom Opportunity Contact Role field values during contact role creation?
I've attached a screenshot for reference.
#Sales Cloud #Salesforce #Salesforce Developer #Salesforce Admin #TrailblazerCommunity #Trailhead #Trailhead Superbadges #Trailhead Support #Salesforce CPQ & Billing
11. Aug., 03:34 Hi Suhani, currently, Salesforce does not support customizing the standard 'Add Contact Role' multi-line layout pop-up to display custom fields, even if you add them to the multi-line layout. This is a known platform limitation.Recommended Approach: As a workaround, you can create a custom Screen Flow using Flow Builder to capture the contact roles along with your custom fields, and expose it via a custom quick action button on the Opportunity page.
Hello, I was hoping to get clarity on how contracted pricing works on renewals and amendments. For example, you have an account with the following:
- Account
- Renewal Pricing Method - Uplift
- Contracted Pricing Records
- Effective Start Date 7/1/2026
- Expiration Date 5/31/2027
- Contract Renewal Uplift Rate - 5%
- Subscriptions
- Renewal Price - complete
- Special Price - complete
When renewing the contract the contract pricing is not being picked up. Why is Contracted Pricing not picked up? Is it because Renewal Pricing Method is Uplift and Renewal Price is completed? How can I ensure that the contracted price gets picked up? The amendment is a general question to ensure I know if the new renewed contract gets amended how will contracted pricing work. Thank you. Rachel
6. Aug., 22:55 Hi Josh,
Hello, I was hoping to get clarity on how I can get I cleaning flip an account from Uplift to List so the renewal picks up new contracted pricing works. For example, you have an account currently with the following:
- Account
- Renewal Pricing Method - Uplift
- Contracted Pricing Records
- Effective Start Date 7/1/2026
- Expiration Date 5/31/2027
- Current contract renewing has a 5% uplift but we do not want that to apply.
- Subscriptions
- Renewal Price - complete
- Special Price - complete
When renewing the contract the contract pricing is not being picked up. Why is Contracted Pricing not picked up? I believe it is a couple things:
- Renewal Pricing Method is Uplift - this may need to switch to List
- How can I ensure that the contracted price gets picked up? Do I need to remove the values from Special Price and Renewal Price?
Just looking for the cleanest way to process this renewal so that it applies the new contracted pricing.
Thank you.
- Account
I'm investigating an issue where historical Opportunity Line Items (OLIs)
appear to be deleted when creating a new Quote or performing an Amendment.
My objective is:
- Retain historical OLIs for audit/reporting purposes.
- Prevent business users from manually deleting historical OLIs.
- Continue allowing CPQ Quote Sync, Amendments, and Renewals to function correctly.
Questions:
- Is SBQQ.AbstractDAO.deleteByIds() expected CPQ behavior during Quote Sync, Amendments, or Renewals?
- What is the best way to confirm exactly which records are being deleted by CPQ (OpportunityLineItem vs QuoteLine vs Subscription)?
- Has anyone successfully implemented logic to protect historical Opportunity Products without breaking CPQ synchronization?
- Is there a recommended CPQ pattern for retaining historical OLIs while still allowing Quote Sync to update current Opportunity Products?
- Are there any Salesforce CPQ documented behaviors showing when OLIs are deleted/recreated during sync? Any guidance, documentation references, or real-world implementation patterns would be greatly appreciated.
6. Aug., 11:59 Thanks for your input. Based on the debug logs, the database deletion is first executed by the Salesforce CPQ managed package through:
Class.SBQQ.AbstractDAO.deleteByIds: line 237, column 1:
com.salesforce.api.Database.delete(List<SObject>, Boolean)
This is immediately followed by:
Class.SBQQ.QuoteOpportunitySynchronizer.clearOpportunityLineItemsByLineItemId:Delete: List<OpportunityLineItem>
These log entries confirm that Salesforce CPQ's Quote-to-Opportunity synchronization process is deleting Opportunity Line Items (OLIs) that no longer have a corresponding Quote Line. The deletion is performed by standard managed package logic and not by custom Apex code.
During synchronization, QuoteOpportunitySynchronizer determines obsolete Opportunity Products and invokes the managed package deletion framework (SBQQ.AbstractDAO.deleteByIds) to remove them from the database. Therefore, the observed OLI deletion is expected CPQ synchronization behavior when reconciling Opportunity Products with the current Quote configuration.
As you mentioned, To preserve historical product information, preferred approach is to implement an OLI archival solution using a custom history object rather than attempting to prevent CPQ from deleting obsolete OLIs.
- Have created new Dev org.
- have installed Salesforce CPQ package too (got confirmation mail and able to see it from Setup -> Installed Packages page)
- the issue occurs when I am trying to verify the step from same org where this action took place. It says,
"Step not yet complete in <My org name>
We can't find the Home Security Console product in the Trailhead Playground you selected. Try again using a new CPQ-enabled Developer Org."
Anyone saw this error before? or known solution to resolve it?
Thanks in advance.
20. Aug. 2019, 16:36 Hi Chandra,
Try creating an org via this link instead, it should already have CPQ installed with no issues and should be easy to connect to Trailhead:
https://developer.salesforce.com/promotions/orgs/cpqtrails
We have an integration where new products created in Acumatica are automatically synced to Salesforce. The Brand field is a picklist in Salesforce. When a new Brand value is received from Acumatica, Salesforce creates the value, but it is added to the Inactive Values section instead of the active picklist values.
Has anyone experienced this issue or knows what causes this behavior? Is there a way to have new picklist values created as active
automatically?
#Salesforce CPQ & Billing
4. Aug., 10:51 New picklist values are being created as inactive because the integration is adding them through the API without activating them in the picklist value set.
To resolve this, update the integration so it creates the values as active, or use a post-processing automation to activate new values after they are created. Also, verify that the values are assigned to the required record types, as inactive values won't be available to users even if they exist in the picklist.
Hi Trailblazers,
I've been hearing a lot about Agentforce Revenue Management and understand that Salesforce is positioning it as the future of Revenue Cloud. Since many organizations still use Salesforce CPQ, I'm trying to understand what this means for existing implementations and future projects.
I have a few questions for those who have explored or implemented it:
- What exactly is Agentforce Revenue Management?
- How is it different from Salesforce CPQ?
- Is Salesforce recommending that existing CPQ customers migrate, or can CPQ continue to be used for the foreseeable future?
- What new capabilities does Agentforce Revenue Management offer beyond traditional CPQ (such as AI agents, pricing, contracts, billing, renewals, or order management)?
- Has anyone completed a migration from Salesforce CPQ? If so, what challenges or best practices would you recommend?
- Is it suitable for both B2B and subscription-based businesses?
From what I've read, Agentforce Revenue Management appears to combine product catalog management, pricing, configuration, quoting, contracts, orders, billing, renewals, and AI-powered automation into a single Salesforce-native platform. However, I'd love to hear real-world experiences from architects, consultants, admins, and developers who have worked with it.
Looking forward to learning from the community. Thanks in advance!
3. Aug., 18:29 Hi, sorry for the inconvenience. If you don't receive a response here, we recommend reaching out to our support team for further assistance. You can do so by visiting https://help.salesforce.com/s/articleView?id=000393090&language=en_US&type=1