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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ElementNumberNumber that identifies the element within its hierarchy.String
ElementNumber
YessmmProcessStage.ElementNumberProjProjectTaskEntityQMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity
HierarchyIdID of the hierarchy that the element belongs to.String
HierarchyIdBase
YesHierarchy.HierarchyIdQMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntityTrvExpMobileActivitiesEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoHierarchyTreeTableBiEntity
ElementNodeTypeShows whether the element is a node or an activity.Enum
ElementNodeType (enum)
NoQMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity
IsNodeExpandedYes/No flag that appears to show whether the node is expanded in the tree view.low confidenceEnum
IsNodeExpanded
NoYes (enum)
NoNone
IsRequiredYes/No flag showing whether the activity is required.Enum
smmActivityIsRequired
NoYes (enum)
NoQMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity
LevelDepth of the element in the tree.Integer
Integer
NoProjProjectTaskEntityQMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity
MSPIDIdentifier of the element, apparently from an external project-planning tool.low confidenceString (50)
MSPID
NoNone
NameName of the element.String (60)
Name
NoProjProjectTaskEntityQMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity
ParentElementNumberElement number of the parent element in the same hierarchy.String
ElementNumber
NoHierarchyTreeTable.ElementNumberProjProjectTaskEntityQMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PathText path that shows where the element sits in the tree.String (255)
HierarchyPath
NoQMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity
PSAElementNumberElement number used for project-style hierarchy levels.low confidenceString
ElementNumber
NoNone
PSAHierarchyLevelTypeKind of level: subproject, task, root, level or activity.Enum
PSAHierarchyLevelType (enum)
NoNone
PSALevelDescriptionDescription of the level.String (60)
Description
NoNone
PSALevelNameName of the level.String (60)
Name
NoNone
PSANameLinkName text used as a link for the level.low confidenceString (60)
Name
NoNone
PSAQuotationIdID of the sales quotation linked to the element.String (20)
QuotationId
NoSalesQuotationTable.QuotationIdNone
PSARefRecIDSystem record ID of the linked sales quotation.Int64
RefRecId
NoSalesQuotationTable.RecIdNone
PSASubprojectYes/No flag showing whether the element is a subproject.Enum
NoYes (enum)
NoNone
PSATaskYes/No flag showing whether the element is a task.Enum
NoYes (enum)
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
NoHierarchyTreeTableBiEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoHierarchyTreeTableBiEntity
ReferenceElementNumberElement number of another tree element that this one refers to.String
ElementNumber
NoHierarchyTreeTable.ElementNumberHierarchyTreeTableBiEntity
RefRecIdPoints to the linked activity record (smmActivities).Int64
RefRecId
NosmmActivities.RecIdHierarchyTreeTableBiEntity
SiblingNumberLine number that orders the element among its siblings.Real
LineNum
NoProjProjectTaskEntityQMSCAPAProcessTemplateNodeEntityHierarchyTreeTableBiEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoHierarchyTreeTableBiEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TemplateRecIdPoints to the template hierarchy tree record that this element is based on.Int64
RefRecId
NoHierarchyTreeTable.RecIdHierarchyTreeTableBiEntity

Indexes (5)

Relations (7)

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

  • Hierarchy → Hierarchy

    Join on HierarchyId = Hierarchy.HierarchyId

    Many HierarchyTreeTable records → exactly one Hierarchy record

  • HierarchyTreeTable → HierarchyTreeTable

    Join on HierarchyId = HierarchyTreeTable.HierarchyId, ParentElementNumber = HierarchyTreeTable.ElementNumber

    Many HierarchyTreeTable records → zero or one HierarchyTreeTable record

  • HierarchyTreeTableRec → HierarchyTreeTable

    Join on HierarchyId = HierarchyTreeTable.HierarchyId, ReferenceElementNumber = HierarchyTreeTable.ElementNumber

    Many HierarchyTreeTable records → zero or one HierarchyTreeTable record

  • HierarchyTreeTableRef → HierarchyTreeTable

    Join on ElementNodeType = null, TemplateRecId = HierarchyTreeTable.RecId

    Many HierarchyTreeTable records → zero or one HierarchyTreeTable record

  • smmActivities → smmActivities

    Join on RefRecId = smmActivities.RecId

    Many HierarchyTreeTable records → zero or one smmActivities record

  • PSAQuotation → SalesQuotationTable

    Join on PSARefRecID = SalesQuotationTable.RecId, PSAQuotationId = SalesQuotationTable.QuotationId

    Many HierarchyTreeTable records → zero or one SalesQuotationTable record

  • smmProcessStage → smmProcessStage

    Join on HierarchyId = smmProcessStage.HierarchyId, ElementNumber = smmProcessStage.ElementNumber

    Zero 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.

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

Email sales@drdynamics.co.uk