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· rootRentalJobSite· OuterJoin toRentalDocumentTable· read-onlyRentalLocation· OuterJoin toRentalDocumentTable· read-onlyRentalLocation_Pickup(tableRentalLocation) · OuterJoin toRentalDocumentTable· read-onlyDimensionDAVS(tableDimensionSetEntity) · OuterJoin toRentalDocumentTable· read-onlyLogisticsPostalAddressBaseEntity· OuterJoin toRentalDocumentTable· read-onlyRentalTemplate· InnerJoin toRentalDocumentTable· read-only
Fields (44)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
RentalContractIdUnique ID of the rental contract or quotation. | String (21)RentalId | Yes | Yes | RentalDocumentTable.RentalId | |
ContractStatusStatus of the contract, such as created, active, on hold, closed or cancelled. | Enum
| No | Yes | RentalDocumentTable.ContractStatus | |
RentingCustomerAccountNumberCustomer account of the renter. | String (20)RentalRenterAccount | No | Yes | CustTable.AccountNum | RentalDocumentTable.RenterAccount |
InvoiceCustomerAccountNumberOther customer to send the invoice to, if any. | String (20)RentalInvoiceAccount | No | Yes | CustTable.AccountNum | RentalDocumentTable.InvoiceAccount |
JobSiteIdUnique ID of the job site. | String (20)RentalJobSiteId | No | Yes | RentalJobSite.JobSiteId | |
BranchRentalLocationIdFleet location of the document. | String (100)RentalLocationId | No | Yes | RentalLocation.LocationId | RentalDocumentTable.RentalLocationId |
PickupRentalLocationIdFleet location where items are picked up. | String (100)RentalPickupRentalLocationId | No | Yes | RentalLocation.LocationId | RentalDocumentTable.PickupRentalLocationId |
SubjectShort subject text for the contract or quotation. | String (50)RentalSubject | No | Yes | RentalDocumentTable.Subject | |
CurrencyCodeCurrency of the document. | String (3)CurrencyCode | Yes | Yes | Currency.CurrencyCode | RentalDocumentTable.CurrencyCode |
TemplateIdUnique ID of the rental template. | StringRentalTemplateId | Yes | Yes | RentalTemplate.TemplateId | |
RentalTemplateRental template used for the document. | Int64RentalTemplateRecId | Yes | No (private) | RentalTemplate.RecId | RentalDocumentTable.RentalTemplate |
StartDateTimeDate and time when the rental agreement begins. | UtcDateTimeRentalStartDateTime | Yes | Yes | RentalDocumentTable.StartDateTime | |
EndDateEnd date of the document. | DateEndDate | No | Yes | RentalDocumentTable.EndDate | |
EstimatedReturnDateTimeExpected date and time of return. | UtcDateTimeRentalEstimatedReturnDateTime | No | Yes | RentalDocumentTable.EstimatedReturnDateTime | |
InvoiceFromDateFirst invoice-to date to create. | DateRentalInvoiceFrom | No | Yes | RentalDocumentTable.InvoiceFromDate | |
InvoiceUntilDateLast invoice-to date to create. | DateRentalInvoiceUntilDate | No | Yes | RentalDocumentTable.InvoiceUntilDate | |
InvoiceMethodIdInvoice method used for the document. | Int64RentalInvoiceMethodRecId | No | Yes | RentalInvoiceMethod.RecId | RentalDocumentTable.InvoiceMethod |
PaymentTermsIdTerms of payment for the document. | String (100)PaymTermId | No | Yes | PaymTerm.PaymTermId | RentalDocumentTable.PaymTermId |
SalesTaxGroupIdSales tax group of the document. | StringTaxGroup | No | Yes | TaxGroupHeading.TaxGroup | RentalDocumentTable.TaxGroup |
CustomerPurchaseOrderNumberCustomer's purchase order reference. | String (30)RentalCustomerPurchaseOrderNumber | No | Yes | RentalDocumentTable.CustomerPONumber | |
HeaderDiscountPercentageDiscount percentage applied from the header. | RealRentalHeaderDiscPct | No | Yes | RentalDocumentTable.HeaderDiscPct | |
ContactPersonIdContact person linked to the document. | String (20)ContactPersonId | No | Yes | ContactPerson.ContactPersonId | RentalDocumentTable.ContactPersonId |
HeaderNotesGeneral notes for the contract. | String (255)RentalDocumentTableNotes | No | Yes | RentalDocumentTable.HeaderNotes | |
IsRentalPurchaseOptionYes or No flag showing whether the document is a rental purchase option rather than rent-to-rent. | EnumRentalPurchaseOption
| No | Yes | RentalDocumentTable.IsRentalPurchaseOption | |
RentalPurchaseOptionStartDateDate when the rental purchase option begins on the quotation or contract. | DateRentalPurchaseOptionStartDate | No | Yes | RentalDocumentTable.RentalPurchaseOptionStartDate | |
RentalPurchaseOptionMinTermMinimum term of the rental purchase option. | IntegerRentalMinTerm | No | Yes | RentalDocumentTable.RentalPurchaseOptionMinTerm | |
RentalPurchaseOptionMaxTermMaximum term of the rental purchase option. | IntegerRentalMaxTerm | No | Yes | RentalDocumentTable.RentalPurchaseOptionMaxTerm | |
RentalPurchaseOptionMinTermDateDate reached after the minimum term from the option start date. | DateRentalPurchaseOptionMinTermDate | No | Yes | RentalDocumentTable.RentalPurchaseOptionMinTermDate | |
RentalPurchaseOptionMaxTermDateDate reached after the maximum term from the option start date. | DateRentalPurchaseOptionMaxTermDate | No | Yes | RentalDocumentTable.RentalPurchaseOptionMaxTermDate | |
RentalPurchaseOptionOrderNumberOrder number of the rent-to-purchase order. | String (20)RentalPurchaseOptionOrderNumber | No | Yes | RentalDocumentTable.RentalPurchaseOptionOrderNumber | |
RentalPurchaseOptionInterestTypeInterest type for the purchase option: none, fixed or prime plus. | Enum
| No | Yes | RentalDocumentTable.RentalPurchaseOptionInterestType | |
RentalPurchaseOptionTransferStatusStatus of the purchase option transfer request, from created to transferred. | Enum
| No | Yes | RentalDocumentTable.RentalPurchaseOptionTransferStatus | |
ShipToRuleRule for the delivery address: address, customer, job site or pickup fleet location. | Enum
| No | Yes | RentalDocumentTable.ShipTo | |
PrintDateDate the document was printed. | DatePrintDate | No | Yes | RentalDocumentTable.PrintDate | |
DefaultDimensionDisplayValueDefault dimensions shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
DeliveryAddressCityName of the city, as text. | String (60)LogisticsAddressCityName | No | Yes | LogisticsPostalAddress.City | |
DeliveryAddressCountryRegionIdThe country or region of the address. | StringLogisticsAddressCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | LogisticsPostalAddress.CountryRegionId |
DeliveryAddressStateIdState or province code of the address. | StringLogisticsAddressStateId | No | Yes | LogisticsAddressCounty.StateIdLogisticsAddressState.StateId | LogisticsPostalAddress.State |
DeliveryAddressStreetStreet name of the address. | String (250)LogisticsAddressStreet | No | Yes | LogisticsPostalAddress.Street | |
DeliveryAddressZipCodeZIP or postal code, as text. | StringLogisticsAddressZipCodeId | No | Yes | LogisticsPostalAddress.ZipCode | |
FormattedDeliveryAddressThe full address as one formatted text. | String (250)LogisticsAddressing | No | Yes | LogisticsPostalAddress.Address | |
JobSiteRecIdJob site linked to the document. | Int64RentalJobSiteRecId | No | No (private) | RentalJobSite.RecId | RentalDocumentTable.JobSite |
DefaultDimensionFinancial dimension values set for the document. | Int64LedgerDimensionValueSet | No | No (private) | DimensionAttributeValueSet.RecId | RentalDocumentTable.DefaultDimension |
DeliveryPostalAddressPostal address for delivery. | Int64LogisticsPostalAddressRecId | No | No (private) | LogisticsPostalAddress.RecId | RentalDocumentTable.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.
RentingCustomerAccountNumber→CustTable.AccountNum(key of CustTable)Many RentalDocumentTable records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
InvoiceCustomerAccountNumber→CustTable.AccountNum(key of CustTable)Many RentalDocumentTable records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
BranchRentalLocationId→RentalLocation.LocationId(key of RentalLocation)Many RentalDocumentTable records → zero or one RentalLocation record
RentalLocation details: see RentalLocationEntity, RentalQuotationHeaderEntity
PickupRentalLocationId→RentalLocation.LocationId(key of RentalLocation)Many RentalDocumentTable records → zero or one RentalLocation record
RentalLocation details: see RentalLocationEntity, RentalQuotationHeaderEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many RentalDocumentTable records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
RentalTemplate→RentalTemplate.RecId(key of RentalTemplate)Many RentalDocumentTable records → exactly one RentalTemplate record
RentalTemplate details: see RentalTemplateEntity, RentalMiscChargeExemptionEntity, RentalQuotationHeaderEntity
InvoiceMethodId→RentalInvoiceMethod.RecId(key of RentalInvoiceMethod)Many RentalDocumentTable records → zero or one RentalInvoiceMethod record
RentalInvoiceMethod details: see RentalTemplateEntity
PaymentTermsId→PaymTerm.PaymTermId(key of PaymTerm)Many RentalDocumentTable records → zero or one PaymTerm record
PaymTerm details: see PaymentTermEntity, CredManPaymTermRankEntity, TaxWithholdSettlementPeriodEntity
SalesTaxGroupId→TaxGroupHeading.TaxGroup(key of TaxGroupHeading)Many RentalDocumentTable records → zero or one TaxGroupHeading record
TaxGroupHeading details: see TrvExpMobileTaxGroupEntity, TaxGroupEntity, BusinessDocumentTaxGroupHeadingEntity
ContactPersonId→ContactPerson.ContactPersonId(key of ContactPerson)Many RentalDocumentTable records → zero or one ContactPerson record
ContactPerson details: see smmContactPersonV2Entity, smmContactPersonCDSV2Entity, BusinessDocumentSalesInvoiceBaseEntity
DeliveryAddressCountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many LogisticsPostalAddress records → exactly one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
DeliveryAddressStateId→LogisticsAddressCounty.StateId(key of LogisticsAddressCounty)Join on all of:
DeliveryAddressStateId=LogisticsAddressCounty.StateId,DeliveryAddressCountryRegionId=LogisticsAddressCounty.CountryRegionId,County(table field, not in this entity) =LogisticsAddressCounty.CountyIdMany LogisticsPostalAddress records → zero or one LogisticsAddressCounty record
LogisticsAddressCounty details: see LogisticsAddressCountyEntity, VRMLogisticsAddressCountyEntity
DeliveryAddressStateId→LogisticsAddressState.StateId(key of LogisticsAddressState)Join on all of:
DeliveryAddressStateId=LogisticsAddressState.StateId,DeliveryAddressCountryRegionId=LogisticsAddressState.CountryRegionIdMany LogisticsPostalAddress records → zero or one LogisticsAddressState record
LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity
JobSiteRecId→RentalJobSite.RecId(key of RentalJobSite)Many RentalDocumentTable records → zero or one RentalJobSite record
RentalJobSite details: see RentalJobSiteEntity, RentalContractLineEntity, RentalItemDVEntity
DefaultDimension→DimensionAttributeValueSet.RecId(key of DimensionAttributeValueSet)Many RentalDocumentTable records → zero or one DimensionAttributeValueSet record
DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity
DeliveryPostalAddress→LogisticsPostalAddress.RecId(key of LogisticsPostalAddress)Many RentalDocumentTable records → zero or one LogisticsPostalAddress record
LogisticsPostalAddress details: see CustCustomerV3Entity, InventTransferOrderHeaderEntity, TMSFreightBillDetailEntity
Need help with RentalContractHeaderEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.