Skip to main content

Hello All,

 

We have been working with the CPQ API for some time now, and are only recently leveraging the QCP JavaScript plugin. 

 

What i'm curious about and find odd is that when we do a database insert of quote lines for a quote, and then use the CPQ API to save/calculate the quote within Apex, i'm not seeing any signs that the JavaScript QCP is executing. 

 

So my question for anyone how might be familiar with QCP, does it execute when saving the quote and initiating calculate outside of the Quote Line Editor? 

 

The calculation sequence suggests that the plugin(s) run whenever calculation is initiated, but this isn't what I'm observing. Instead I only see the script execute from directly inside the quote line editor when either Save, Quick Save, and Calculate are clicked.

 

I've also noticed that when a new quote is created on the renewal opportunity which is initiated when the "Renewal Quoted" checkbox is checked on the contract, the plugin JavaScript is executed as the new quote is created. 

 

Thanks for your help.

7 件の回答
  1. 2022年11月21日 22:22

    Antonio - I just tested this out and was able to update a quote line field with the script outside of the cart.  I tested both the Calculate button on the quote as well as triggering a re-calc by updating a field in the Calculating Fields field set.  In both scenarios, the script ran and I am seeing my desired outcomes (in my case, I am simply updating a quote line text field via the script).

     

    Have you tried all of the methods available with the QCP?  Something has to be getting in the way of the calculate.

0/9000