Add Reference Fields

Even though you can select all fields for the Quote and Quote Line objects while creating a quote test template, the related Salesforce CPQ APIs (Calculate Quote API, Contract Amender API, and Contract Renewer API) do not automatically return values for all fields. Generally, the APIs return fields referenced by price rules, product rules, the quote calculator plugin (QCP), and fields that appear in the quote line editor. Exact fields vary widely from implementation to implementation.


If a field you select isn’t referenced by any rule or is not visible in the quote line editor, the APIs might not return a baseline or test run result value. You can include missing standard fields and your custom fields in the API requests by using referenced fields. To ensure the fields you select to test are returned by the APIs, refer to the Referenced Fields Field Set in Salesforce CPQ Salesforce knowledge article and follow the inclusion instructions.