Table
RentalAttachmentTrans
Attachment transactions
Transactions for attaching and detaching attachments on fleet items. The key is the attachment ID plus the date and time. Each row can name the item it was attached to and the item it was detached from.
- Table name
RentalAttachmentTrans- Module
Rental management- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Rental- Primary index
None- Replacement key
AttachmentTransIdx- Key fields
AttachmentItemId, TransDateTime- Model
RentalManagement
Fields (11)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AttachmentItemIdFleet item ID of the attachment. | String (20)RentalAttachmentItemId | No | RentalItemTable.RentalItemId | None |
TransDateTimeDate and time of the transaction. | UtcDateTimeRentalAttachmentTransDate | Yes | None | |
AttachedFromItemPrime fleet item that the attachment was detached from. | String (20)RentalAttachedFromItem | No | RentalItemTable.RentalItemId | None |
AttachedToItemPrime fleet item that the attachment is attached to. | String (20)RentalAttachedToItem | No | RentalItemTable.RentalItemId | None |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | 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 | |
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 (2)
AttachmentItemIdxNot unique.
AttachmentTransIdxReplacement keyAttachmentItemId,TransDateTimeUnique, alternate key.
Relations (3)
Each relation joins RentalAttachmentTrans to another table on the fields shown.
AttachedFrom→RentalItemTableJoin on
AttachedFromItem = RentalItemTable.RentalItemIdMany RentalAttachmentTrans records → zero or one RentalItemTable record
AttachedTo→RentalItemTableJoin on
AttachedToItem = RentalItemTable.RentalItemIdMany RentalAttachmentTrans records → zero or one RentalItemTable record
RentalItem→RentalItemTableJoin on
AttachmentItemId = RentalItemTable.RentalItemIdMany RentalAttachmentTrans records → zero or one RentalItemTable record
Get this data out
No public entity reads from RentalAttachmentTrans. Its data is only reachable through the application, a custom entity or a database export.
Need help with RentalAttachmentTrans in a report, an integration or a migration? Talk to Dr Dynamics.