Table

CustGroup

Customer groups

Customer groups used to classify customers and give them shared defaults. A group can hold default payment terms, tax group, dimensions, payment ID type, exchange rate types and number sequence. The customer group code is the key. It also has fields used for Poland and Italy.

Table name
CustGroup
Module
Accounts receivable
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
LedgerBasic
Primary index
GroupIdx
Replacement key
GroupIdx
Key fields
CustGroup
Model
Foundation

Fields (20)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CustGroupCode that identifies the customer group.String
CustGroupId
YesCustCustomerGroupEntityDimAttributeCustGroupEntityRetailPriceGroupApplicabilityRuleEntityand 1 more
AccountingCurrencyExchangeRateTypeExchange rate type used for the accounting currency.Int64
RefRecId
NoExchangeRateType.RecIdNone
BankCustPaymIdTablePayment ID type for the group, pointing to a payment ID record.Int64
BankCustPaymIdRecId
NoBankCustPaymIdTable.RecIdNone
ClearingPeriodPeriod between invoice due date and payment date, linked to a payment term.String (100)
CustClearingPeriod
NoPaymTerm.PaymTermIdCustCustomerGroupEntity
CustAccountNumSeqPoints to a number sequence code record, likely for customer account numbers.Int64
RefRecId
NoNumberSequenceTable.RecIdCustCustomerGroupEntity
CustWriteOffRefRecIdPoints to a customer write-off reason code record.Int64
RefRecId
NoCustWriteOffFinancialReasonsSetup.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionDefault financial dimension values for the group.Int64
LedgerDimensionValueSet
NoDimensionAttributeValueSet.RecIdCustCustomerGroupEntity
IsPublicSector_ITYes/no flag for public sector, used for Italy.Enum
IsPublicSector_IT
NoYes (enum)
NoCustCustomerGroupEntity
NameDescription of the customer group.String (60)
Description
NoCustCustomerGroupEntityDimAttributeCustGroupEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymTermIdDefault payment terms for the group.String (100)
PaymTermId
NoPaymTerm.PaymTermIdCustCustomerGroupEntity
PriceIncludeSalesTaxYes/no flag showing whether prices include sales tax.Enum
NoYes (enum)
NoCustCustomerGroupEntity
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
ReportingCurrencyExchangeRateTypeExchange rate type used for the reporting currency.Int64
RefRecId
NoExchangeRateType.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
TaxGroupIdDefault sales tax group for the group.String
CustVendTaxGroup
NoTaxGroupHeading.TaxGroupCustCustomerGroupEntity
TaxPeriodPaymentCode_PLVAT report date code, used for Poland.String
PlTaxPeriodPaymentCode
NoPlTaxDueTable.TaxPeriodPaymentCodeNone

Indexes (3)

Relations (10)

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

  • BankCustPaymIdTable → BankCustPaymIdTable

    Join on BankCustPaymIdTable = BankCustPaymIdTable.RecId

    Many CustGroup records → zero or one BankCustPaymIdTable record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many CustGroup records → zero or one DimensionAttributeValueSet record

  • PaymTerm → PaymTerm

    Join on ClearingPeriod = PaymTerm.PaymTermId

    Many CustGroup records → zero or one PaymTerm record

  • PaymTerm_PaymTermId → PaymTerm

    Join on PaymTermId = PaymTerm.PaymTermId

    Many CustGroup records → zero or one PaymTerm record

  • PlTaxDueTable → PlTaxDueTable

    Join on TaxPeriodPaymentCode_PL = PlTaxDueTable.TaxPeriodPaymentCode

    Many CustGroup records → zero or one PlTaxDueTable record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroupId = TaxGroupHeading.TaxGroup

    Many CustGroup records → zero or one TaxGroupHeading record

  • CustWriteOffReasonRelation → CustWriteOffFinancialReasonsSetup

    Join on CustWriteOffRefRecId = CustWriteOffFinancialReasonsSetup.RecId

    Many CustGroup records → zero or one CustWriteOffFinancialReasonsSetup record

  • CustAccountNumSeqRelation → NumberSequenceTable

    Join on CustAccountNumSeq = NumberSequenceTable.RecId

    Many CustGroup records → zero or one NumberSequenceTable record

  • AccountingCurrencyExchangeRateType → ExchangeRateType

    Join on AccountingCurrencyExchangeRateType = ExchangeRateType.RecId

    Many CustGroup records → zero or one ExchangeRateType record

  • ReportingExchangeRateType → ExchangeRateType

    Join on ReportingCurrencyExchangeRateType = ExchangeRateType.RecId

    Many CustGroup records → zero or one ExchangeRateType record

Get this data out

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

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

Email sales@drdynamics.co.uk