Table
CustHierarchyNode
Customer hierarchy nodes
Holds the nodes of a customer hierarchy. Each node is a customer or a contact party and can have a parent node. It records the role, the versions in which it was added and removed, and B2B permission details.
- Table name
CustHierarchyNode- Module
Cross-module and platform- Table group
Miscellaneous- Table type
Regular- Data per company
No- Configuration key
LedgerBasic- Primary index
CustHierarchyParentChildIdx- Replacement key
CustHierarchyNodeIdx- Key fields
CustHierarchyId, Party- Model
Foundation
Fields (18)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CustHierarchyIdID of the customer hierarchy. | String (60)CustHierarchyId | Yes | CustHierarchy.CustHierarchyId | CustomerHierarchyNodeEntity |
PartyParty of the node in the global address book. | Int64DirPartyRecId | Yes | DirPartyTable.RecId | CustomerHierarchyNodeEntity |
B2BContactPermissionGroupB2B online permission group of the contact. | Int64RetailB2BContactPermissionGroupRecId | No | RetailB2BContactPermissionGroup.RecId | None |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CustHierarchyCatalogRefRecIdCatalog linked to the node through the hierarchy catalog. | Int64CatalogRefRecId | No | CustHierarchyCatalog.RecId | None |
DisableReasonFree-text reason why the node was disabled. | String (-1)RetailB2BContactDisableReason | No | None | |
EnabledYes/No flag showing whether the node is enabled. | EnumNoYes (enum) | No | None | |
ParentNodeParent node of this node in the hierarchy. | Int64RefRecId | No | CustHierarchyNode.RecId | 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 | CustomerHierarchyNodeEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RoleRole of the node: admin or user. | EnumCustHierarchyNodeRole (enum) | No | CustomerHierarchyNodeEntity | |
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 | |
TypeNode type: customer or contact. | EnumCustHierarchyNodeType (enum) | No | CustomerHierarchyNodeEntity | |
VersionAddedHierarchy version in which the node was added. | IntegerVersion | No | CustHierarchyVersion.Version | CustomerHierarchyNodeEntity |
VersionRemovedHierarchy version in which the node was removed; no label is given.low confidence | Integer | No | CustomerHierarchyNodeEntity |
Indexes (4)
CustHierarchyParentChildIdxPrimary indexCustHierarchyId,ParentNode,PartyUnique.
CustHierarchyNodeIdxReplacement keyUnique, alternate key.
PerfIndexCustHierarchyDeleteCustHierarchyId,VersionRemovedNot unique.
CustHierarchyNodePartyNot unique.
Relations (8)
Each relation joins CustHierarchyNode to another table on the fields shown.
CustHierarchy→CustHierarchyJoin on
CustHierarchyId = CustHierarchy.CustHierarchyIdMany CustHierarchyNode records → exactly one CustHierarchy record
CustHierarchyVersionAdded→CustHierarchyVersionJoin on
CustHierarchyId = CustHierarchyVersion.CustHierarchyId,VersionAdded = CustHierarchyVersion.VersionMany CustHierarchyNode records → exactly one CustHierarchyVersion record
ParentNode→CustHierarchyNodeJoin on
ParentNode = CustHierarchyNode.RecIdMany CustHierarchyNode records → zero or one CustHierarchyNode record
NodeParty→DirPartyTableJoin on
Party = DirPartyTable.RecIdZero or one CustHierarchyNode record → exactly one DirPartyTable record
ActiveNodeView→CustHierarchyNodeActiveViewJoin on
RecId = CustHierarchyNodeActiveView.RecIdExactly one CustHierarchyNode record → exactly one CustHierarchyNodeActiveView record
CustHierarchyCatalog→CustHierarchyCatalogJoin on
CustHierarchyCatalogRefRecId = CustHierarchyCatalog.RecIdMany CustHierarchyNode records → zero or one CustHierarchyCatalog record
ContactPerson→ContactPersonJoin on
Party = ContactPerson.Party,Type = CustHierarchyNodeType::ContactMany CustHierarchyNode records → zero or one ContactPerson record
RetailB2BContactPermissionGroup→RetailB2BContactPermissionGroupJoin on
B2BContactPermissionGroup = RetailB2BContactPermissionGroup.RecIdMany CustHierarchyNode records → zero or one RetailB2BContactPermissionGroup record
Get this data out
Tables are not exposed directly. These public entities read from CustHierarchyNode; use one of them in Power BI, Power Platform or a data management project.
CustomerHierarchyNodeEntity· 7 fields from this table
Need help with CustHierarchyNode in a report, an integration or a migration? Talk to Dr Dynamics.