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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CustGroupCode that identifies the customer group. | StringCustGroupId | Yes | CustCustomerGroupEntityDimAttributeCustGroupEntityRetailPriceGroupApplicabilityRuleEntityand 1 more | |
AccountingCurrencyExchangeRateTypeExchange rate type used for the accounting currency. | Int64RefRecId | No | ExchangeRateType.RecId | None |
BankCustPaymIdTablePayment ID type for the group, pointing to a payment ID record. | Int64BankCustPaymIdRecId | No | BankCustPaymIdTable.RecId | None |
ClearingPeriodPeriod between invoice due date and payment date, linked to a payment term. | String (100)CustClearingPeriod | No | PaymTerm.PaymTermId | CustCustomerGroupEntity |
CustAccountNumSeqPoints to a number sequence code record, likely for customer account numbers. | Int64RefRecId | No | NumberSequenceTable.RecId | CustCustomerGroupEntity |
CustWriteOffRefRecIdPoints to a customer write-off reason code record. | Int64RefRecId | No | CustWriteOffFinancialReasonsSetup.RecId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionDefault financial dimension values for the group. | Int64LedgerDimensionValueSet | No | DimensionAttributeValueSet.RecId | CustCustomerGroupEntity |
IsPublicSector_ITYes/no flag for public sector, used for Italy. | EnumIsPublicSector_ITNoYes (enum) | No | CustCustomerGroupEntity | |
NameDescription of the customer group. | String (60)Description | No | CustCustomerGroupEntityDimAttributeCustGroupEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymTermIdDefault payment terms for the group. | String (100)PaymTermId | No | PaymTerm.PaymTermId | CustCustomerGroupEntity |
PriceIncludeSalesTaxYes/no flag showing whether prices include sales tax. | EnumNoYes (enum) | No | CustCustomerGroupEntity | |
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 | |
ReportingCurrencyExchangeRateTypeExchange rate type used for the reporting currency. | Int64RefRecId | No | ExchangeRateType.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 | |
TaxGroupIdDefault sales tax group for the group. | StringCustVendTaxGroup | No | TaxGroupHeading.TaxGroup | CustCustomerGroupEntity |
TaxPeriodPaymentCode_PLVAT report date code, used for Poland. | StringPlTaxPeriodPaymentCode | No | PlTaxDueTable.TaxPeriodPaymentCode | None |
Indexes (3)
GroupIdxPrimary indexReplacement keyUnique, alternate key.
BankCustPaymIdTableIdxNot unique.
CustWriteOffFinancialReasonsSetupIdxNot unique.
Relations (10)
Each relation joins CustGroup to another table on the fields shown.
BankCustPaymIdTable→BankCustPaymIdTableJoin on
BankCustPaymIdTable = BankCustPaymIdTable.RecIdMany CustGroup records → zero or one BankCustPaymIdTable record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany CustGroup records → zero or one DimensionAttributeValueSet record
PaymTerm→PaymTermJoin on
ClearingPeriod = PaymTerm.PaymTermIdMany CustGroup records → zero or one PaymTerm record
PaymTerm_PaymTermId→PaymTermJoin on
PaymTermId = PaymTerm.PaymTermIdMany CustGroup records → zero or one PaymTerm record
PlTaxDueTable→PlTaxDueTableJoin on
TaxPeriodPaymentCode_PL = PlTaxDueTable.TaxPeriodPaymentCodeMany CustGroup records → zero or one PlTaxDueTable record
TaxGroupHeading→TaxGroupHeadingJoin on
TaxGroupId = TaxGroupHeading.TaxGroupMany CustGroup records → zero or one TaxGroupHeading record
CustWriteOffReasonRelation→CustWriteOffFinancialReasonsSetupJoin on
CustWriteOffRefRecId = CustWriteOffFinancialReasonsSetup.RecIdMany CustGroup records → zero or one CustWriteOffFinancialReasonsSetup record
CustAccountNumSeqRelation→NumberSequenceTableJoin on
CustAccountNumSeq = NumberSequenceTable.RecIdMany CustGroup records → zero or one NumberSequenceTable record
AccountingCurrencyExchangeRateType→ExchangeRateTypeJoin on
AccountingCurrencyExchangeRateType = ExchangeRateType.RecIdMany CustGroup records → zero or one ExchangeRateType record
ReportingExchangeRateType→ExchangeRateTypeJoin on
ReportingCurrencyExchangeRateType = ExchangeRateType.RecIdMany 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.
CustCustomerGroupEntity· 9 fields from this tableDimAttributeCustGroupEntity· 2 fields from this tableRetailPriceGroupApplicabilityRuleEntity· 1 field from this tableWHSCustomerGroupProductFilterEntity· 1 field from this table
Need help with CustGroup in a report, an integration or a migration? Talk to Dr Dynamics.