function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Srinivas VKSrinivas VK 

query to get the list related cases list

We have added related cases section on the case page layout and users are adding/linking the many cases to the case.

Now I need to fetch all those cases which are having the related cases. How to get the cases list along with the related cases details.
yogesh_patilyogesh_patil
SELECT Id,(SELECT ID FROM RelationshipName) FROM Case WHERE Id = 'currentcaseId'
RelationshipName = Child RelationshipName available on the lookup field to related cases on case object