Table

CPPortfolioTR

Check and promissory note portfolio codes

Lists portfolio codes for checks and promissory notes. Each record has a code, a name and a type (check or note, received or given). It can link to a bank account, a currency and a ledger or bank account type.

Table name
CPPortfolioTR
Module
Cross-module and platform
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (12)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountNumAccount number of the bank account linked to the portfolio.String (20)
AccountNum
NoBankAccountTable.AccountIDCPPortfolioEntity
BankAccountIDBank account used for collection.String
BankAccountID
NoBankAccountTable.AccountIDCPPortfolioEntity
CurrencyCodeCurrency of the portfolio.String (3)
CurrencyCode
NoCurrency.CurrencyCodeCPPortfolioEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
LedgerACTTypeAccount type of the portfolio: ledger or bank.Enum
CPLedgerAccountTypeTR (enum)
NoCPPortfolioEntity
NameName of the portfolio.String (60)
Name
NoCPPortfolioEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PortfolioCodeCode that identifies the portfolio.String (20)
CPPortfolioCodeTR
YesCPPortfolioEntity
PortfolioTypeKind of portfolio: check received, check given, promissory note received or promissory note given.Enum
CPPortfolioTypeTR (enum)
NoCPPortfolioEntity
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (4)

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

  • Bank → BankAccountTable

    Join on LedgerACTType = CPLedgerAccountTypeTR::Bank, AccountNum = BankAccountTable.AccountID

    Many CPPortfolioTR records → zero or one BankAccountTable record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many CPPortfolioTR records → zero or one Currency record

  • Ledger → MainAccount

    Join on LedgerACTType = CPLedgerAccountTypeTR::Ledger, AccountNum = MainAccount.MainAccountId

    Many CPPortfolioTR records → zero or one MainAccount record

  • BankAccountTable → BankAccountTable

    Join on BankAccountID = BankAccountTable.AccountID

    Many CPPortfolioTR records → exactly one BankAccountTable record

Get this data out

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

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

Email sales@drdynamics.co.uk