Table

HierarchyLinkTable

Hierarchy associations

Connects a hierarchy to another record, such as a project, quotation, campaign, lead or opportunity. The key is the hierarchy ID, the reference table ID and the reference record ID. It can also store the template hierarchy that was used.

Table name
HierarchyLinkTable
Module
Cross-module and platform
Table group
TransactionLine
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
HierarchyRefIdx
Replacement key
HierarchyRefIdx
Key fields
HierarchyId, RefTableId, RefRecId
Model
CaseManagement

Fields (10)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
HierarchyIdID of the hierarchy that is linked, from the Hierarchy table.String
HierarchyIdBase
YesHierarchy.HierarchyIdNone
RefTableIdID of the table that holds the linked record.Integer
HierarchyLinkRefTableId
YesNone
RefRecIdSystem record ID of the record that the hierarchy is linked to.Int64
HierarchyLinkRefRecId
YesNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
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
TemplateHierarchyIdID of the template hierarchy that the linked hierarchy is based on.String
HierarchyIdBase
NoNone

Indexes (3)

Relations (6)

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

  • Hierarchy → Hierarchy

    Join on HierarchyId = Hierarchy.HierarchyId

    Many HierarchyLinkTable records → exactly one Hierarchy record

  • ProjTable → ProjTable

    Join on RefTableId = ProjTable.TableId, RefRecId = ProjTable.RecId

    Many HierarchyLinkTable records → zero or one ProjTable record

  • SalesQuotationTable → SalesQuotationTable

    Join on RefTableId = SalesQuotationTable.TableId, RefRecId = SalesQuotationTable.RecId

    Many HierarchyLinkTable records → zero or one SalesQuotationTable record

  • smmCampaignTable → smmCampaignTable

    Join on RefTableId = smmCampaignTable.TableId, RefRecId = smmCampaignTable.RecId

    Many HierarchyLinkTable records → zero or one smmCampaignTable record

  • smmLeadTable → smmLeadTable

    Join on RefTableId = smmLeadTable.TableId, RefRecId = smmLeadTable.RecId

    Many HierarchyLinkTable records → zero or one smmLeadTable record

  • smmOpportunityTable → smmOpportunityTable

    Join on RefTableId = smmOpportunityTable.TableId, RefRecId = smmOpportunityTable.RecId

    Many HierarchyLinkTable records → zero or one smmOpportunityTable record

Get this data out

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

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

Email sales@drdynamics.co.uk