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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CustHierarchyIdUnique ID of the customer hierarchy. | String (60)CustHierarchyId | Yes | CustomerHierarchyEntityCustomerHierarchyCatalogEntity | |
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 | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NameName of the hierarchy. | String (60)Name | Yes | CustomerHierarchyEntity | |
OrganizationPartyParty record of the organisation in the global address book. | Int64DirPartyRecId | Yes | DirPartyTable.RecId | CustomerHierarchyEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PurposePurpose of the hierarchy; the only value given is B2B organization. | EnumCustHierarchyPurpose (enum) | Yes | CustomerHierarchyEntity | |
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 | |
SellerChannelRetail channel of the seller. | String (15)RetailChannelId | No | RetailChannelTable.RetailChannelId | CustomerHierarchyEntity |
SellerChannelEmployeeAddressBookAddress book of the seller channel employees. | Int64DirAddressBookRecId | No | DirAddressBook.RecId | 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 |
Indexes (2)
CustHierarchyIdPrimary indexUnique.
SellerChannelNot unique.
Relations (3)
Each relation joins CustHierarchy to another table on the fields shown.
OrganizationParty→DirPartyTableJoin on
OrganizationParty = DirPartyTable.RecIdExactly one CustHierarchy record → zero or one DirPartyTable record
RetailChannelTable→RetailChannelTableJoin on
SellerChannel = RetailChannelTable.RetailChannelIdZero or one CustHierarchy record → exactly one RetailChannelTable record
DirAddressBook→DirAddressBookJoin on
SellerChannelEmployeeAddressBook = DirAddressBook.RecIdZero 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.
CustomerHierarchyEntity· 5 fields from this tableCustomerHierarchyCatalogEntity· 1 field from this table
Need help with CustHierarchy in a report, an integration or a migration? Talk to Dr Dynamics.