Table
TrvPBSMaindata
Credit card
Holds credit card transactions imported for employees. Each record has the merchant, card, amounts, category and the linked worker. It also shows whether the transaction was processed or added to an expense report. It links to currency, worker, expense category, payment method and expense report.
- Table name
TrvPBSMaindata- Module
Expense- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
TrvElectronicPayment- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (46)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AmountCurrAmount in the transaction currency. | RealAmountCur | Yes | TrvCreditCardTransactionEntity | |
AmountLocalAmount in the local currency. | RealAmountCur | No | TrvCreditCardTransactionEntity | |
BusinessNameName of the merchant. | String (30)TrvPBSBusinessName | No | TrvCreditCardTransactionEntity | |
CardNumberIdentifier of the card. | String (40)TrvWorkerPaymethodID | No | TrvCreditCardTransactionEntity | |
CardNumberNIKSUnique ID of the card. | String (16)TrvCardNIKS | No | TrvCreditCardTransactionEntity | |
CardTypeType of credit card. | String (32)TrvCreditCardType | Yes | TrvCreditCardTransactionEntity | |
CatCodeCategory code of the transaction. | StringTrvCatCodeNoEDT | No | TrvCreditCardTransactionEntity | |
CatCodesDescDescription of the category code. | String (25)TrvCatCodeDescriptionEDT | No | TrvCreditCardTransactionEntity | |
CCTransUniqueIDUnique ID of the credit card transaction. | String (32)TrvCCTransUniqueID | No | TrvCreditCardTransactionEntity | |
CostTypeExpense category of the transaction. It points to an expense category. | String (30)TrvCostTypeEDT | No | TrvCostType.CostType | TrvCreditCardTransactionEntity |
CountryCountry or region of the merchant. | String (25)TrvPbsCountry | No | TrvCreditCardTransactionEntity | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
EmpPayMethodRecIdEmployee payment method record linked to the transaction. | Int64RefRecId | No | TrvEmpPaymethod.RecId | TrvCreditCardTransactionEntity |
ExchCodeCurrency of the transaction amount. It points to a currency. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | TrvCreditCardTransactionEntity |
ExchCodeLocalLocal currency of the transaction. It points to a currency. | String (3)CurrencyCode | No | Currency.CurrencyCode | TrvCreditCardTransactionEntity |
MerchantCategoryCodeCode that classes the merchant's type of business. | StringTrvMerchantCategoryCode | No | TrvCreditCardTransactionEntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field. | Int64ModifiedTransactionId | No | None | |
NameName of the cardholder. | String (60)Name | No | TrvCreditCardTransactionEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymethodPayment method used for the transaction. It points to a payment method. | StringTrvPayMethodEDT | No | TrvPayMethod.PayMethod | TrvCreditCardTransactionEntity |
PostedWhether the transaction has been processed for payment. | EnumNoYesIdNoYes (enum) | No | TrvCreditCardTransactionEntity | |
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 | |
ReferenceKey value that identifies the transaction record. | String (196)TrvPBSKey | No | TrvCreditCardTransactionEntity | |
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 | |
TownCity of the merchant. | String (13)TrvPBSTown | No | TrvCreditCardTransactionEntity | |
TransDateDate of the transaction. | DateTrvTransDate | Yes | TrvCreditCardTransactionEntity | |
TransferredWhether the transaction has been added to an expense report. | EnumNoYesIdNoYes (enum) | No | TrvCreditCardTransactionEntity | |
TravelNoNumber of the expense report the transaction was added to. | String (20)TrvExpNumber | No | TrvCreditCardTransactionEntity | |
UserField1User-defined text field. | String (50)TrvPBSUserField | No | None | |
UserField2User-defined text field. | String (50)TrvPBSUserField | No | None | |
UserField3User-defined text field. | String (50)TrvPBSUserField | No | None | |
UserField4User-defined text field. | String (50)TrvPBSUserField | No | None | |
UserField5User-defined text field. | String (50)TrvPBSUserField | No | None | |
UserField6User-defined text field. | String (50)TrvPBSUserField | No | None | |
UserField7User-defined text field. | String (50)TrvPBSUserField | No | None | |
UserField8User-defined text field. | String (50)TrvPBSUserField | No | None | |
UserField9User-defined text field. | String (50)TrvPBSUserField | No | None | |
UserFieldLongUser-defined text field that allows longer text. | String (255)TrvPBSUserFieldLong | No | None | |
WorkerEmployee who owns the transaction. It points to a worker record. | Int64TrvHcmWorkerRecId | No | HcmWorker.RecId | TrvCreditCardTransactionEntity |
Indexes (8)
CardTypeIdxNot unique.
TrvStatCardIdxNot unique.
TrvTrvTransIdxNot unique.
TrvRefIdxNot unique.
OpenDateCardIdxNot unique.
EmplIdIdxNot unique.
CCUniqueIdIdxNot unique.
CreatedTransactionIdIdxNot unique.
Relations (7)
Each relation joins TrvPBSMaindata to another table on the fields shown.
CostType→TrvCostTypeJoin on
CostType = TrvCostType.CostTypeMany TrvPBSMaindata records → zero or one TrvCostType record
Currency→CurrencyJoin on
ExchCode = Currency.CurrencyCodeMany TrvPBSMaindata records → exactly one Currency record
EmpPaymethod→TrvEmpPaymethodJoin on
EmpPayMethodRecId = TrvEmpPaymethod.RecIdMany TrvPBSMaindata records → zero or one TrvEmpPaymethod record
LocalCurrency→CurrencyJoin on
ExchCodeLocal = Currency.CurrencyCodeMany TrvPBSMaindata records → zero or one Currency record
TrvExpTable→TrvExpTableJoin on
TravelNo = TrvExpTable.ExpNumberMany TrvPBSMaindata records → zero or one TrvExpTable record
TrvHcmWorker→HcmWorkerJoin on
Worker = HcmWorker.RecIdMany TrvPBSMaindata records → zero or one HcmWorker record
TrvPaymethod→TrvPayMethodJoin on
Paymethod = TrvPayMethod.PayMethodMany TrvPBSMaindata records → zero or one TrvPayMethod record
Get this data out
Tables are not exposed directly. These public entities read from TrvPBSMaindata; use one of them in Power BI, Power Platform or a data management project.
TrvCreditCardTransactionEntity· 24 fields from this table
Need help with TrvPBSMaindata in a report, an integration or a migration? Talk to Dr Dynamics.