Loading

Salesforce CPQ filter Quote Lines to display as separate sections in Quote Documents

Data pubblicazione: Dec 30, 2025
Descrizione
When Building Your CPQ Documents with CPQ Templates, you can organize the quote lines into multiple sections based on criteria such as fields like Product Family or custom criteria you specify. In addition to filtering what quote line section is displayed, you can also control subtotals, totals, and display different columns.
 
Risoluzione

Filtering Line Items

1. Create separate Template Content records of the type Line Items for each filtered list of quote line items.
2. Create Template Section records for each filtered list of line items to be displayed. For example, you could have a template section called "Hardware Line Items" and another called "Shipping Line Items", but each would have a different filter. The filter field must exist as a field on the SBQQ__QuoteLine__c object.
3. Enter a filter for each template section. For example, the filter for the "Hardware Line Items" template section could be: 
  • Filter Field: SBQQ__ProductFamily__c
  • Filter Operator: equals
  • Filter Value: Hardware
4. Create additional template content and sections for additional filtering of Quote line items you want to display separately.

Tip: Remember to have a 'catch all' filter for any Quote line items that do not fit in your filtered line item lists.


Printing Totals for Filtered Sections

Salesforce CPQ also allows you to customize which line item sections contain subtotals. For example, you might want to hide totals in your section of Shipping Line Items, yet display totals in your Hardware Line Items list.
1. Set up the Filtered Lists of Quote line items, explained in the section above.
2. Navigate to Quote Templates | Quote Template Name | Edit.
3. In the Print Options Section, select Hide Totals to hide the grand totals at the bottom of all line item sections.
4. Click Edit next to a line items Section on the Quote Template.
5. Select Print Quote Totals.
6. Repeat Steps 4 and 5 for each line item Section.
7. Choose the appropriate option in the Summary Display picklist for each quote line items section: 
  • Always: Displays subtotals, discounts, and grand totals in the quote line section at all times, regardless of the settings on your quote template.
  • Never: Does not display totals in the quote line item sections.
  • None: Inherits the subtotal and grand total settings on the Quote Template.

Tip: To display Quote Totals outside the line items table, select Hide Totals on the Quote Template to remove all totals from your line item tables. Then, use the {!quoteTotal} and {!quoteSubTotal} merge fields in your template content to display subtotal and grand total anywhere you like on your quote template.
Numero articolo Knowledge

000383959

 
Caricamento
Salesforce Help | Article