Data entity

RentalRateHeaderEntity

Holds the header of a rental rate, identified by rate ID. It can link to a customer account, a rate group, a rental class and a rental category, and it has a priority and three price factors. The prices themselves are held in the rental rate lines.

Entity name
RentalRateHeaderEntity
Public entity name
RentalRateHeader
OData collection
RentalRateHeaders
Category
Reference
Module
Rental management
Read-only
No
Data management enabled
Yes
Configuration key
Rental
Keys
RateId
Staging table
RentalRateHeaderStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/RentalRateHeaders
Dataverse virtual table
mserp_rentalrateheaderentity. 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

  • RentalRateHeader · root
  • ApplicationPriceFactor (table RentalPriceFactor) · OuterJoin to RentalRateHeader
  • ShiftPriceFactor (table RentalPriceFactor) · OuterJoin to RentalRateHeader
  • LocationPriceFactor (table RentalPriceFactor) · OuterJoin to RentalRateHeader

Fields (14)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
RateTypeWhether the record is a rate or a discount.Enum
RentalRateGroupType
RentalRateType
  • Rate 0
  • Discount 1
YesYesRentalRateGroup.RateGroupTypeRentalRateHeader.Type
RateIdUnique ID of the rate.String (20)
RentalRateId
YesYesRentalRateHeader.RateId
CustomerAccountNumberAccount number of the customer the rate applies to.String (20)
CustAccount
NoYescomputed
RateGroupIdID of the rental rate group assigned to the rate.String
RentalRateGroupId
NoYescomputed
RentalClassIdID of the rental class the rate is linked to.String (20)
RentalClassId
NoYescomputed
RentalCategoryIdID of the rental category the rate is linked to.String (20)
RentalCategoryId
NoYescomputed
EvaluationOrderPriority of the rate; lower values are matched first.Integer
Sorting
NoYesRentalRateHeader.Sorting
ApplicationPriceFactorIdID of the price factor.String
RentalPriceFactorId
NoYesRentalPriceFactor.PriceFactorId
ShiftPriceFactorIdID of the price factor.String
RentalPriceFactorId
NoYesRentalPriceFactor.PriceFactorId
LocationPriceFactorIdID of the price factor.String
RentalPriceFactorId
NoYesRentalPriceFactor.PriceFactorId
AccountCodeHow customers are selected: a single account, a group or all customers.Enum
PostingProfileAccountCode
TableGroupAll
  • Table 0
  • GroupId 1
  • All 2
NoNo (private)RentalRateHeader.AccountCode
AccountRelationThe customer account used when the account code points to a specific customer.String (20)
RentalRateAccountRelation
NoNo (private)CustTable.AccountNumRentalRateHeader.AccountRelation
ClassCodeHow classes are selected: a single class, a group or all.Enum
RentalClassTableGroupAll
TableGroupAll
  • Table 0
  • GroupId 1
  • All 2
NoNo (private)RentalRateHeader.ClassCode
ClassRelationThe rental class or category used when the class code points to a specific one.String (20)
RentalRateClassRelation
NoNo (private)RentalCategory.CategoryIdRentalClassTable.ClassIdRentalRateHeader.ClassRelation

Foreign keys (4)

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.

  • RateType → RentalRateGroup.RateGroupType (key of RentalRateGroup)

    Join on all of: RateType = RentalRateGroup.RateGroupType, AccountRelation = RentalRateGroup.RateGroupId

    Relation also requires AccountCode = TableGroupAll::GroupId.

    Many RentalRateHeader records → zero or one RentalRateGroup record

    RentalRateGroup details: see RentalRateGroupEntity

  • AccountRelation → CustTable.AccountNum (key of CustTable)

    Relation also requires AccountCode = null.

    Many RentalRateHeader records → zero or one CustTable record

    CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity

  • ClassRelation → RentalCategory.CategoryId (key of RentalCategory)

    Relation also requires ClassCode = TableGroupAll::GroupId.

    Many RentalRateHeader records → zero or one RentalCategory record

    RentalCategory details: see RentalCategoryEntity, RentalClassEntity

  • ClassRelation → RentalClassTable.ClassId (key of RentalClassTable)

    Relation also requires ClassCode = null.

    Many RentalRateHeader records → zero or one RentalClassTable record

    RentalClassTable details: see RentalClassEntity, RentalContractLineEntity, RentalContractLineItemEntity

Need help with RentalRateHeaderEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk