web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics CRM Parent/Child Relationship

(0) ShareShare
ReportReport
Posted on by

Can somebody please explain to me how to parent child relationship works? How is it associated in the DB if I want to integrate to other systems. is there a way in a view to nest many children under one parent from GUI? or is the only option the hierarchical chart?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at
    RE: Dynamics CRM Parent/Child Relationship

    In CRM, the parent child relationships are created by adding a Lookup Field in the child record to the parent record. You can also create the relationships directly by navigating to 1-N relationships or N-1 relationships (based if you are in the parent or child entity).

    When the lookup field is created, a Guid field is stored in the database as a Foreign Key for that new field that you created.

    Inside of CRM, you can display a list of all of the child records inside a subgrid of the parent entity.

    If you need to nest multiple levels of children, you will need to figure out how to implement that doing your query.

    For example, you could store a ParentRoot lookup field, which will always point to the root entity, so that while in parent record and wanting to display all levels of children records, it would reference them by ParentRoot instead of just Parent.

    There are other ways of implementing this as well.

    If you need to access the data from other application besides CRM (assuming you are On-Premise), you can always use Filtered Views and execute SQL Statements directly against CRM).

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans