How to display a specific number of records from related list?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2022 12:07 PM
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?
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2022 12:23 PM
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)
2) Open this record and add the highlighted line in the script.
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2022 12:32 PM
Thanks
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.