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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
HierarchyTypeThe organization hierarchy this relationship belongs to. | Int64RefRecId | No | OMHierarchyType.RecId | OMOrganizationHierarchyPublishedV2EntityOMOrganizationHierarchyPublishedEntityRetailBuyersPushEntityand 1 more |
ValidToThe date and time until which the relationship is valid. | UtcDateTimeValidToDateTime | No | OMOrganizationHierarchyPublishedV2EntityOMOrganizationHierarchyPublishedEntityRetailReplenishmentRuleLineV2Entityand 4 more | |
ValidFromThe date and time from which the relationship is valid. | UtcDateTimeValidFromDateTime | No | OMOrganizationHierarchyPublishedV2EntityOMOrganizationHierarchyPublishedEntityRetailReplenishmentRuleLineV2Entityand 4 more | |
ChildOrganizationThe internal organization that sits below the parent in the hierarchy. | Int64RefRecId | No | OMInternalOrganization.RecId | OMOrganizationHierarchyPublishedV2EntityOMOrganizationHierarchyPublishedEntityRetailBuyersPushEntityand 1 more |
ParentOrganizationThe internal organization above the child in the hierarchy. | Int64RefRecId | No | OMInternalOrganization.RecId | OMOrganizationHierarchyPublishedV2EntityOMOrganizationHierarchyPublishedEntityRetailDefaultReportingHierarchyOrganizationEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
OMInternalOrganizationIdxParentOrganization,ChildOrganizationNot unique.
DateEffectiveValidTimeStateKeyReplacement keyHierarchyType,ValidTo,ValidFrom,ChildOrganizationUnique, alternate key.
Relations (4)
Each relation joins OMHierarchyRelationship to another table on the fields shown.
OMHierarchyType_FK→OMHierarchyTypeJoin on
HierarchyType = OMHierarchyType.RecIdMany OMHierarchyRelationship records → zero or one OMHierarchyType record
OMInternalOrganizationChild_FK→OMInternalOrganizationJoin on
ChildOrganization = OMInternalOrganization.RecIdMany OMHierarchyRelationship records → zero or one OMInternalOrganization record
OMInternalOrganizationParent_FK→OMInternalOrganizationJoin on
ParentOrganization = OMInternalOrganization.RecIdMany OMHierarchyRelationship records → zero or one OMInternalOrganization record
OMHierarchyChangeLog→OMHierarchyChangeLogJoin on
HierarchyType = OMHierarchyChangeLog.HierarchyType,ValidFrom = OMHierarchyChangeLog.EffectiveDateMany 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.
OMOrganizationHierarchyPublishedV2Entity· 5 fields from this tableOMOrganizationHierarchyPublishedEntity· 5 fields from this tableRetailReplenishmentRuleLineV2Entity· 2 fields from this tableRetailBuyersPushEntity· 4 fields from this tableRetailCrossDockEntity· 4 fields from this tableRetailReplenishmentRuleLineEntity· 2 fields from this tableRetailDefaultReportingHierarchyOrganizationEntity· 3 fields from this table
Need help with OMHierarchyRelationship in a report, an integration or a migration? Talk to Dr Dynamics.