Table
RentalSwapHistory
Swap history
Transaction table that records swaps of one fleet item for another on a rental contract. Each record shows the contract, customer, swap date, reason code, and the old and new fleet items. It is keyed by contract number, creation date and time, and old fleet item.
- Table name
RentalSwapHistory- Module
Rental management- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Rental- Primary index
None- Replacement key
Contract- Key fields
ContractNumber, CreatedDateTime, OldRentalItem- Model
RentalManagement
Fields (14)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ContractNumberID of the rental contract or quotation; points to the rental document.low confidence | String (21)RentalId | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
OldRentalItemFleet item that was replaced. | Int64RentalItemRecId | No | RentalItemTable.RecId | None |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CustAccountCustomer account linked to the swap, pointing to the customer record. | String (20)CustAccount | No | CustTable.AccountNum | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
NewRentalItemFleet item that replaced the old one. | Int64RentalItemRecId | No | RentalItemTable.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
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 | |
SwapDateDate on which the fleet item was exchanged. | DateRentalSwapDate | No | None | |
SwapReasonCodeReason code for the swap, pointing to a swap reason code record. | Int64RentalSwapReasonCodeRecId | No | RentalSwapReasonCode.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 |
Indexes (1)
ContractReplacement keyContractNumber,CreatedDateTime,OldRentalItemUnique, alternate key.
Relations (5)
Each relation joins RentalSwapHistory to another table on the fields shown.
RentalDocumentTable→RentalDocumentTableJoin on
ContractNumber = RentalDocumentTable.RentalIdMany RentalSwapHistory records → zero or one RentalDocumentTable record
CustTable→CustTableJoin on
CustAccount = CustTable.AccountNumMany RentalSwapHistory records → zero or one CustTable record
OldRentalItemTable→RentalItemTableJoin on
OldRentalItem = RentalItemTable.RecIdMany RentalSwapHistory records → zero or one RentalItemTable record
NewRentalItemTable→RentalItemTableJoin on
NewRentalItem = RentalItemTable.RecIdMany RentalSwapHistory records → zero or one RentalItemTable record
SwapReasonCode→RentalSwapReasonCodeJoin on
SwapReasonCode = RentalSwapReasonCode.RecIdMany RentalSwapHistory records → zero or one RentalSwapReasonCode record
Get this data out
No public entity reads from RentalSwapHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with RentalSwapHistory in a report, an integration or a migration? Talk to Dr Dynamics.