Skip to main content

Questions tagged [cpq-plugins]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
103 views

Salesforce CPQ Calculator Plugin - Get User Permissions

In the CPQ Quote Calculator Plugin, I'd like to conditionally enable editing for a specific field based on the running user's permissions (whether or not they have been assigned a specific Perm Set). ...
Jason Benkert's user avatar
0 votes
0 answers
121 views

Additional Discount Field Is Non-Editable When Products are segmented

On Quote Line Editor, we have a custom field named "Additional Discount".(Data Type Percentage). We have added product and created two segments and we land up into an issue, where for ...
Nachiket Deshpande's user avatar
0 votes
0 answers
230 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 ...
CBine's user avatar
  • 1
0 votes
0 answers
111 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'...
Pratik Pawar's user avatar
0 votes
0 answers
224 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 ...
swetha's user avatar
  • 1
0 votes
0 answers
101 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 ...
Muhammad Sheheryar Afsar's user avatar
0 votes
1 answer
427 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 ...
Ayush Goyal's user avatar
1 vote
1 answer
165 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 ...
Jonas J's user avatar
  • 11
0 votes
1 answer
627 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 ...
Madhurima's user avatar
  • 1,425
0 votes
1 answer
418 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.
Pankaj Hogade's user avatar
1 vote
1 answer
808 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 ...
Vladimir Peshko's user avatar
0 votes
1 answer
838 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 ...
Charlie's user avatar
  • 77
0 votes
1 answer
950 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 ...
CodeMonger's user avatar
0 votes
1 answer
322 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 ...
CodeMonger's user avatar
0 votes
1 answer
585 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 ...
CodeMonger's user avatar
1 vote
1 answer
826 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 ...
Rostro's user avatar
  • 36
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 ...
jagmohan's user avatar
  • 1,063
1 vote
0 answers
239 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 ...
Johnny Stenson's user avatar
1 vote
1 answer
334 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 ...
Bikram Bhuyan's user avatar
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 ...
Chintal Somaiya's user avatar
0 votes
1 answer
1k 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 ...
Colby Bridges's user avatar
1 vote
2 answers
990 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 ...
gopal1007's user avatar
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 ...
Shamina's user avatar
  • 4,295