Table

OMHierarchyRelationship

Hierarchy relationship

Links an internal organization to its parent organization within a given organization hierarchy. Each record is valid for a date range. The key combines hierarchy, validity dates and child organization.

Table name
OMHierarchyRelationship
Module
Global address book
Table group
Main
Table type
Regular
Data per company
No
Configuration key
None
Primary index
None
Replacement key
DateEffectiveValidTimeStateKey
Key fields
HierarchyType, ValidTo, ValidFrom, ChildOrganization
Model
Directory

Fields (10)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
HierarchyTypeThe organization hierarchy this relationship belongs to.Int64
RefRecId
NoOMHierarchyType.RecIdOMOrganizationHierarchyPublishedV2EntityOMOrganizationHierarchyPublishedEntityRetailBuyersPushEntityand 1 more
ValidToThe date and time until which the relationship is valid.UtcDateTime
ValidToDateTime
NoOMOrganizationHierarchyPublishedV2EntityOMOrganizationHierarchyPublishedEntityRetailReplenishmentRuleLineV2Entityand 4 more
ValidFromThe date and time from which the relationship is valid.UtcDateTime
ValidFromDateTime
NoOMOrganizationHierarchyPublishedV2EntityOMOrganizationHierarchyPublishedEntityRetailReplenishmentRuleLineV2Entityand 4 more
ChildOrganizationThe internal organization that sits below the parent in the hierarchy.Int64
RefRecId
NoOMInternalOrganization.RecIdOMOrganizationHierarchyPublishedV2EntityOMOrganizationHierarchyPublishedEntityRetailBuyersPushEntityand 1 more
ParentOrganizationThe internal organization above the child in the hierarchy.Int64
RefRecId
NoOMInternalOrganization.RecIdOMOrganizationHierarchyPublishedV2EntityOMOrganizationHierarchyPublishedEntityRetailDefaultReportingHierarchyOrganizationEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (4)

Each relation joins OMHierarchyRelationship to another table on the fields shown.

  • OMHierarchyType_FK → OMHierarchyType

    Join on HierarchyType = OMHierarchyType.RecId

    Many OMHierarchyRelationship records → zero or one OMHierarchyType record

  • OMInternalOrganizationChild_FK → OMInternalOrganization

    Join on ChildOrganization = OMInternalOrganization.RecId

    Many OMHierarchyRelationship records → zero or one OMInternalOrganization record

  • OMInternalOrganizationParent_FK → OMInternalOrganization

    Join on ParentOrganization = OMInternalOrganization.RecId

    Many OMHierarchyRelationship records → zero or one OMInternalOrganization record

  • OMHierarchyChangeLog → OMHierarchyChangeLog

    Join on HierarchyType = OMHierarchyChangeLog.HierarchyType, ValidFrom = OMHierarchyChangeLog.EffectiveDate

    Many OMHierarchyRelationship records → zero or one OMHierarchyChangeLog record

Get this data out

Tables are not exposed directly. These public entities read from OMHierarchyRelationship; use one of them in Power BI, Power Platform or a data management project.

Need help with OMHierarchyRelationship in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk