Use Consumption Schedules and Consumption Rates in Custom Scripts

Add extra functionality to your consumption schedules and rates to better meet your company’s needs. Include up to 10 fields from the Consumption Rate and Consumption Schedule objects in custom JavaScript code.

Where: This change applies to Salesforce Classic and Lightning Experience in all Salesforce CPQ editions.

Why: Consumption schedules provide flexible pricing for usage-based products, but your company’s business process is unique. Use custom scripts to provide more functionality to better meet your company’s needs.

How: Enter the API names of up to 10 fields from the consumption schedules object, and the API names of up to 10 fields from the consumption rates object. Use custom scripts by calling them from the CPQ Quote Calculator Plugin.

Tip

Tip

Don’t enter fields that your script doesn’t need. The more fields you enter, the longer it takes to run your script.

The Consumption Schedule Fields and Consumption Rate Fields fields on the CPQ custom scripts object.