How to display a specific number of records from related list?

Miroslaw
Tera Contributor

Hi,

I want to show in Vulnerable Item list view records that have only 2 records (no more and no less) in their related list (in State Change Approvals).

The following example (Vulnerable Item form view related lists) should be skipped in the condition (since there are 3 records).

What condition/count I should add in the list view to achieve this?

find_real_file.png

2 REPLIES 2

Sulabh Garg
Mega Sage
Mega Sage

Hello

To limit the number of records in related list, You can go to "System defination->Relationships" and open the record "State Change Approvals" which is a relationship on the Vulnerable Item Table.

1) find_real_file.png

 

2) Open this record and add the highlighted line in the script.

find_real_file.png

 

 

Please Mark ✅ Correct/helpful, if applicable, Thanks!! 

Regards

Sulabh Garg

Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg

Thanks @Sulabh Garg for the quick reply

It is not about limiting the number of records in the related list

I want to get/display Vulnerable item records in list view, which contain only 2 records in their State Change approvals related list.

Scenario:

There are many VIs that have different number of records in their State Change approvals related list. I want to get/show in Vulnerable item list view only the VIs that have 2 records in State Change approvals.