Group By in related lists

Vidhi1
Kilo Explorer

Is there a way to get the same view in related lists as we get when we do a 'Group By' on certain column on list page?

3 REPLIES 3

Slava Savitsky
Giga Sage

Related lists have limited functionality compared to usual lists. For example, you can sort but cannot group records. Nor can you export data from a related list. A quick workaround is to right-click the breadcrumb and select "Open new window" from the context menu. A new browser tab/window will open with the same list, and the filter will also be preserved. There you can group the records and also export them.


williamsun
Mega Guru

On another note, if the grouping is fixed on a small amount of values, you can try to create a related list separately for each value.


For example, if you have change_request that has several child incidents, but you want to group by incident_state, you can create, say, three related lists:


1. New and Open incidents


2. Incidents in Awaiting


3. Resolved and Closed incidents



You would create a specific relationship for each with the table and filters and then add them to your form.


Creating Defined Related Lists - ServiceNow Wiki


Just my two-cents on how I have handled a few of these