Thursday, May 30, 2019

How to get all Child Objects List along with Relationship Names related to Parent Object using Apex

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!!

5 comments:

  1. This is my first time i visit here. I found such a substantial number of interesting stuff in your blog especially its examination. Really its inconceivable article. Keep it up. cuckold sites

    ReplyDelete
  2. Two, dating accomplices ought to have the option to take choices of the course of the relationship without sitting tight for guardians, uncles and aunts to choose what might occur. threesome finder

    ReplyDelete
  3. Nice Post & I Must Say it is one of the best Blog I have every seen before Otherwise if anyone Want SALESFORCE Training with Placement So You Can Contact here-9311002620

    Some Best SALESFORCE Training Center in Delhi, India

    Salesforce training institute in delhi
    Salesforce training institute in Noida
    Salesforce training institute in Faridabad

    ReplyDelete
  4. For anyone who is wondering how you can make the most of online psychic readings, there are many easy things that you may do. Prior to call to talk with all your psychic, best love psychic

    ReplyDelete