Where can I find the code that counts the number of child cases in Customer Service Case related lists? Need to check if can pull that one for a report.

Argie1
Tera Contributor

find_real_file.png

1 ACCEPTED SOLUTION

Hi

you can take the ootb column "child_incidents" on table "incident" as a blueprint.

And the following Business Rule is calculating the number of child incidents for a parent incident:

https://<YOUR INSTANCE>.service-now.com/nav_to.do?uri=sys_script.do?sys_id=78e8bbe70a00070479138c7302ad631b

You can copy and modify that Business Rule with low efforts.

Kind regards
Maik

View solution in original post

3 REPLIES 3

Maik Skoddow
Tera Patron
Tera Patron

Hi

there is no special code for that. The number just represents the amount of related records, which can be calculated with easy means.

Please explain how and where you need that number and then we can check how to solve this.

Kind regards
Maik

I want to specifically get the number of child cases for a parent case and store it in a column to display it on a report.

Hi

you can take the ootb column "child_incidents" on table "incident" as a blueprint.

And the following Business Rule is calculating the number of child incidents for a parent incident:

https://<YOUR INSTANCE>.service-now.com/nav_to.do?uri=sys_script.do?sys_id=78e8bbe70a00070479138c7302ad631b

You can copy and modify that Business Rule with low efforts.

Kind regards
Maik