Questions tagged [cpq-plugins]
The cpq-plugins tag has no usage guidance.
25
questions
0
votes
0
answers
69
views
Salesforce CPQ inside Customer Community / Ecommerce site
My client is currentlty using a third party ecommerce site for pricing/simulation, and using Salesforce CPQ separately.
He would like to replace the current custom pricer/simulator by CPQ, by adding ...
0
votes
0
answers
33
views
Salesforce CPQ: JS Calc working and returning values in backend but values are not reflecting real time
I am using the JS QCP Plugin to update the QLI level field value then that value is referenced in a price rule of event On Calculate
I tried wrapping up the query in a new promise return but still, it'...
0
votes
0
answers
56
views
Percent of total Calculation
We have scenario where we have a combination of subscription fixed products and percent of total products in our products setup.
We have a setup the fixed price products to include the calculations ...
0
votes
0
answers
43
views
CPQ Pricing Rule with custom PoT for each bundle depending on Configuration Attribute
I have many product bundles with same structure. Here i give example for four
Product Bundle A
Product Bundle A1
Product Bundle A2
Product Bundle A3
Product Bundle B
Product Bundle B1
Product ...
0
votes
0
answers
113
views
How to effectively track changes to items in Quote Calculator Plugin (QCP) in salesforce cpq?
I have a segmented product. On the product I want to avail a discount if a certain condition is met.
I've implemented this as
export function onAfterCalculate(quoteModel, quoteLineModels, conn) {
...
0
votes
0
answers
285
views
Delete Quote Lines using CPQ Plugin
I am trying to automate deleting Quote Lines in Quote Lines Editor from Salesforce CPQ package, so when you delete manually one record, script will delete some others based on given conditions.
F.e. ...
0
votes
1
answer
168
views
Would flows execute before QCP script?
This might be a fairly simple question but not much available documentation around it. I have a flow on SBQQ__Quote__c object which is making some field updates on related quote lines. I also have a ...
0
votes
0
answers
211
views
identify what action started QCP Calculator Plugin script in Salesforce CPQ?
I have a scenario where I need to identify the action which started the custom script calculation in salesforce CPQ
Actually, in my case, hitting the 'Calculate' button on QLE runs the script again ...
0
votes
1
answer
835
views
Salesforce CPQ: Are Calculations Faster in the Quote Line Editor (QLE) Using Price Rules or the Quote Calculator Plugin (QCP)?
In Salesforce CPQ, when using the Quote Line Editor (QLE), are calculations generally faster using Price Rules or the Quote Calculator Plugin (QCP)?
For instance, consider the following Price Rule ...
1
vote
1
answer
129
views
Conditional configuration of a CPQ Product as Bundle
We have a complex CPQ scenario that I would appreciate your inputs.
We have 1 CPQ product (single record) that:
For some types of quotes should appear as a bundle (with many product options and ...
0
votes
1
answer
497
views
Price Rules in Salesforce CPQ
I am trying to learn Salesforce CPQ Price rules. I am trying to create something like the following: If the Add on product added is more than 10 then the primary product quote line will have an ...
0
votes
1
answer
356
views
How to get only the selected lines from QLE in QCP context ? [Salesforce CPQ, QCP, JavaScript]
How to get only the selected lines from quote line editor in QCP context ?
We can create additional checkbox field on quote lines and refer that, but client wants to use standard checkbox.
1
vote
1
answer
650
views
How to identify what action started QCP Calculator Plugin script in Salesforce CPQ?
I'm using a JS script as a plugin for QCP calculator to do some stuff after every change in Quote Edit Lines.
Now I need to run the script only when user presses Calculate or Save button. The only ...
0
votes
1
answer
654
views
Update Quote line Grouping thru QCP
I have field in Quote line that looks up to the Quote line Group [groupA__c]. When that field is populated in the parent Quote line of a bundle, that bundle should be reassigned to the group indicated ...
0
votes
1
answer
657
views
CPQ JSForce Query
I am working with the CPQ Jvascript Calculator. I writing logic on BeforePriceRules. I will need to do a couple of Queries to get what I need. When I write my first Query the order of Operation of how ...
0
votes
1
answer
252
views
JavaScript CPQ Calculator Field not showing in Javascript Debugger Code
I am writing a custom Javascript script for CPQ. I created 2 new fields on QuoteLine. Product Type(pickList) and Target Price(currency). I filled data in on the record. I cant for some reason see ...
0
votes
1
answer
361
views
CPQ Javascript Maps
I am working with the CPQ Javascript Calculator. I need to update the Quote Line based on the product.
I am versed in APEX more than I am in Javascript however in APEX I could do a SOQL Query that ...
1
vote
1
answer
668
views
CPQ Quote Calculator Plugin Set Global Value onInit
I have a requirement for some fairly complex logic to conditionally hide certain fields based on various criteria.
My thought was to store the rules for hiding fields in a custom object and then query ...
2
votes
1
answer
2k
views
How to add new Quote line via CPQ Custom Script
I'm writing a custom script for CPQ Calculator. I'm using the onAfterCalculate method to insert new quote lines using JSForce.
export function onAfterCalculate(quote, lines, conn) {
let ...
1
vote
0
answers
191
views
Can I breakdown CPQ Quote Calculator Plugin (QCP) into multiple files and just call them from one custom script?
We're using QCP for many products to meet our needs. It's getting a bit unmanageable because of the amount of lines of codeand it's only going to get bigger. Is there a way to split these files and ...
1
vote
1
answer
257
views
Accessing Salesforce CPQ Setting Properties In Apex
In Salesforce CPQ settings configuration page, there are some settings which are used to created records during the quoting process. For example the "Subscription Term Unit" is used to ...
0
votes
1
answer
1k
views
QCP - Not getting called
I have created custom script in which i have added following code :
export function onAfterCalculate(quoteModel, quoteLineModels){
console.log('quote is called');
return Promise.resolve();
};
name of ...
0
votes
1
answer
963
views
CPQ - Disable Proration
Does anyone have a workaround for disabling proration on a subscription product?
Price rules are not working or cause issues down the line
I found a solution in the community where a developer ...
1
vote
2
answers
740
views
Discount is being added to a quote line even when there is no discount schedule or manual discount CPQ
I have a quote line where the user enters the subscription term(month) as follows.
When user saves the quote line an additional discount of 10% is added automatically even when there is no discount ...
2
votes
2
answers
3k
views
CPQ - How to perform custom field calculations in Quote Edit lines screen?
Requirement
In Edit quote lines screen of Salesforce CQP, we need to add a custom field "Budget" and add a JS script to auto-calculate the additional discount % applicable on all the lines, so that ...