Data entity
RentalTemplateLineEntity
Lines of a rental template, such as fees and charges. Each line has an amount, percentage, calculation base and method, fee type, miscellaneous charge type and a validity range. It can link to a revenue category and default dimensions. The key is template ID and template line ID.
- Entity name
RentalTemplateLineEntity- Public entity name
RentalTemplateLine- OData collection
RentalTemplateLines- Category
Reference- Module
Rental management- Read-only
No- Data management enabled
Yes- Configuration key
Rental- Keys
TemplateId, TemplateLineId- Staging table
RentalTemplateLineStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RentalTemplateLines- Dataverse virtual table
mserp_rentaltemplatelineentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
RentalTemplateLine· rootRentalTemplate· InnerJoin toRentalTemplateLine· read-onlyRevenueCat(tableRentalRevenueCategory) · InnerJoin toRentalTemplateLine· read-onlyDimensionDAVS(tableDimensionSetEntity) · OuterJoin toRentalTemplateLine· read-only
Fields (25)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
TemplateIdUnique ID of the rental template. | StringRentalTemplateId | Yes | Yes | RentalTemplate.TemplateId | |
TemplateLineIdID of the template line. | StringRentalTemplateLineId | Yes | Yes | RentalTemplateLine.TemplateLineId | |
TemplateLineNameShort name of the template line. | String (30)RentalTemplateLineName | No | Yes | RentalTemplateLine.TemplateLineName | |
AmountFixed amount of the line. | RealAmount | No | Yes | RentalTemplateLine.Amount | |
CalculationBaseWhat the charge is based on: rental fee, asking price or rental rate. | Enum
| No | Yes | RentalTemplateLine.CalculationBase | |
CalculationMethodWhether the line price is a normal unit amount or a percentage. | EnumRentalDocumentLineCalculationMethod
| No | Yes | RentalTemplateLine.CalculationMethod | |
IsForFinalInvoiceOnlyYes/No flag that applies the charge only on the final invoice schedule. | EnumRentalFinalInvoice
| No | Yes | RentalTemplateLine.FinalInvoice | |
MaximumAmountUpper limit of the amount for a percent-type line. | RealRentalMaxAmount | No | Yes | RentalTemplateLine.MaxAmount | |
IsDamageRelatedChargeYes/No flag marking the charge as one used to record damage. | EnumRentalMiscChargeDamage
| No | Yes | RentalTemplateLine.MiscChargeDamage | |
MiscChargeFeeTypeFee type of the miscellaneous charge, such as transport, fuel or repair. | Enum
| No | Yes | RentalTemplateLine.MiscChargeFeeType | |
MiscChargeTypeType of miscellaneous charge: header or line level, and recurring, once or supplemental. | Enum
| No | Yes | RentalTemplateLine.MiscChargeType | |
IsExcludedFromFeeCalculationYes/No flag that leaves the line out of fee calculation. | EnumNoYesId
| No | Yes | RentalTemplateLine.NoFee | |
IsExcludedFromNegativeInvoiceFeeYes/No flag that stops an invoice line being created when the main line gives a negative schedule line. | EnumNoYesId
| No | Yes | RentalTemplateLine.NoFeeOnNegative | |
PercentagePercentage used when the line is calculated as a percent. | RealPercent | No | Yes | RentalTemplateLine.Percent | |
RelatedToWhether the line relates to the contract header or a contract line. | Enum
| No | Yes | RentalTemplateLine.RelatedTo | |
WillAddDamageChargeToContractYes/No flag that adds the charge to the contract automatically as a damage charge. | EnumNoYesId
| No | Yes | RentalTemplateLine.AddDamageChargeToContract | |
IsServiceMeterUnitBasedChargeYes/No flag showing that the charge depends on service meter unit (SMU) use. | EnumRentalSMUBasedCharge
| No | Yes | RentalTemplateLine.SMUBasedCharge | |
ServiceMeterUnitMinimumHoursMinimum hours charged whatever the SMU use. | RealRentalSMUMinHours | No | Yes | RentalTemplateLine.SMUMinHours | |
RevenueCategoryIdUnique ID of the revenue category. | StringRentalRevenueCategoryId | Yes | Yes | RentalRevenueCategory.RevenueCategoryId | |
RevenueCategoryValidFromFirst date the category is valid. | DateRentalValidFrom | Yes | Yes | RentalRevenueCategory.ValidFrom | |
RevenueCategoryValidToLast date the category is valid. | DateRentalValidTo | Yes | Yes | RentalRevenueCategory.ValidTo | |
DimensionDisplayValueDefault dimensions shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
DimensionFinancial dimension set linked to the line. | Int64LedgerDimensionValueSet | No | No (private) | DimensionAttributeValueSet.RecId | RentalTemplateLine.Dimension |
RevenueCategoryRecIdRevenue category for the line. | Int64RentalRevenueCategoryRecId | No | No (private) | RentalRevenueCategory.RecId | RentalTemplateLine.RevenueCategory |
TemplateRecIdRental template that the line belongs to. | Int64RentalTemplateRecId | No | No (private) | RentalTemplate.RecId | RentalTemplateLine.Template |
Foreign keys (3)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
Dimension→DimensionAttributeValueSet.RecId(key of DimensionAttributeValueSet)Many RentalTemplateLine records → zero or one DimensionAttributeValueSet record
DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity
RevenueCategoryRecId→RentalRevenueCategory.RecId(key of RentalRevenueCategory)Many RentalTemplateLine records → exactly one RentalRevenueCategory record
RentalRevenueCategory details: see RentalTemplateEntity
TemplateRecId→RentalTemplate.RecId(key of RentalTemplate)Many RentalTemplateLine records → exactly one RentalTemplate record
RentalTemplate details: see RentalTemplateEntity, RentalContractHeaderEntity, RentalMiscChargeExemptionEntity
Need help with RentalTemplateLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.