Table

RentalAttachmentRule

Attachment validity rules

Defines which fleet items may be attached to which others. Each record pairs a fleet item group code and model with an attachment group code and model. A flag shows whether the attachment is suggested for rental.

Table name
RentalAttachmentRule
Module
Rental management
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
Rental
Primary index
None
Replacement key
EntityKey
Key fields
AttachmentGroupCode, AttachmentModel, GroupCode, Model
Model
RentalManagement

Fields (11)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AttachmentGroupCodeFleet item group code of the item that can be attached.Int64
RentalItemGroupCodeRecId
YesRentalItemGroupCode.RecIdNone
AttachmentModelFleet item model of the item that can be attached.Int64
RentalItemModelRecId
YesRentalItemModel.RecIdNone
GroupCodeFleet item group code of the main item.Int64
RentalItemGroupCodeRecId
YesRentalItemGroupCode.RecIdNone
ModelFleet item model of the main item.Int64
RentalItemModelRecId
YesRentalItemModel.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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
SuggestedForRentalYes or No flag showing whether the attachment is offered when renting.Enum
RentalSuggestedForRental
NoYes (enum)
NoRentalAttachmentRuleEntity
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

Indexes (3)

Relations (4)

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

  • AttachmentGroupCode → RentalItemGroupCode

    Join on AttachmentGroupCode = RentalItemGroupCode.RecId

    Many RentalAttachmentRule records → exactly one RentalItemGroupCode record

  • AttachmentModel → RentalItemModel

    Join on AttachmentModel = RentalItemModel.RecId

    Many RentalAttachmentRule records → exactly one RentalItemModel record

  • GroupCode → RentalItemGroupCode

    Join on GroupCode = RentalItemGroupCode.RecId

    Many RentalAttachmentRule records → exactly one RentalItemGroupCode record

  • Model → RentalItemModel

    Join on Model = RentalItemModel.RecId

    Many RentalAttachmentRule records → exactly one RentalItemModel record

Get this data out

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

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

Email sales@drdynamics.co.uk