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

14 comments:

  1. Replies
    1. Big data is a term that describes the large volume of data – both structured and unstructured – that inundates a business on a day-to-day basis. big data projects for students But it’s not the amount of data that’s important.Project Center in Chennai

      Spring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Corporate TRaining Spring Framework the authors explore the idea of using Java in Big Data platforms.

      Spring Training in Chennai

      The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. 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
  3. 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
  4. 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
  5. 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
  6. You there, this is really good post here. Thanks for taking the time to post such valuable information. Quality content is what always gets the visitors coming. ispace1

    ReplyDelete
  7. It means that both of you or all of you that are involved in the relationship are seeing things from different angles.GoolMal

    ReplyDelete
  8. After giving consultations and therapy to many persons, I noticed that broken relationships can be traced to the following factors and causes.I also did some research about relationships, and found out that statistics also support these causes. Signs he doesn't want a relationship with you

    ReplyDelete
  9. When we know we are a relationship unto ourselves, complete and sufficient within ourselves, we set up a vibration that attracts someone with those same qualities and assurance. 룸알바

    ReplyDelete
  10. At the hearing, the court shall hear evidence to determine whether the child custody and support determination should be modified. this website

    ReplyDelete
  11. Seduce means to give others what they want, and it will be very different to what you'd want if you were them. And this is why relationships are so challenging. While you are getting seduced you dream that this getting, this satisfaction is going to last forever. Medical Instruments

    ReplyDelete