Configure sets
Summarize
Summary of Configure sets
Configure sets in ServiceNow CPQ group related fields into repeatable collections, allowing administrators to streamline configurations and reduce redundancy. These sets enable dynamic, table-like data entry that supports aggregates and simplifies managing repeated questionnaires or configurable options.
Show less
Sets allow fields to be replicated multiple times (up to 2000 records) on the end-user interface in a matrix format, reducing the need for multiple individual fields and rules for repeating data.
Key Features
- Display Options: Sets can be shown as table rows, table columns, list rows, or as a set repeater, providing flexibility in UI presentation.
- Management: Sets are managed using the Layout Wizard, which helps configure how sets appear and behave within layouts.
- Adding/Removing Rows: End users can add or remove set records via controls such as a green plus button, editing the Size field, inserting between records, or using the Index column menu.
- Creating Sets: Admins create sets in blueprints or the fields administration tab by selecting a set field type, naming the set, and choosing a size type (number or associated picklist). The size type is fixed once saved.
- Associated Picklist Sets: When using this type, two additional fields are created automatically: Option Value (read-only) and Select Option (tracks selection).
- Distinct Values: Fields within a set can enforce unique values per set index, applicable only to non-empty entries.
- Aggregates: Sets can calculate aggregate values such as Average, Count, Maximum, Minimum, and Sum on numeric fields, enabling summarized data that can be used in global rules.
Practical Use and Considerations
Sets reduce complexity and improve efficiency by grouping repeatable data fields and enabling dynamic record counts. They are particularly useful in configurations involving repeated data groups, such as questionnaires or configurable product options.
Administrators should carefully choose the size type and understand how sets interact with other blueprint elements and rules to ensure proper functionality.
Sets group related fields into repeatable collections, allowing administrators to streamline configurations and reduce redundancy. They enable dynamic, table-like data entry, support aggregates, and simplify managing repeated questionnaires or configurable options in ServiceNow CPQ.
Sets allow the administrator to identify a number of fields in a group. Once associated with a set, the fields may then be replicated an indefinite number of times on the end-user UI in a matrix format. Sets reduce the number of fields and rules that must be defined for use cases that repeat fields and rules. The maximum number of set records (the number of times a group of fields can be repeated) is 2000.
In this set, three fields (Sandwich Choice, Side Choice, and Drink Choice) are defined in a set; the set is repeated three times:
Display types
Sets can be displayed in several ways.
- As table rows:
- As table columns:
- As list rows:
- As a set repeater:
You can manage sets by using the Layout Wizard. For more information about sets and layouts, see Using sets in layouts.
Adding and removing set rows
In the end-user UI, the user has four ways to increment or decrement set records:
- To add a record to the bottom of the set, click the green plus in the upper right corner.
- To add or remove records from the bottom of the set, edit the Size field and click Change Size.
- To insert a record between two existing records, hold the cursor between them in the Index column.
- To add records relative to the current record or to delete a record, use the menu in the Index column.
For more information about managing sets, see Using sets in layouts and How sets interact with the rest of a blueprint.
Creating a set
Sets can be added in the same two areas you would create fields: the blueprint to which to add the set, and the fields administration tab.
Select the set field type from among the list of options:
Give your new set a name and choose from the size types.
The size type cannot be changed after the set is saved. Therefore, keep the following in mind:
- The set field determines the number of records that will be displayed in the set. This numeric field can be visible and edited by a user or set by determination action, as the case requires.
- The associated picklist leverages a picklist field to determine how many records to show in the set. When this option is selected, the admin must identify the field that will drive the set size. When the set type is Associated
Picklist, ServiceNow CPQ creates two additional fields in the set:
- Option Value: The value of each option in the set, represented as a read-only text field.
- Select Option: Tracks whether each option of the picklist is selected.
For more information, see Creating an associated picklist set.
The next screen is the set screen, where the admin can add fields to the set, enforce distinct values, and create aggregates.
To add a field to the set, search for the name of the field to be added to the set, and then click +.
Any field in the set can have the “Distinct Values” option enabled. When this is true, each index of the set must have a unique value for the field. This setting only applies to non-empty fields.
When you create an aggregate for a field in the set, options include Average, Count, Maximum, Minimum, and Sum. For example, a sum aggregate on a number field called Quantity might store the sum of all Quantity field values in the set. Aggregates function as a field external to the set and can be used in global rules.
For more information on set aggregates, see Creating set aggregates.
When using sets in a configuration, it’s important to understand the scope of fields in the set and what can and cannot be accomplished when creating rules. See How sets interact with the rest of a blueprint.