Data entity
TMSFreightInvoiceLineV2Entity
Second version of the freight invoice line entity. It uses the internal invoice number and line number as key. It reads the same line table and joins to the invoice header.
- Entity name
TMSFreightInvoiceLineV2Entity- Public entity name
FreightInvoiceLineV2- OData collection
FreightInvoiceLinesV2- Category
Document- Module
Transportation- Read-only
No- Data management enabled
Yes- Configuration key
WHSandTMS- Keys
InternalInvoiceNumber, LineNumber- Staging table
TMSFreightInvoiceLineV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/FreightInvoiceLinesV2- Dataverse virtual table
mserp_tmsfreightinvoicelinev2entity. 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
TMSInvoiceLine· rootTMSInvoiceTable· InnerJoin toTMSInvoiceLine· read-only
Fields (44)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
DestinationCountryRegionIdCountry or region of the address. It points to a country/region record. | StringAddressCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | TMSInvoiceLine.AddressCountryRegionId |
TransportationBillingGroupIdID of the billing group. It points to a billing group record. | String (20)TMSBillingGroupId | No | Yes | TMSBillingGroup.BillingGroupId | TMSInvoiceLine.BillingGroupId |
BillOfLadingIdID of the bill of lading. | String (25)WHSBillOfLadingId | No | Yes | TMSInvoiceLine.BillOfLadingId | |
BookingNumberBooking number for the transport. | String (20)TMSBookingNum | No | Yes | TMSInvoiceLine.BookingNum | |
ShippingCarrierIdCode of the shipping carrier. It points to a carrier record. | String (20)TMSCarrierCode | No | Yes | TMSCarrier.CarrierCode | TMSInvoiceLine.CarrierCode |
ShippingCarrierServiceIdCode of the carrier service used. | String (20)TMSCarrierServiceCode | No | Yes | TMSInvoiceLine.CarrierServiceCode | |
CosigneeNameConsignee, the party receiving the goods. | String (20)TMSCosignee | No | Yes | TMSInvoiceLine.Cosignee | |
DestinationCountryRegionISOCodeTwo-letter ISO code of the country or region. | String (2)TMSCountryRegionISOCode | No | Yes | TMSInvoiceLine.CountryRegionISOCode | |
LastCycleCountingDateTimeDelivery date and time. The label reads 'Last cycle count', which does not match the data type name.low confidence | UtcDateTimeWHSDeliveryUTCDateTime | No | Yes | TMSInvoiceLine.DeliveryUTCDateTime | |
DescriptionLine2Second line of description. | String (60)WHSDesc2 | No | Yes | TMSInvoiceLine.Desc2 | |
DescriptionLine1Description of the invoice line. | String (60)Description | No | Yes | TMSInvoiceLine.Description | |
TransportationDistanceDistance for the transport. | RealWHSDistance | No | Yes | TMSInvoiceLine.Distance | |
ExternalCodeCode used outside the system for this item. | String (60)TMSExternalCode | No | Yes | TMSInvoiceLine.ExternalCode | |
FreightBillTypeIdType of freight bill. It points to a freight bill type record. | String (20)TMSFreightBillTypeId | No | Yes | TMSFreightBillType.FreightBillTypeId | TMSInvoiceLine.FreightBillTypeId |
IsLineHeaderChargeYes or No value showing whether the line is a header charge. | EnumTMSHeaderCharge
| No | Yes | TMSInvoiceLine.HeaderCharge | |
WarehouseIdWarehouse linked to the line. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | TMSInvoiceLine.InventLocationId |
InventorySiteIdSite linked to the line. | StringInventSiteId | No | Yes | InventSite.SiteId | TMSInvoiceLine.InventSiteId |
InvoiceDateDate of the invoice. | DateInvoiceDate | No | Yes | TMSInvoiceLine.InvoiceDate | |
LineStatusStatus of the line, such as open, in dispute, approved or rejected. | Enum
| No | Yes | TMSInvoiceLine.InvoiceLineStatus | |
ItemNumberItem number linked to the line. It points to an item record. | String (20)ItemId | No | Yes | InventTable.ItemId | TMSInvoiceLine.ItemId |
LineNumberLine number within the invoice. | RealLineNum | Yes | Yes | TMSInvoiceLine.LineNum | |
LineTypeType of invoice line: accessorial charge or freight. | Enum
| No | Yes | TMSInvoiceLine.LineType | |
LoadIdID of the load the line relates to. | String (20)WHSLoadId | No | Yes | WHSLoadTable.LoadId | TMSInvoiceLine.LoadId |
DeliveryModeCodeTransport mode. It points to a mode record. | String (20)TMSModeCode | No | Yes | TMSMode.ModeCode | TMSInvoiceLine.ModeCode |
NetAmountNet amount of the line. Currency not stated in the metadata. | RealTMSNetAmount | No | Yes | TMSInvoiceLine.NetAmount | |
ProNumberCodePro number used to identify the shipment. | String (25)WHSProNum | No | Yes | TMSInvoiceLine.ProNum | |
FreightQuantityQuantity on the line. | RealQty | No | Yes | TMSInvoiceLine.Qty | |
TMSFreightInvoiceRecIdSystem record ID of the freight invoice header this line belongs to. | Int64RefRecId | Yes | No (private) | TMSInvoiceTable.RecId | TMSInvoiceLine.RefRecId |
RelatedAccountNumberRelated account number. | String (20)TMSRelatedAccountNum | No | Yes | TMSInvoiceLine.RelatedAccountNum | |
RelatedOrderNumberRelated order number. | String (20)TMSRelatedOrderNum | No | Yes | TMSInvoiceLine.RelatedOrderNum | |
TransportationRouteCodeCode of the route used. It points to a route record. | String (20)TMSRouteCode | No | Yes | TMSRoute.RouteCode | TMSInvoiceLine.RouteCode |
TrackingNumberCarrier tracking number for the shipment. | String (30)ShipCarrierTrackingNum | No | Yes | TMSInvoiceLine.ShipCarrierTrackingNum | |
ShipmentIdID of the shipment the line relates to. | String (20)WHSShipmentId | No | Yes | WHSShipmentTable.ShipmentId | TMSInvoiceLine.ShipmentId |
FreightHeldUntilDateTimeShip date and time. The label says 'End date and time for holding freight'.low confidence | UtcDateTimeWHSShipUTCDateTime | No | Yes | TMSInvoiceLine.ShipUTCDateTime | |
TrailerNumberNumber of the trailer used. | String (30)WHSTrailerNumber | No | Yes | TMSInvoiceLine.TrailerNumber | |
UnitPricePrice for one unit. Currency not stated in the metadata. | RealTMSUnitPrice | No | Yes | TMSInvoiceLine.UnitPrice | |
FreightWeightUnitIdUnit of measure for the quantity. It points to a unit record. | StringWHSUOM | No | Yes | UnitOfMeasure.Symbol | TMSInvoiceLine.UOM |
ShippingCarrierVendorAccountNumberVendor account of the carrier. It points to a vendor record. | String (20)VendAccount | No | Yes | VendTable.AccountNum | TMSInvoiceLine.VendAccount |
InvoiceVendorAccountNumberVendor account used for invoicing. It points to a vendor record. | String (20)VendInvoiceAccount | No | Yes | VendTable.AccountNum | TMSInvoiceLine.VendInvoiceAccount |
VesselNameName of the vessel for sea transport. | String (20)TMSVesselName | No | Yes | TMSInvoiceLine.VesselName | |
VoyageNumberVoyage number for sea transport. | StringTMSVoyageNum | No | Yes | TMSInvoiceLine.VoyageNum | |
FreightWeightWeight on the line. | RealWeight | No | Yes | TMSInvoiceLine.Weight | |
DirectionDirection of the goods movement: none, inbound or outbound. | Enum
| No | Yes | TMSInvoiceLine.Direction | |
InternalInvoiceNumberInternal invoice number. It is the unique key of the freight invoice. | String (50)TMSInternalInvNumber | Yes | Yes | TMSInvoiceTable.InternalInvNumber |
Foreign keys (15)
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.
DestinationCountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many TMSInvoiceLine records → zero or one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
TransportationBillingGroupId→TMSBillingGroup.BillingGroupId(key of TMSBillingGroup)Many TMSInvoiceLine records → zero or one TMSBillingGroup record
Not exposed by a public entity.
ShippingCarrierId→TMSCarrier.CarrierCode(key of TMSCarrier)Many TMSInvoiceLine records → exactly one TMSCarrier record
TMSCarrier details: see TMSShippingCarrierEntity, TMSTransportationAppointmentDriverLogEntity, TMSTransportationAppointmentEntity
FreightBillTypeId→TMSFreightBillType.FreightBillTypeId(key of TMSFreightBillType)Many TMSInvoiceLine records → exactly one TMSFreightBillType record
Not exposed by a public entity.
WarehouseId→InventLocation.InventLocationId(key of InventLocation)Many TMSInvoiceLine records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
InventorySiteId→InventSite.SiteId(key of InventSite)Many TMSInvoiceLine records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
ItemNumber→InventTable.ItemId(key of InventTable)Many TMSInvoiceLine records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
LoadId→WHSLoadTable.LoadId(key of WHSLoadTable)Many TMSInvoiceLine records → exactly one WHSLoadTable record
WHSLoadTable details: see WHSInboundLoadHeaderEntity, WHSOutboundLoadHeaderEntity, WHSLoadTableBiEntity
DeliveryModeCode→TMSMode.ModeCode(key of TMSMode)Many TMSInvoiceLine records → exactly one TMSMode record
TMSMode details: see TMSTransportationModeEntity
TMSFreightInvoiceRecId→TMSInvoiceTable.RecId(key of TMSInvoiceTable)Many TMSInvoiceLine records → exactly one TMSInvoiceTable record
TMSInvoiceTable details: see TMSFreightInvoiceHeaderEntity, TMSFreightInvoiceHeaderV2Entity, TMSFreightInvoiceLineEntity
TransportationRouteCode→TMSRoute.RouteCode(key of TMSRoute)Many TMSInvoiceLine records → exactly one TMSRoute record
Not exposed by a public entity.
ShipmentId→WHSShipmentTable.ShipmentId(key of WHSShipmentTable)Many TMSInvoiceLine records → exactly one WHSShipmentTable record
WHSShipmentTable details: see WHSOutboundShipmentHeaderEntity, WHSInboundShipmentHeaderEntity, WHSShipmentTableBiEntity
FreightWeightUnitId→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many TMSInvoiceLine records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
ShippingCarrierVendorAccountNumber→VendTable.AccountNum(key of VendTable)Many TMSInvoiceLine records → zero or one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
InvoiceVendorAccountNumber→VendTable.AccountNum(key of VendTable)Many TMSInvoiceLine records → zero or one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
Need help with TMSFreightInvoiceLineV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.