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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Data of department hierarchy in x++

(0) ShareShare
ReportReport
Posted on by 209

Hi Community Experts,

I have a requirement where I need to fetch the data of Department Hierarchy.

pastedimage1650019761269v1.png

I am unable to find the data of these departments mentioned in the parent-child relationship in SQL.

The requirement is to display all the departments in a dropdown and when a department is selected, its parent must be auto populated in a text field as per the configured hierarchy.

As per the above image, if I select "IT" on any position details form in department field, "Finance" must be populated in another text field.

I have no problem auto-populating the fields, I am just stuck with the table relations of this parent-child hierarchy of departments.

Looking forward to usual helpful responses.

Best Regards

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,088 Super User 2025 Season 2 on at

    Hi Ali,

    You can find the hierarchy details in the tables OMHierarchyRelationship and OMExplodedOrganizationSecurityGraph.

  • alinawaz Profile Picture
    209 on at

    UPDATE !
    The data can be found in a OOTB view "OMOrganizationHierarchyPublished"

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans