Sometimes it is required to get the list of all child relationship names in order to identify all related child objects to a parent object.
Dynamic apex helps to find out all related child object. Suppose you want to find all related object for Account then use below code snippet:
You can specify any object API name and run this code snippet in developer console.
You can also use workbench to find out list of child objects. Navigate to Info tab and select Standard & Custom Objects.
Hope this will help!!
Dynamic apex helps to find out all related child object. Suppose you want to find all related object for Account then use below code snippet:
You can specify any object API name and run this code snippet in developer console.
You can also use workbench to find out list of child objects. Navigate to Info tab and select Standard & Custom Objects.
Hope this will help!!