Data entity

RentalContractHeaderEntity

Rental contract headers, one per rental ID. It holds contract status, renter and invoice customer, job site, fleet locations and currency. It also holds the rental template, start and end dates, invoicing terms, payment terms, discount and rental purchase option settings.

Entity name
RentalContractHeaderEntity
Public entity name
RentalContractHeader
OData collection
RentalContractHeaders
Category
Document
Module
Rental management
Read-only
No
Data management enabled
Yes
Configuration key
Rental
Keys
RentalContractId
Staging table
RentalContractHeaderStaging

Use it in Power BI and Power Platform

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

  • RentalDocumentTable · root
  • RentalJobSite · OuterJoin to RentalDocumentTable · read-only
  • RentalLocation · OuterJoin to RentalDocumentTable · read-only
  • RentalLocation_Pickup (table RentalLocation) · OuterJoin to RentalDocumentTable · read-only
  • DimensionDAVS (table DimensionSetEntity) · OuterJoin to RentalDocumentTable · read-only
  • LogisticsPostalAddressBaseEntity · OuterJoin to RentalDocumentTable · read-only
  • RentalTemplate · InnerJoin to RentalDocumentTable · read-only

Fields (44)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
RentalContractIdUnique ID of the rental contract or quotation.String (21)
RentalId
YesYesRentalDocumentTable.RentalId
ContractStatusStatus of the contract, such as created, active, on hold, closed or cancelled.Enum
RentalContractStatus
  • Created 0
  • Active 1
  • OnHold 2
  • Closed 3
  • Canceled 4
  • Converted 5
  • Rejected 6
  • Printed 7
  • Approved 8
  • Reopened 9
NoYesRentalDocumentTable.ContractStatus
RentingCustomerAccountNumberCustomer account of the renter.String (20)
RentalRenterAccount
NoYesCustTable.AccountNumRentalDocumentTable.RenterAccount
InvoiceCustomerAccountNumberOther customer to send the invoice to, if any.String (20)
RentalInvoiceAccount
NoYesCustTable.AccountNumRentalDocumentTable.InvoiceAccount
JobSiteIdUnique ID of the job site.String (20)
RentalJobSiteId
NoYesRentalJobSite.JobSiteId
BranchRentalLocationIdFleet location of the document.String (100)
RentalLocationId
NoYesRentalLocation.LocationIdRentalDocumentTable.RentalLocationId
PickupRentalLocationIdFleet location where items are picked up.String (100)
RentalPickupRentalLocationId
NoYesRentalLocation.LocationIdRentalDocumentTable.PickupRentalLocationId
SubjectShort subject text for the contract or quotation.String (50)
RentalSubject
NoYesRentalDocumentTable.Subject
CurrencyCodeCurrency of the document.String (3)
CurrencyCode
YesYesCurrency.CurrencyCodeRentalDocumentTable.CurrencyCode
TemplateIdUnique ID of the rental template.String
RentalTemplateId
YesYesRentalTemplate.TemplateId
RentalTemplateRental template used for the document.Int64
RentalTemplateRecId
YesNo (private)RentalTemplate.RecIdRentalDocumentTable.RentalTemplate
StartDateTimeDate and time when the rental agreement begins.UtcDateTime
RentalStartDateTime
YesYesRentalDocumentTable.StartDateTime
EndDateEnd date of the document.Date
EndDate
NoYesRentalDocumentTable.EndDate
EstimatedReturnDateTimeExpected date and time of return.UtcDateTime
RentalEstimatedReturnDateTime
NoYesRentalDocumentTable.EstimatedReturnDateTime
InvoiceFromDateFirst invoice-to date to create.Date
RentalInvoiceFrom
NoYesRentalDocumentTable.InvoiceFromDate
InvoiceUntilDateLast invoice-to date to create.Date
RentalInvoiceUntilDate
NoYesRentalDocumentTable.InvoiceUntilDate
InvoiceMethodIdInvoice method used for the document.Int64
RentalInvoiceMethodRecId
NoYesRentalInvoiceMethod.RecIdRentalDocumentTable.InvoiceMethod
PaymentTermsIdTerms of payment for the document.String (100)
PaymTermId
NoYesPaymTerm.PaymTermIdRentalDocumentTable.PaymTermId
SalesTaxGroupIdSales tax group of the document.String
TaxGroup
NoYesTaxGroupHeading.TaxGroupRentalDocumentTable.TaxGroup
CustomerPurchaseOrderNumberCustomer's purchase order reference.String (30)
RentalCustomerPurchaseOrderNumber
NoYesRentalDocumentTable.CustomerPONumber
HeaderDiscountPercentageDiscount percentage applied from the header.Real
RentalHeaderDiscPct
NoYesRentalDocumentTable.HeaderDiscPct
ContactPersonIdContact person linked to the document.String (20)
ContactPersonId
NoYesContactPerson.ContactPersonIdRentalDocumentTable.ContactPersonId
HeaderNotesGeneral notes for the contract.String (255)
RentalDocumentTableNotes
NoYesRentalDocumentTable.HeaderNotes
IsRentalPurchaseOptionYes or No flag showing whether the document is a rental purchase option rather than rent-to-rent.Enum
RentalPurchaseOption
NoYes

Platform enum: values not in the metadata extract.

NoYesRentalDocumentTable.IsRentalPurchaseOption
RentalPurchaseOptionStartDateDate when the rental purchase option begins on the quotation or contract.Date
RentalPurchaseOptionStartDate
NoYesRentalDocumentTable.RentalPurchaseOptionStartDate
RentalPurchaseOptionMinTermMinimum term of the rental purchase option.Integer
RentalMinTerm
NoYesRentalDocumentTable.RentalPurchaseOptionMinTerm
RentalPurchaseOptionMaxTermMaximum term of the rental purchase option.Integer
RentalMaxTerm
NoYesRentalDocumentTable.RentalPurchaseOptionMaxTerm
RentalPurchaseOptionMinTermDateDate reached after the minimum term from the option start date.Date
RentalPurchaseOptionMinTermDate
NoYesRentalDocumentTable.RentalPurchaseOptionMinTermDate
RentalPurchaseOptionMaxTermDateDate reached after the maximum term from the option start date.Date
RentalPurchaseOptionMaxTermDate
NoYesRentalDocumentTable.RentalPurchaseOptionMaxTermDate
RentalPurchaseOptionOrderNumberOrder number of the rent-to-purchase order.String (20)
RentalPurchaseOptionOrderNumber
NoYesRentalDocumentTable.RentalPurchaseOptionOrderNumber
RentalPurchaseOptionInterestTypeInterest type for the purchase option: none, fixed or prime plus.Enum
RentalPurchaseOptionInterestType
  • None 0
  • Fixed 1
  • PrimePlus 2
NoYesRentalDocumentTable.RentalPurchaseOptionInterestType
RentalPurchaseOptionTransferStatusStatus of the purchase option transfer request, from created to transferred.Enum
RentalPurchaseOptionTransferRequestStatus
  • None 0
  • Created 1
  • RequestApproved 2
  • Sent 3
  • TransferApproved 4
  • Transferred 5
  • Cancelled 6
  • Rejected 7
NoYesRentalDocumentTable.RentalPurchaseOptionTransferStatus
ShipToRuleRule for the delivery address: address, customer, job site or pickup fleet location.Enum
RentalMainAddressRule
  • Manual 0
  • Customer 1
  • Jobsite 2
  • Pickup 3
NoYesRentalDocumentTable.ShipTo
PrintDateDate the document was printed.Date
PrintDate
NoYesRentalDocumentTable.PrintDate
DefaultDimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
DeliveryAddressCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
DeliveryAddressCountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
DeliveryAddressStateIdState or province code of the address.String
LogisticsAddressStateId
NoYesLogisticsAddressCounty.StateIdLogisticsAddressState.StateIdLogisticsPostalAddress.State
DeliveryAddressStreetStreet name of the address.String (250)
LogisticsAddressStreet
NoYesLogisticsPostalAddress.Street
DeliveryAddressZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
FormattedDeliveryAddressThe full address as one formatted text.String (250)
LogisticsAddressing
NoYesLogisticsPostalAddress.Address
JobSiteRecIdJob site linked to the document.Int64
RentalJobSiteRecId
NoNo (private)RentalJobSite.RecIdRentalDocumentTable.JobSite
DefaultDimensionFinancial dimension values set for the document.Int64
LedgerDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdRentalDocumentTable.DefaultDimension
DeliveryPostalAddressPostal address for delivery.Int64
LogisticsPostalAddressRecId
NoNo (private)LogisticsPostalAddress.RecIdRentalDocumentTable.DeliveryPostalAddress

Foreign keys (16)

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.

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

Email sales@drdynamics.co.uk