Table

CustBankAccount

Customer bank accounts

Holds bank accounts that belong to customers. Each record is identified by the customer account together with a bank account ID. It stores bank details such as account number, IBAN, SWIFT code and contact information. It also has country-specific fields for Russia, Lithuania, Mexico and Switzerland.

Table name
CustBankAccount
Module
Accounts receivable
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
LedgerBasic
Primary index
AccountIdx
Replacement key
AccountIdx
Key fields
CustAccount, AccountID
Model
Foundation

Fields (53)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CustAccountCustomer who owns this bank account. Points to the customer record.String (20)
CustAccount
YesCustTable.AccountNumCustomerBankAccountEntityCustBankAccountCDREntity
AccountIDIdentifier of the bank account for this customer.String
CustBankAccountId
YesCustomerBankAccountEntityCustBankAccountCDREntity
AccountNumThe bank account number.String (48)
BankAccount
NoCustomerBankAccountEntityCustBankAccountCDREntity
BankAccountTypeType of bank account, such as checking, savings or payroll.Enum
BankAccountType (enum)
NoCustomerBankAccountEntityCustBankAccountCDREntity
BankCINOne-character CIN code linked to the bank account.String (1)
BankCIN
NoCustomerBankAccountEntityCustBankAccountCDREntity
BankCodeTypeType of routing number used for the bank.Enum
BankCodeType (enum)
NoCustomerBankAccountEntityCustBankAccountCDREntity
BankConstantSymbolPoints to a constant symbol record for the bank account.Int64
RefRecId
NoBankConstantSymbol.RecIdCustBankAccountCDREntity
BankContractAccountESR contract account number for the bank account.String (11)
GiroContractAccount
NoCustomerBankAccountEntityCustomerBankAccountEntityCustBankAccountCDREntity
BankGroupIdBank group that the bank belongs to.String
BankGroupId
NoBankGroup.BankGroupIdCustomerBankAccountEntityCustBankAccountCDREntity
BankIBANInternational Bank Account Number (IBAN) of the account.String (48)
BankIBAN
NoCustomerBankAccountEntityCustBankAccountCDREntityBusinessDocumentSalesInvoiceBaseEntity
BankSortCode_RUBank sort code, used for Russia.String
BankSortCode
NoCustBankAccountCDREntity
CellularPhoneMobile phone number of the bank contact.String (20)
PhoneMobile
NoCustomerBankAccountEntityCustBankAccountCDREntity
ContactPersonName of the contact person at the bank.String (60)
PersonName
NoCustomerBankAccountEntityCustBankAccountCDREntity
CorrAccount_WCorrespondent bank account number.String (48)
BankCorrAccount_W
NoCustBankAccountCDREntity
CorrespondentBankAccount_LTAccount number at the correspondent bank, used for Lithuania.String (48)
LtCorrespondentBankAccount
NoCustBankAccountCDREntity
CorrespondentBankAddress_LTAddress of the correspondent bank, used for Lithuania.String (250)
LtCorrespondentBankAddress
NoCustBankAccountCDREntity
CorrespondentBankName_LTName of the correspondent bank, used for Lithuania.String (60)
LtCorrespondentBankName
NoCustBankAccountCDREntity
CorrespondentBankSWIFT_LTSWIFT code of the correspondent bank, used for Lithuania.String (20)
LtCorrespondentBankSWIFT
NoCustBankAccountCDREntity
CurrencyCodeCurrency of the bank account. Points to a currency record.String (3)
CurrencyCode
NoCurrency.CurrencyCodeCustomerBankAccountEntityCustBankAccountCDREntity
CustPaymentTextCodeText code used for customer payments on this account.String
CustPaymTextCode
NoCustomerBankAccountEntityCustBankAccountCDREntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoCustBankAccountCDREntity
EmailEmail address of the bank contact.String (80)
Email
NoCustomerBankAccountEntityCustBankAccountCDREntity
ExchRateCross exchange rate stored for the account.Real
CrossExchRate
NoCustBankAccountCDREntity
ExchRateRefReference for the exchange rate.String (11)
ExchRateRef
NoCustomerBankAccountEntityCustBankAccountCDREntity
ForeignAccount_RUForeign bank account number, used for Russia.String (48)
BankAccount
NoCustBankAccountCDREntity
ForeignBank_RUBank group of the foreign bank, used for Russia.String
BankGroupId
NoBankGroup.BankGroupIdCustBankAccountCDREntity
ForeignSWIFT_RUSWIFT code of the foreign bank, used for Russia.String (20)
SWIFTNo
NoCustBankAccountCDREntity
IntermediateBankAccount_LTAccount number at the intermediary bank, used for Lithuania.String (48)
LtIntermediateBankAccount
NoCustBankAccountCDREntity
IntermediateBankAddress_LTAddress of the intermediary bank, used for Lithuania.String (250)
LtIntermediateBankAddress
NoCustBankAccountCDREntity
IntermediateBankName_LTName of the intermediary bank, used for Lithuania.String (60)
LtIntermediateBankName
NoCustBankAccountCDREntity
IntermediateBankSWIFT_LTSWIFT code of the intermediary bank, used for Lithuania.String (20)
LtIntermediateBankSWIFT
NoCustBankAccountCDREntity
LocationAddress location linked to this bank account. Points to a location record.Int64
LogisticsLocationRecId
NoLogisticsLocation.RecIdCustomerBankAccountEntityCustBankAccountCDREntity
LvDefaultBankYes/no flag that marks the default bank account.Enum
LVDefaultBank
NoYes (enum)
NoCustBankAccountCDREntity
MsgToBankFree-text message addressed to the bank.String (255)
BankMsgToBank
NoCustomerBankAccountEntityCustBankAccountCDREntity
NameName of the bank account.String (60)
Name
NoCustomerBankAccountEntityCustBankAccountCDREntityBusinessDocumentSalesInvoiceBaseEntity
PagerPager number of the bank contact.String (20)
Pager
NoCustomerBankAccountEntityCustBankAccountCDREntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PayeeNameLegal name of the payee that the bank holds for the IBAN.String (60)
PayeeName
NoCustomerBankAccountEntityCustBankAccountCDREntity
PhoneTelephone number of the bank contact.String (20)
Phone
NoCustomerBankAccountEntityCustBankAccountCDREntity
PhoneLocalTelephone extension of the bank contact.String
PhoneLocal
NoCustomerBankAccountEntityCustBankAccountCDREntity
QRIBAN_CHQR-IBAN of the account, used for Switzerland.String (48)
QRIBAN_CH
NoCustomerBankAccountEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoCustBankAccountCDREntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RegistrationNumRouting number of the bank.String (12)
BankRegNum
NoCustomerBankAccountEntityCustBankAccountCDREntity
Rfc_MXMexican RFC tax registration number linked to the bank, used for Mexico.String (13)
Rfc_MX
NoCustBankAccountCDREntity
SMSNumber or address used for text messages to the bank contact.String (80)
SMS
NoCustomerBankAccountEntityCustBankAccountCDREntity
SpecificSymbolSpecific symbol code stored with the bank account.String (20)
SpecificSymbol
NoCustomerBankAccountEntityCustBankAccountCDREntity
SWIFTNoSWIFT code of the bank.String (20)
SWIFTNo
NoCustomerBankAccountEntityCustBankAccountCDREntityBusinessDocumentSalesInvoiceBaseEntity
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
TeleFaxFax number of the bank contact.String (20)
TeleFax
NoCustomerBankAccountEntityCustBankAccountCDREntity
TelexTelex number of the bank contact.String (20)
Telex
NoCustomerBankAccountEntityCustBankAccountCDREntity
URLWebsite address of the bank.String (255)
URL
NoCustomerBankAccountEntityCustBankAccountCDREntity

Indexes (2)

Relations (7)

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

  • BankConstantSymbol → BankConstantSymbol

    Join on BankConstantSymbol = BankConstantSymbol.RecId

    Zero or one CustBankAccount record → exactly one BankConstantSymbol record

  • BankGroup → BankGroup

    Join on BankGroupId = BankGroup.BankGroupId

    Many CustBankAccount records → zero or one BankGroup record

  • BankGroupForeign_RU → BankGroup

    Join on BankGroup.BankType_RU = BankType_RU::Foreign, ForeignBank_RU = BankGroup.BankGroupId

    Many CustBankAccount records → zero or one BankGroup record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many CustBankAccount records → zero or one Currency record

  • CustBankAccount → CustBankAccount

    Join on AccountID = CustBankAccount.AccountID, CustAccount = CustBankAccount.CustAccount

    Cardinality not set in the metadata.

  • CustTable → CustTable

    Join on CustAccount = CustTable.AccountNum

    Many CustBankAccount records → exactly one CustTable record

  • Location_FK → LogisticsLocation

    Join on Location = LogisticsLocation.RecId

    Many CustBankAccount records → zero or one LogisticsLocation record

Get this data out

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

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

Email sales@drdynamics.co.uk