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 :
Microsoft Dynamics AX (Archived)

Where are branches stored?

(0) ShareShare
ReportReport
Posted on by

Hello fellas!

I'm trying to retrieve all company branches, but I can't be sure of what is the right way. If you'd please help me. These are two solutions I came up with:

  1. Table CompanyInfo has BranchId field (this is the one I'm least sure of, since I can see no relations for that field)
  2. Table OMInternalOrganization has a type (LegalEntity). I'd join those records with OMHierarchyRelationship and then get all children in that organization

Is any of these at least close to the right way? What should I do to list all company's branches?

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi,

    BranchId field in CompanyInfo is used for tax reporting and doesn't help much if you need to iterate through the organization hierarchy.

    You can use the OMInternalOrganization (+OMHierarchyRelationship) tables or the OMExplodedOrganizationSecurityGraph. I usually prefer the second option.

  • Community Member Profile Picture
    on at

    Awesome, thanks for the help, Oleg!

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans