Legacy Quote Calculator Plugin
Use Apex code to perform calculations within the CPQ quote line editor.
| Required Editions |
|---|
| Available in: All Salesforce CPQ Editions |
As of Winter ’17, Salesforce CPQ isn’t developing new features for the Legacy Quote Calculator Plugin. Salesforce CPQ continues to support admin-related configuration cases for legacy calculator features. Salesforce Customer Support responds to bugs only for regressions from existing legacy calculator features. For current quote calculator plugin documentation, review Javascript Quote Calculator Plugin.
To use the Legacy Page Security Plugin, first create an Apex class. Then enter the Apex class name in the Legacy Page Security Plugin setting in the Salesforce CPQ package settings. You can call only one Apex class at a time in the Legacy Page Security Plugin.
- Calculating True End Date and Subscription Term
The sample JavaScript script can be used in the Quote Line Calculator to calculate values and store maximum values for the custom quote line fields True Effective End Date and True Effective Term. - Custom Package Total Calculation
The sample Apex class calculates the total price for all components in a quote line and then stores that value in a custom field. - Find Lookup Records
The sample Apex class can be used in the Legacy Quote Line Calculator to query records within the plugin and use fields from those records to set each quote line’s Description field.