Portal Data List widget JSON parameters
JSON parameters define aspects of the Portal Data list widget on the portal page.
Note: This information assumes that you're familiar with the JSON code format.
|
Parameter |
Description |
|---|---|
|
categories |
Each category displays a set of records from the Customer Case View Case [sn_customerservice_case] table that meets the filter criteria.For each category, you can choose from pre_defined_filters and run_time_filters predefined filter tabs. You can also set the columns for the list view and choose which fields appear in the card view. |
|
ID |
A unique identifier that enables the categories condition script to determine whether to show or hide categories on the widget. |
|
label |
Name of the category that appears on the navigation pane.If a label isn't entered, the category doesn't appear. |
|
table |
The table from which the records are shown on the widget when a category is selected.By default, this field is set to the Case [sn_customerservice_case] table. |
|
list_view |
The name of the view that defines the list of columns or fields to appear on the widget.For more information on these views, see Create and delete views. If no value is provided, all columns are shown. |
|
card_view_primary_column |
A field from the defined table that appears in the first column of a card. For example, you can show the case number in the first column. |
|
card_view_secondary_column |
A field from the defined table that appears in the second column of a card. For example, you can show short description of the case record.This parameter is optional. |
|
card_view_additional_columns":"column1|column2|column3|column4 |
Field pairs from the defined table that appear as additional columns of a card.You can add a maximum of four additional columns. This parameter is optional. |
|
query":"active=true" |
Query to filter the records that display under the category.If no value is provided, all records are displayed. |
|
glyph":"glyph_name" |
The glyph to appear on the left of the category label in the navigation pane. The glyph name provided should be from the font-awesome library, which can be accessed at the following URL: Text The currently supported version of the font-awesome library is v4.7. If you use a glyph name from a different version, the image will not appear correctly. Note: If both a glyph and an image are defined, the image is displayed. This parameter is optional. |
|
"image_name":"file_img" |
An image to appear on the left of the category. Select the image name from the Images [db_image] table. Note: If both a glyph and an image are defined, the image is displayed. This parameter is optional. |
|
record_view_page |
The Service Portal that displays the page with details of any record accessed in the widget.This parameter is optional. By default, this field is set to the Case (csm_ticket) page. |
|
pre_defined_filters"filter_name":"Value", |
Display cases which are in New, Closed, Open, or Awaiting Info state in any selected category. These filters appear as tabs in the widget. Only Open and Closed case are included by default in the JSON code. The available values are:- filter_name: Name of the filter tab.
This parameter is optional. |
|
run_time_filters |
Displays column and its fields from the defined table as runtime filters in a drop-down list. These runtime filters filter the case records displayed in the widget based on different fields from the defined table. For example, you can display Priority as a column and State, Contact, or Updated as fields. If the runtime filters values are not provided in the column and selection_type parameters, the filter icon will not appear for the category. This parameter is optional. |
|
selection_type |
Display the type of selection. The available options are:- Single select: Single selection for the filter column
|
|
values"value":"4" |
Values from the defined table for the column parameter. The available values are:- Label: Name of a value
|
|
"ranges":"label":"Last Month", "query":"<Range condition>", |
Filters the records using a query defined in the label and query parameters. For example, you can display case records that have been updated in the last month, last 3 months, or last 6 months.The range configuration is:
This parameter is optional. |
|
JSON |
Displays the data list according to the role of the logged-in user. List the roles in an array to map multiple roles to the same view. All roles in that array share the same view. For example, if you want both support agents and service managers to see the same case view, assign the same view to both roles within an array. Use a view such as When a user has multiple roles the system uses the first matching view it finds. This parameter is optional. |
|
"guest_view":"viewname |
Displays items for guest users or users who aren't logged in. Map the view you wish to display for the guest users.To make the items available to guest users, you must set these to public:
For details, see Configure public access on the Portal Data List widget. This parameter is optional. |
|
"sort_by":"<column name>" |
Sorts the data list when it first loads.This parameter is optional. |
|
"sort_order":"<asc/desc>" |
Sort order for the data list. Default is ascending.This parameter is optional. |
|
show_all_reference_filter_values |
Controls how dropdown values are populated for a reference-type runtime filter column. Applies per reference column, per category. The default value is
For guidance on when to enable this parameter, see Best practices for runtime filters. This parameter is optional. |
|
scope_runtime_filters_to_sub_category |
Controls whether runtime filter dropdowns are scoped to the records in the active subcategory tab. Applies when subcategories are configured. The default value is
For guidance on when to enable this parameter, see Best practices for runtime filters. This parameter is optional. |
Some field types work well as runtime filters. Others produce unusable dropdowns or slow load times.
Use these field types as filters:
- Choice or state fields with a bounded set of values, such as Priority, State, or Category.
- Reference fields that users naturally filter by, such as Account, Assignment Group, or Contact.
- Date fields configured with ranges, such as "updated in the last month."
Avoid these field types as filters:
- Free-text fields such as Short description or Work notes, since each unique value makes the dropdown unusable and slows load times.
- High-cardinality fields that don't work as filters, such as Number, sys_id, or raw timestamps.
- Fields that the user's role can't read due to ACLs, which return empty or partial dropdowns.
When to enable show_all_reference_filter_values
Set this option to true when:
- You want to filter by any valid value in a reference field, not only values in the current list.
- The referenced table holds less than about 2,000 records, so loading the full set of accessible values stays fast.
Set this option to false (default) when reference values in the list are few. Users can filter by values in the current results. This keeps the dropdown focused and concise.
When to enable scope_runtime_filters_to_sub_category
Set this option to true when subcategories hold clearly distinct sets of records and filter options should stay relevant to the active tab.
Set this option to false (default) when:
- You need one consistent set of filter values across all subcategories.
- Filter continuity matters across tabs, since enabling this option resets active filter selections when a user switches tabs.
Related topics
---
title: Portal Data List widget JSON parameters
description: JSON parameters define aspects of the Portal Data list widget on the portal page.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/customer-service-management/portal-datalist-widget-data-json.html
release: brazil
topic_type: reference
last_updated: "2026-09-10"
reading_time_minutes: 7
breadcrumb: [JSON parameter in Configurable Portal Widgets, Configurable Portal Widgets reference, Reference, Customer Service Management]
---
# Portal Data List widget JSON parameters
JSON parameters define aspects of the Portal Data list widget on the portal page.
**Note:** This information assumes that you're familiar with the JSON code format.
<table id="table_csm_base_entities"><thead><tr><th>
Parameter
</th><th>
Description
</th></tr></thead><tbody><tr><td>
categories
</td><td>
Each category displays a set of records from the Customer Case View Case \[sn\_customerservice\_case\] table that meets the filter criteria.For each category, you can choose from pre\_defined\_filters and run\_time\_filters predefined filter tabs. You can also set the columns for the list view and choose which fields appear in the card view.
</td></tr><tr><td>
ID
</td><td>
A unique identifier that enables the categories condition script to determine whether to show or hide categories on the widget.
</td></tr><tr><td>
label
</td><td>
Name of the category that appears on the navigation pane.If a label isn't entered, the category doesn't appear.
</td></tr><tr><td>
table
</td><td>
The table from which the records are shown on the widget when a category is selected.By default, this field is set to the Case \[sn\_customerservice\_case\] table.
</td></tr><tr><td>
list\_view
</td><td>
The name of the view that defines the list of columns or fields to appear on the widget.For more information on these views, see [Create and delete views](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-user-interface/create-delete-view.md).
If no value is provided, all columns are shown.
</td></tr><tr><td>
card\_view\_primary\_column
</td><td>
A field from the defined table that appears in the first column of a card. For example, you can show the case number in the first column.
</td></tr><tr><td>
card\_view\_secondary\_column
</td><td>
A field from the defined table that appears in the second column of a card. For example, you can show short description of the case record.This parameter is optional.
</td></tr><tr><td>
card\_view\_additional\_columns":"column1\|column2\|column3\|column4
</td><td>
Field pairs from the defined table that appear as additional columns of a card.You can add a maximum of four additional columns.
This parameter is optional.
</td></tr><tr><td>
query":"active=true"
</td><td>
Query to filter the records that display under the category.If no value is provided, all records are displayed.
</td></tr><tr><td>
glyph":"glyph\_name"
</td><td>
The glyph to appear on the left of the category label in the navigation pane. The glyph name provided should be from the font-awesome library, which can be accessed at the following URL:
```
https://fontawesome.com/v4/icons/
```
The currently supported version of the font-awesome library is v4.7. If you use a glyph name from a different version, the image will not appear correctly.
**Note:** If both a glyph and an image are defined, the image is displayed.
This parameter is optional.
</td></tr><tr><td>
"image\_name":"file\_img"
</td><td>
An image to appear on the left of the category. Select the image name from the Images \[db\_image\] table.
**Note:** If both a glyph and an image are defined, the image is displayed.
This parameter is optional.
</td></tr><tr><td>
record\_view\_page
</td><td>
The Service Portal that displays the page with details of any record accessed in the widget.This parameter is optional.
By default, this field is set to the Case \(csm\_ticket\) page.
</td></tr><tr><td>
pre\_defined\_filters"filter\_name":"Value",
</td><td>
Display cases which are in New, Closed, Open, or Awaiting Info state in any selected category. These filters appear as tabs in the widget. Only Open and Closed case are included by default in the JSON code. The available values are:- filter\_name: Name of the filter tab.
- Value: Name of the case state such as New, Closed, Open, or Awaiting Info.
This parameter is optional.
</td></tr><tr><td>
run\_time\_filters
</td><td>
Displays column and its fields from the defined table as runtime filters in a drop-down list. These runtime filters filter the case records displayed in the widget based on different fields from the defined table. For example, you can display Priority as a column and State, Contact, or Updated as fields. If the runtime filters values are not provided in the column and selection\_type parameters, the filter icon will not appear for the category.
This parameter is optional.
</td></tr><tr><td>
selection\_type
</td><td>
Display the type of selection. The available options are:- Single select: Single selection for the filter column
- Multi select: Multiple selection values for the filter columns
</td></tr><tr><td>
values"value":"4"
</td><td>
Values from the defined table for the column parameter. The available values are:- Label: Name of a value
- Value: Integer value of a field
</td></tr><tr><td>
"ranges":"label":"Last Month", "query":"<Range condition>",
</td><td>
Filters the records using a query defined in the label and query parameters. For example, you can display case records that have been updated in the last month, last 3 months, or last 6 months.The range configuration is:
- Label: Name of the filter option
- Query: Query that defines a set of values grouped under a label
This parameter is optional.
</td></tr><tr><td>
```
"role_based_views":
{
"field_service_agent_view":"snc_field_technician",
"agent_case_view":["snc_customer_service_agent","snc_manager"]
}
```
</td><td>
Displays the data list according to the role of the logged-in user. List the roles in an array to map multiple roles to the same view. All roles in that array share the same view.
For example, if you want both support agents and service managers to see the same case view, assign the same view to both roles within an array. Use a view such as `"agent_case_view"`.
When a user has multiple roles the system uses the first matching view it finds.
This parameter is optional.
</td></tr><tr><td>
"guest\_view":"viewname
</td><td>
Displays items for guest users or users who aren't logged in. Map the view you wish to display for the guest users.To make the items available to guest users, you must set these to public:
- Portal Data List widget.
- Page containing widget \(for example, Cases and Tasks\).
- Page content instance.
For details, see [Configure public access on the Portal Data List widget](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/customer-service-management/customer-self-service-and-omnichannel-engagement/config-data-list-widget-inst-guest-access.md).
This parameter is optional.
</td></tr><tr><td>
"sort\_by":"<column name>"
</td><td>
Sorts the data list when it first loads.This parameter is optional.
</td></tr><tr><td>
"sort\_order":"<asc/desc>"
</td><td>
Sort order for the data list. Default is ascending.This parameter is optional.
</td></tr><tr><td>
show\_all\_reference\_filter\_values
</td><td>
Controls how dropdown values are populated for a reference-type runtime filter column. Applies per reference column, per category. The default value is `false`.The available options are:
- **False** \(default\): The dropdown shows only reference values that appear in the current list.
- **True**: The dropdown shows every value in the referenced table that the user has access to, including values that no record in the current list points to.
For guidance on when to enable this parameter, see [Best practices for runtime filters](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/customer-service-management/portal-datalist-widget-data-json.md).
This parameter is optional.
</td></tr><tr><td>
scope\_runtime\_filters\_to\_sub\_category
</td><td>
Controls whether runtime filter dropdowns are scoped to the records in the active subcategory tab. Applies when subcategories are configured. The default value is `false`.The available options are:
- **False** \(default\): Filter dropdowns show values from across all subcategory records, and selected filters persist when switching tabs.
- **True**: Filter dropdowns show only the values present in the active subcategory's records. Switching subcategory tabs resets any selected filters.
For guidance on when to enable this parameter, see [Best practices for runtime filters](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/customer-service-management/portal-datalist-widget-data-json.md).
This parameter is optional.
</td></tr></tbody>
</table>## Best practices for runtime filters
Some field types work well as runtime filters. Others produce unusable dropdowns or slow load times.
Use these field types as filters:
- Choice or state fields with a bounded set of values, such as Priority, State, or Category.
- Reference fields that users naturally filter by, such as Account, Assignment Group, or Contact.
- Date fields configured with ranges, such as "updated in the last month."
Avoid these field types as filters:
- Free-text fields such as Short description or Work notes, since each unique value makes the dropdown unusable and slows load times.
- High-cardinality fields that don't work as filters, such as Number, sys\_id, or raw timestamps.
- Fields that the user's role can't read due to ACLs, which return empty or partial dropdowns.
## When to enable show\_all\_reference\_filter\_values
Set this option to `true` when:
- You want to filter by any valid value in a reference field, not only values in the current list.
- The referenced table holds less than about 2,000 records, so loading the full set of accessible values stays fast.
Set this option to `false` \(default\) when reference values in the list are few. Users can filter by values in the current results. This keeps the dropdown focused and concise.
## When to enable scope\_runtime\_filters\_to\_sub\_category
Set this option to `true` when subcategories hold clearly distinct sets of records and filter options should stay relevant to the active tab.
Set this option to `false` \(default\) when:
- You need one consistent set of filter values across all subcategories.
- Filter continuity matters across tabs, since enabling this option resets active filter selections when a user switches tabs.
**Related topics**
[Add and configure the Portal Data List widget](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/customer-service-management/customer-self-service-and-omnichannel-engagement/config-data-list-widget-inst-optns.md)
| title | Portal Data List widget JSON parameters |
| description | JSON parameters define aspects of the Portal Data list widget on the portal page. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/customer-service-management/portal-datalist-widget-data-json.html |
| release | brazil |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 7 |
| breadcrumb | JSON parameter in Configurable Portal WidgetsConfigurable Portal Widgets referenceReferenceCustomer Service Management |