Find Lookup Records

The sample JavaScript script can be used in the Quote Line Calculator to query records within the plugin and use fields from those records to set each quote line’s Description field.
Available in: Salesforce CPQ Winter ’16 and later

Each version of the JavaScript code samples exports all of the methods that the calculator will look for, and documents their parameters and return types.

Javascript

Javascript Using Method-Chaining

This plugin uses method-chaining style to construct the query, which is useful when you want to dynamically construct your queries.