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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
HierarchyIdID of the hierarchy that is linked, from the Hierarchy table. | StringHierarchyIdBase | Yes | Hierarchy.HierarchyId | None |
RefTableIdID of the table that holds the linked record. | IntegerHierarchyLinkRefTableId | Yes | None | |
RefRecIdSystem record ID of the record that the hierarchy is linked to. | Int64HierarchyLinkRefRecId | Yes | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
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 | |
TemplateHierarchyIdID of the template hierarchy that the linked hierarchy is based on. | StringHierarchyIdBase | No | None |
Indexes (3)
HierarchyRefIdxPrimary indexReplacement keyHierarchyId,RefTableId,RefRecIdUnique, alternate key.
RefRecIdxNot unique.
TemplateIdIdxNot unique.
Relations (6)
Each relation joins HierarchyLinkTable to another table on the fields shown.
Hierarchy→HierarchyJoin on
HierarchyId = Hierarchy.HierarchyIdMany HierarchyLinkTable records → exactly one Hierarchy record
ProjTable→ProjTableJoin on
RefTableId = ProjTable.TableId,RefRecId = ProjTable.RecIdMany HierarchyLinkTable records → zero or one ProjTable record
SalesQuotationTable→SalesQuotationTableJoin on
RefTableId = SalesQuotationTable.TableId,RefRecId = SalesQuotationTable.RecIdMany HierarchyLinkTable records → zero or one SalesQuotationTable record
smmCampaignTable→smmCampaignTableJoin on
RefTableId = smmCampaignTable.TableId,RefRecId = smmCampaignTable.RecIdMany HierarchyLinkTable records → zero or one smmCampaignTable record
smmLeadTable→smmLeadTableJoin on
RefTableId = smmLeadTable.TableId,RefRecId = smmLeadTable.RecIdMany HierarchyLinkTable records → zero or one smmLeadTable record
smmOpportunityTable→smmOpportunityTableJoin on
RefTableId = smmOpportunityTable.TableId,RefRecId = smmOpportunityTable.RecIdMany 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.
ProjQuotationWbsEntity· 0 fields from this table
Need help with HierarchyLinkTable in a report, an integration or a migration? Talk to Dr Dynamics.