Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Custom Package Total Calculation

The sample JavaScript script can be used in the Quote Line Calculator to calculate the total price for all components in a quote line and then store that value in a custom field.
Available in: Salesforce CPQ Winter ’16 and later

This sample JavaScript code exports all of the methods that the calculator looks for, and documents their parameters and return types.

The sample script assumes the Salesforce admin created a custom field Component Custom Total on the Quote Line object.

Note

Javascript