Table

MCRCustCategory

Customer category

Holds customer categories arranged in a hierarchy. Each record has a name, a level and a parent category. It can link a customer to a category in a customer category hierarchy.

Table name
MCRCustCategory
Module
Sales and marketing
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
TAMPromotionsManagement
Primary index
None
Replacement key
NameIdx
Key fields
Name, CategoryHierarchy, Customer
Model
Foundation

Fields (20)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
NameName of the category.String (254)
EcoResCategoryName
YesNone
CategoryHierarchyThe customer category hierarchy that this category belongs to.Int64
MCRCustCategoryHierarchyId
NoMCRCustCategoryHierarchy.RecIdNone
CustomerThe customer record that this category entry refers to.Int64
CustTableRefRecId
NoCustTable.RecIdNone
CodeCommodity code stored for the category.String (20)
EcoResCategoryCommodityCode
NoNone
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
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InstanceRelationTypeNumber that identifies the type of this category record.low confidenceInt64
RelationType
NoNone
IsActiveShows whether the category is active (Yes or No).Enum
NoYesId
NoYes (enum)
NoNone
LevelDepth of the category in the hierarchy.Int64
EcoResCategoryLevel
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
NestedSetLeftLeft boundary number used to store the category tree structure.Int64
EcoResCategoryNestedSetLeft
NoNone
NestedSetRightRight boundary number used to store the category tree structure.Int64
EcoResCategoryNestedSetRight
NoNone
ParentCategoryThe category above this one in the hierarchy.Int64
MCRCustCategoryRefRecId
NoMCRCustCategory.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
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
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 (1)

Relations (3)

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

  • CustTable → CustTable

    Join on Customer = CustTable.RecId

    Many MCRCustCategory records → exactly one CustTable record

  • MCRCustCategory_Parent → MCRCustCategory

    Join on ParentCategory = MCRCustCategory.RecId

    Many MCRCustCategory records → zero or one MCRCustCategory record

  • MCRCustCategoryHierarchy → MCRCustCategoryHierarchy

    Join on CategoryHierarchy = MCRCustCategoryHierarchy.RecId

    Many MCRCustCategory records → exactly one MCRCustCategoryHierarchy record

Get this data out

No public entity reads from MCRCustCategory. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk