Table

CustHierarchy

Customer hierarchies

Holds customer hierarchies, each identified by a customer hierarchy ID. A hierarchy has a name and a purpose, which is B2B organization. It can link to an organisation party, a retail channel and an address book.

Table name
CustHierarchy
Module
Cross-module and platform
Table group
Miscellaneous
Table type
Regular
Data per company
No
Configuration key
LedgerBasic
Primary index
CustHierarchyId
Replacement key
None
Key fields
CustHierarchyId
Model
Foundation

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CustHierarchyIdUnique ID of the customer hierarchy.String (60)
CustHierarchyId
YesCustomerHierarchyEntityCustomerHierarchyCatalogEntity
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
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NameName of the hierarchy.String (60)
Name
YesCustomerHierarchyEntity
OrganizationPartyParty record of the organisation in the global address book.Int64
DirPartyRecId
YesDirPartyTable.RecIdCustomerHierarchyEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PurposePurpose of the hierarchy; the only value given is B2B organization.Enum
CustHierarchyPurpose (enum)
YesCustomerHierarchyEntity
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
SellerChannelRetail channel of the seller.String (15)
RetailChannelId
NoRetailChannelTable.RetailChannelIdCustomerHierarchyEntity
SellerChannelEmployeeAddressBookAddress book of the seller channel employees.Int64
DirAddressBookRecId
NoDirAddressBook.RecIdNone
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

Indexes (2)

Relations (3)

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

  • OrganizationParty → DirPartyTable

    Join on OrganizationParty = DirPartyTable.RecId

    Exactly one CustHierarchy record → zero or one DirPartyTable record

  • RetailChannelTable → RetailChannelTable

    Join on SellerChannel = RetailChannelTable.RetailChannelId

    Zero or one CustHierarchy record → exactly one RetailChannelTable record

  • DirAddressBook → DirAddressBook

    Join on SellerChannelEmployeeAddressBook = DirAddressBook.RecId

    Zero or one CustHierarchy record → exactly one DirAddressBook record

Get this data out

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

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

Email sales@drdynamics.co.uk