Configure sets
Summarize
Summary of Configure sets
Configure sets enable ServiceNow administrators to group related fields into repeatable collections, streamlining configurations and minimizing redundancy. These sets function like dynamic tables that allow repeated data entry, making them ideal for managing recurring questionnaires or configurable options in CPQ environments.
Show less
Sets support up to 2000 repeated records, allowing a group of fields to be replicated multiple times on the end-user interface in various formats such as table rows, table columns, list rows, or set repeaters.
Key Features
- Repeatable Field Groups: Define sets with multiple fields that users can replicate indefinitely, reducing the need to create multiple similar fields.
- Display Options: Sets can be presented in different layouts to suit user interface needs, including rows, columns, and repeaters.
- User Control of Set Size: End users can add or remove set records through UI controls such as plus buttons, size fields, or index column menus.
- Set Creation: Sets are created in blueprints or the fields administration tab by selecting the set field type, naming the set, and choosing a size type (numeric or associated picklist).
- Size Types: Numeric size types allow user or action-driven control over the number of set records; associated picklist size types use a picklist field to determine set size and create two additional fields (Option Value and Select Option) for managing selections.
- Distinct Values: Fields within a set can enforce uniqueness per record index, ensuring non-empty values do not repeat.
- Aggregates: Aggregation functions (Average, Count, Maximum, Minimum, Sum) can be created on set fields to summarize data externally and support global rules.
Key Outcomes
- Reduced complexity in configuration by consolidating repeated fields into manageable sets.
- Enhanced user flexibility in entering and managing repeated data without cluttering the interface.
- Improved data integrity through distinct value enforcement within sets.
- Ability to perform aggregate calculations on repeated data, enabling advanced rule creation and reporting.
- Streamlined configuration management and layout customization through integration with the Layout Wizard.
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 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, 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.