Table

RetailCustTable

Customers (Retail)

Retail settings for a customer, keyed by customer account and linked to the main customer table. It holds receipt options, an image, loyalty and personalization choices, and business-to-business (B2B) user details. It can also point to a customer hierarchy node.

Table name
RetailCustTable
Module
Commerce customers
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
accountIdx
Replacement key
accountIdx
Key fields
accountNum
Model
Foundation

Fields (24)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
accountNumCustomer account that these retail settings belong to.String (20)
CustAccount
YesCustTable.AccountNumNone
B2BCustomerHierarchyNodePoints to the customer hierarchy node linked to the customer.Int64
RefRecId
NoCustHierarchyNode.RecIdNone
B2BUserIdUnique ID (GUID) of the B2B user.Guid
RetailB2BUserId
NoNone
BlockCustomerForLoyaltyEnrollmentYes/No flag that stops the customer from joining a loyalty programme.Enum
RetailBlockCustomerForLoyaltyEnrollment
NoYes (enum)
NoNone
CustAccountAsyncCustomer account value used for asynchronous processing.low confidenceString (38)
RetailAsyncCustAccount
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ImageText value that holds the customer's image attribute.String (1999)
RetailImageAttributeValueText
NoNone
IsB2BAdminYes/No flag that marks the customer as a B2B administrator.Enum
RetailCustTableIsB2BAdmin
NoYes (enum)
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
nonChargableAccountYes/No flag. The name suggests the account cannot be charged, but the metadata gives no label.low confidenceEnum
RetailNonChargableAccount
NoYes (enum)
NoNone
OptOutPersonalizationYes/No flag that shows the customer has opted out of personalization.Enum
RetailOptOutPersonalization
NoYes (enum)
NoNone
OptOutWebActivityTrackingYes/No flag that shows the customer does not want web activity tracked.Enum
RetailOptOutWebActivityTracking
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PostAsShipmentYes/No flag for posting as a shipment.Enum
RetailPostAsShipment
NoYes (enum)
NoCustCustomerV3EntityCustCustomerV2EntityCustCustomerEntityand 2 more
receiptEmailEmail address for sending receipts to the customer.String (80)
RetailReceiptEmail
NoCustCustomerV3EntityCustCustomerV2EntityCustCustomerEntityand 2 more
receiptOptionHow the customer gets receipts: standard receipt, email or both.Enum
RetailReceiptOption
RetailReceiptOptionBase (enum)
NoCustCustomerV3EntityCustCustomerV2EntityCustCustomerEntityand 2 more
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
requiresApprovalYes/No flag. The name suggests approval is required, but the label "To" is unclear.low confidenceEnum
RetailRequiresApproval
NoYes (enum)
NoNone
ReturnTaxGroup_WSales tax group used for returns.String
TaxGroup
NoTaxGroupHeading.TaxGroupCustCustomerV3EntityCustCustomerV2EntityCustCustomerEntityand 2 more
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
useOrderNumberReferenceYes/No flag for using an order number reference.Enum
RetailUseOrderNumberReference
NoYes (enum)
NoCustCustomerV3EntityCustCustomerV2EntityCustCustomerEntityand 2 more

Indexes (2)

Relations (3)

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

  • CustTable → CustTable

    Join on accountNum = CustTable.AccountNum

    Zero or one RetailCustTable record → exactly one CustTable record

  • TaxGroupHeading_ReturnTaxGroup_W → TaxGroupHeading

    Join on ReturnTaxGroup_W = TaxGroupHeading.TaxGroup

    Many RetailCustTable records → zero or one TaxGroupHeading record

  • CustHierarchyNode → CustHierarchyNode

    Join on B2BCustomerHierarchyNode = CustHierarchyNode.RecId

    Many RetailCustTable records → zero or one CustHierarchyNode record

Get this data out

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

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

Email sales@drdynamics.co.uk