Table
Hierarchy
Hierarchies
Holds hierarchy headers, identified by a hierarchy ID. Each has a type, such as case process, project, sales process or quotation. Records can be marked as templates or active, and can be flagged for CAPA use. It is linked to other records through hierarchy associations.
- Table name
Hierarchy- Module
Cross-module and platform- Table group
Worksheet- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
HierarchyIdx- Replacement key
HierarchyIdx- Key fields
HierarchyId- Model
CaseManagement
Fields (17)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
HierarchyIdUnique ID of the hierarchy. It is used in hierarchy associations. | StringHierarchyIdBase | Yes | QMSCAPAProcessTemplateEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DescriptionShort text that describes the hierarchy. | String (60)Description | No | QMSCAPAProcessTemplateEntity | |
FileNameName of a file linked to the hierarchy. | String (259)Filename | No | None | |
FilePathFolder path where the linked file is stored. | String (259)FilePath | No | None | |
HierarchyTypeKind of hierarchy, for example case process, project, sales process, lead qualifying process, campaign process, purchase agreement or quotation. | EnumHierarchyType (enum) | Yes | None | |
IsActiveYes/No flag showing whether the hierarchy is active. | EnumNoYesIdNoYes (enum) | No | QMSCAPAProcessTemplateEntity | |
IsTemplateYes/No flag showing whether the hierarchy is a template. | EnumHierarchyIsTemplateNoYes (enum) | No | ProjWBSTemplateTasksEntity | |
LockBoxTypeKind of storage used for the linked files: a local or network folder, or a collaboration workspace. | EnumMSPIntegrationType (enum) | No | None | |
NameShort name of the hierarchy. | String (20)HierarchyName | Yes | QMSCAPAProcessTemplateEntityProjProjectTaskEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QMSApprovedYes/No flag showing whether the record has been approved. | EnumQMSApprovedNoYes (enum) | No | QMSCAPAProcessTemplateEntity | |
QMSIsCAPAYes/No flag marking the hierarchy for CAPA use. | EnumQMSIsCAPANoYes (enum) | 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)
HierarchyIdxPrimary indexReplacement keyUnique, alternate key.
NameIdxHierarchyType,Name,IsTemplateUnique, alternate key.
Relations (3)
Each relation joins Hierarchy to another table on the fields shown.
CaseCategoryHierarchyDetail→CaseCategoryHierarchyDetailJoin on
HierarchyType = HierarchyType::Case,IsActive = 1,IsTemplate = 1Cardinality not set in the metadata.
CaseDetail→CaseDetailJoin on
HierarchyType = HierarchyType::Case,IsActive = 1,IsTemplate = 1Cardinality not set in the metadata.
HierarchyLinkTableTemplate→HierarchyLinkTableJoin on
HierarchyId = HierarchyLinkTable.TemplateHierarchyId,IsTemplate = 1Many Hierarchy records → zero or one HierarchyLinkTable record
Get this data out
Tables are not exposed directly. These public entities read from Hierarchy; use one of them in Power BI, Power Platform or a data management project.
QMSCAPAProcessTemplateEntity· 5 fields from this tableProjProjectTaskEntity· 1 field from this tableProjWBSTemplateTasksEntity· 1 field from this tableQMSCAPAProcessTemplateNodeEntity· 0 fields from this table
Need help with Hierarchy in a report, an integration or a migration? Talk to Dr Dynamics.