Find Lookup Records
Use this sample JavaScript script in the Quote Line Calculator to query records within the plugin and to set each quote line’s Description field using fields from those records.
| Required Editions |
|---|
| Available in: Salesforce CPQ Winter ’16 and later |
Each version of these JavaScript code samples exports all of the methods that the calculator looks for, and documents their parameters and return types.
Use conn.query before you use loops that require lookup information so that you can avoid JSON errors with resolving loops.
This plugin uses method-chaining style to construct the query, which is useful when you want to dynamically construct your queries.