Table
HierarchyTreeTable
Hierarchy tree
Holds the nodes and activities inside a hierarchy. The key is the element number plus the hierarchy ID. Each row has a parent element, a level, a path and a line number. Extra fields hold project-style levels (subproject, task) and a link to a sales quotation.
- Table name
HierarchyTreeTable- Module
Cross-module and platform- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
HierarchyElementNumIdx- Replacement key
HierarchyElementNumIdx- Key fields
ElementNumber, HierarchyId- Model
CaseManagement
Fields (29)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ElementNumberNumber that identifies the element within its hierarchy. | StringElementNumber | Yes | smmProcessStage.ElementNumber | ProjProjectTaskEntityQMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity |
HierarchyIdID of the hierarchy that the element belongs to. | StringHierarchyIdBase | Yes | Hierarchy.HierarchyId | QMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntityTrvExpMobileActivitiesEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | HierarchyTreeTableBiEntity | |
ElementNodeTypeShows whether the element is a node or an activity. | EnumElementNodeType (enum) | No | QMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity | |
IsNodeExpandedYes/No flag that appears to show whether the node is expanded in the tree view.low confidence | EnumIsNodeExpandedNoYes (enum) | No | None | |
IsRequiredYes/No flag showing whether the activity is required. | EnumsmmActivityIsRequiredNoYes (enum) | No | QMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity | |
LevelDepth of the element in the tree. | IntegerInteger | No | ProjProjectTaskEntityQMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity | |
MSPIDIdentifier of the element, apparently from an external project-planning tool.low confidence | String (50)MSPID | No | None | |
NameName of the element. | String (60)Name | No | ProjProjectTaskEntityQMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity | |
ParentElementNumberElement number of the parent element in the same hierarchy. | StringElementNumber | No | HierarchyTreeTable.ElementNumber | ProjProjectTaskEntityQMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PathText path that shows where the element sits in the tree. | String (255)HierarchyPath | No | QMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity | |
PSAElementNumberElement number used for project-style hierarchy levels.low confidence | StringElementNumber | No | None | |
PSAHierarchyLevelTypeKind of level: subproject, task, root, level or activity. | EnumPSAHierarchyLevelType (enum) | No | None | |
PSALevelDescriptionDescription of the level. | String (60)Description | No | None | |
PSALevelNameName of the level. | String (60)Name | No | None | |
PSANameLinkName text used as a link for the level.low confidence | String (60)Name | No | None | |
PSAQuotationIdID of the sales quotation linked to the element. | String (20)QuotationId | No | SalesQuotationTable.QuotationId | None |
PSARefRecIDSystem record ID of the linked sales quotation. | Int64RefRecId | No | SalesQuotationTable.RecId | None |
PSASubprojectYes/No flag showing whether the element is a subproject. | EnumNoYes (enum) | No | None | |
PSATaskYes/No flag showing whether the element is a task. | EnumNoYes (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 | HierarchyTreeTableBiEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | HierarchyTreeTableBiEntity | |
ReferenceElementNumberElement number of another tree element that this one refers to. | StringElementNumber | No | HierarchyTreeTable.ElementNumber | HierarchyTreeTableBiEntity |
RefRecIdPoints to the linked activity record (smmActivities). | Int64RefRecId | No | smmActivities.RecId | HierarchyTreeTableBiEntity |
SiblingNumberLine number that orders the element among its siblings. | RealLineNum | No | ProjProjectTaskEntityQMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | HierarchyTreeTableBiEntity | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TemplateRecIdPoints to the template hierarchy tree record that this element is based on. | Int64RefRecId | No | HierarchyTreeTable.RecId | HierarchyTreeTableBiEntity |
Indexes (5)
HierarchyElementNumIdxPrimary indexReplacement keyUnique, alternate key.
HierarchyParentElementNumIdxHierarchyId,ParentElementNumber,SiblingNumberNot unique.
RefRecIdxNot unique.
NodeTypeRefIdxNot unique.
ParentHierarchIdxParentElementNumber,HierarchyIdNot unique.
Relations (7)
Each relation joins HierarchyTreeTable to another table on the fields shown.
Hierarchy→HierarchyJoin on
HierarchyId = Hierarchy.HierarchyIdMany HierarchyTreeTable records → exactly one Hierarchy record
HierarchyTreeTable→HierarchyTreeTableJoin on
HierarchyId = HierarchyTreeTable.HierarchyId,ParentElementNumber = HierarchyTreeTable.ElementNumberMany HierarchyTreeTable records → zero or one HierarchyTreeTable record
HierarchyTreeTableRec→HierarchyTreeTableJoin on
HierarchyId = HierarchyTreeTable.HierarchyId,ReferenceElementNumber = HierarchyTreeTable.ElementNumberMany HierarchyTreeTable records → zero or one HierarchyTreeTable record
HierarchyTreeTableRef→HierarchyTreeTableJoin on
ElementNodeType = null,TemplateRecId = HierarchyTreeTable.RecIdMany HierarchyTreeTable records → zero or one HierarchyTreeTable record
smmActivities→smmActivitiesJoin on
RefRecId = smmActivities.RecIdMany HierarchyTreeTable records → zero or one smmActivities record
PSAQuotation→SalesQuotationTableJoin on
PSARefRecID = SalesQuotationTable.RecId,PSAQuotationId = SalesQuotationTable.QuotationIdMany HierarchyTreeTable records → zero or one SalesQuotationTable record
smmProcessStage→smmProcessStageJoin on
HierarchyId = smmProcessStage.HierarchyId,ElementNumber = smmProcessStage.ElementNumberZero or one HierarchyTreeTable record → exactly one smmProcessStage record
Get this data out
Tables are not exposed directly. These public entities read from HierarchyTreeTable; use one of them in Power BI, Power Platform or a data management project.
ProjProjectTaskEntity· 5 fields from this tableQMSCAPAProcessTemplateNodeEntity· 9 fields from this tableHierarchyTreeTableBiEntity· 16 fields from this tableTrvExpMobileActivitiesEntity· 1 field from this table
Need help with HierarchyTreeTable in a report, an integration or a migration? Talk to Dr Dynamics.