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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CustHierarchyIdID of the customer hierarchy.String (60)
CustHierarchyId
YesCustHierarchy.CustHierarchyIdCustomerHierarchyNodeEntity
PartyParty of the node in the global address book.Int64
DirPartyRecId
YesDirPartyTable.RecIdCustomerHierarchyNodeEntity
B2BContactPermissionGroupB2B online permission group of the contact.Int64
RetailB2BContactPermissionGroupRecId
NoRetailB2BContactPermissionGroup.RecIdNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CustHierarchyCatalogRefRecIdCatalog linked to the node through the hierarchy catalog.Int64
CatalogRefRecId
NoCustHierarchyCatalog.RecIdNone
DisableReasonFree-text reason why the node was disabled.String (-1)
RetailB2BContactDisableReason
NoNone
EnabledYes/No flag showing whether the node is enabled.Enum
NoYes (enum)
NoNone
ParentNodeParent node of this node in the hierarchy.Int64
RefRecId
NoCustHierarchyNode.RecIdNone
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
NoCustomerHierarchyNodeEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RoleRole of the node: admin or user.Enum
CustHierarchyNodeRole (enum)
NoCustomerHierarchyNodeEntity
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
TypeNode type: customer or contact.Enum
CustHierarchyNodeType (enum)
NoCustomerHierarchyNodeEntity
VersionAddedHierarchy version in which the node was added.Integer
Version
NoCustHierarchyVersion.VersionCustomerHierarchyNodeEntity
VersionRemovedHierarchy version in which the node was removed; no label is given.low confidenceIntegerNoCustomerHierarchyNodeEntity

Indexes (4)

Relations (8)

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

  • CustHierarchy → CustHierarchy

    Join on CustHierarchyId = CustHierarchy.CustHierarchyId

    Many CustHierarchyNode records → exactly one CustHierarchy record

  • CustHierarchyVersionAdded → CustHierarchyVersion

    Join on CustHierarchyId = CustHierarchyVersion.CustHierarchyId, VersionAdded = CustHierarchyVersion.Version

    Many CustHierarchyNode records → exactly one CustHierarchyVersion record

  • ParentNode → CustHierarchyNode

    Join on ParentNode = CustHierarchyNode.RecId

    Many CustHierarchyNode records → zero or one CustHierarchyNode record

  • NodeParty → DirPartyTable

    Join on Party = DirPartyTable.RecId

    Zero or one CustHierarchyNode record → exactly one DirPartyTable record

  • ActiveNodeView → CustHierarchyNodeActiveView

    Join on RecId = CustHierarchyNodeActiveView.RecId

    Exactly one CustHierarchyNode record → exactly one CustHierarchyNodeActiveView record

  • CustHierarchyCatalog → CustHierarchyCatalog

    Join on CustHierarchyCatalogRefRecId = CustHierarchyCatalog.RecId

    Many CustHierarchyNode records → zero or one CustHierarchyCatalog record

  • ContactPerson → ContactPerson

    Join on Party = ContactPerson.Party, Type = CustHierarchyNodeType::Contact

    Many CustHierarchyNode records → zero or one ContactPerson record

  • RetailB2BContactPermissionGroup → RetailB2BContactPermissionGroup

    Join on B2BContactPermissionGroup = RetailB2BContactPermissionGroup.RecId

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

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

Email sales@drdynamics.co.uk