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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AttachmentGroupCodeFleet item group code of the item that can be attached. | Int64RentalItemGroupCodeRecId | Yes | RentalItemGroupCode.RecId | None |
AttachmentModelFleet item model of the item that can be attached. | Int64RentalItemModelRecId | Yes | RentalItemModel.RecId | None |
GroupCodeFleet item group code of the main item. | Int64RentalItemGroupCodeRecId | Yes | RentalItemGroupCode.RecId | None |
ModelFleet item model of the main item. | Int64RentalItemModelRecId | Yes | RentalItemModel.RecId | 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 | |
SuggestedForRentalYes or No flag showing whether the attachment is offered when renting. | EnumRentalSuggestedForRentalNoYes (enum) | No | RentalAttachmentRuleEntity | |
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 (3)
ModelIdxModel,AttachmentModel,AttachmentGroupCodeNot unique.
GroupCodeIdxAttachmentGroupCode,GroupCodeNot unique.
EntityKeyReplacement keyAttachmentGroupCode,AttachmentModel,GroupCode,ModelUnique, alternate key.
Relations (4)
Each relation joins RentalAttachmentRule to another table on the fields shown.
AttachmentGroupCode→RentalItemGroupCodeJoin on
AttachmentGroupCode = RentalItemGroupCode.RecIdMany RentalAttachmentRule records → exactly one RentalItemGroupCode record
AttachmentModel→RentalItemModelJoin on
AttachmentModel = RentalItemModel.RecIdMany RentalAttachmentRule records → exactly one RentalItemModel record
GroupCode→RentalItemGroupCodeJoin on
GroupCode = RentalItemGroupCode.RecIdMany RentalAttachmentRule records → exactly one RentalItemGroupCode record
Model→RentalItemModelJoin on
Model = RentalItemModel.RecIdMany 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.
RentalAttachmentRuleEntity· 1 field from this table
Need help with RentalAttachmentRule in a report, an integration or a migration? Talk to Dr Dynamics.