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 · root
  • TMSInvoiceTable · InnerJoin to TMSInvoiceLine · read-only

Fields (44)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
DestinationCountryRegionIdCountry or region of the address. It points to a country/region record.String
AddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdTMSInvoiceLine.AddressCountryRegionId
TransportationBillingGroupIdID of the billing group. It points to a billing group record.String (20)
TMSBillingGroupId
NoYesTMSBillingGroup.BillingGroupIdTMSInvoiceLine.BillingGroupId
BillOfLadingIdID of the bill of lading.String (25)
WHSBillOfLadingId
NoYesTMSInvoiceLine.BillOfLadingId
BookingNumberBooking number for the transport.String (20)
TMSBookingNum
NoYesTMSInvoiceLine.BookingNum
ShippingCarrierIdCode of the shipping carrier. It points to a carrier record.String (20)
TMSCarrierCode
NoYesTMSCarrier.CarrierCodeTMSInvoiceLine.CarrierCode
ShippingCarrierServiceIdCode of the carrier service used.String (20)
TMSCarrierServiceCode
NoYesTMSInvoiceLine.CarrierServiceCode
CosigneeNameConsignee, the party receiving the goods.String (20)
TMSCosignee
NoYesTMSInvoiceLine.Cosignee
DestinationCountryRegionISOCodeTwo-letter ISO code of the country or region.String (2)
TMSCountryRegionISOCode
NoYesTMSInvoiceLine.CountryRegionISOCode
LastCycleCountingDateTimeDelivery date and time. The label reads 'Last cycle count', which does not match the data type name.low confidenceUtcDateTime
WHSDeliveryUTCDateTime
NoYesTMSInvoiceLine.DeliveryUTCDateTime
DescriptionLine2Second line of description.String (60)
WHSDesc2
NoYesTMSInvoiceLine.Desc2
DescriptionLine1Description of the invoice line.String (60)
Description
NoYesTMSInvoiceLine.Description
TransportationDistanceDistance for the transport.Real
WHSDistance
NoYesTMSInvoiceLine.Distance
ExternalCodeCode used outside the system for this item.String (60)
TMSExternalCode
NoYesTMSInvoiceLine.ExternalCode
FreightBillTypeIdType of freight bill. It points to a freight bill type record.String (20)
TMSFreightBillTypeId
NoYesTMSFreightBillType.FreightBillTypeIdTMSInvoiceLine.FreightBillTypeId
IsLineHeaderChargeYes or No value showing whether the line is a header charge.Enum
TMSHeaderCharge
NoYes

Platform enum: values not in the metadata extract.

NoYesTMSInvoiceLine.HeaderCharge
WarehouseIdWarehouse linked to the line.String
InventLocationId
NoYesInventLocation.InventLocationIdTMSInvoiceLine.InventLocationId
InventorySiteIdSite linked to the line.String
InventSiteId
NoYesInventSite.SiteIdTMSInvoiceLine.InventSiteId
InvoiceDateDate of the invoice.Date
InvoiceDate
NoYesTMSInvoiceLine.InvoiceDate
LineStatusStatus of the line, such as open, in dispute, approved or rejected.Enum
TMSInvoiceLineStatus
  • Open 0
  • InDispute 1
  • Submitted 2
  • Approved 3
  • Rejected 4
  • PartiallyApproved 5
  • Resubmitted 6
NoYesTMSInvoiceLine.InvoiceLineStatus
ItemNumberItem number linked to the line. It points to an item record.String (20)
ItemId
NoYesInventTable.ItemIdTMSInvoiceLine.ItemId
LineNumberLine number within the invoice.Real
LineNum
YesYesTMSInvoiceLine.LineNum
LineTypeType of invoice line: accessorial charge or freight.Enum
TMSLineType
  • Accessorial 0
  • Freight 1
NoYesTMSInvoiceLine.LineType
LoadIdID of the load the line relates to.String (20)
WHSLoadId
NoYesWHSLoadTable.LoadIdTMSInvoiceLine.LoadId
DeliveryModeCodeTransport mode. It points to a mode record.String (20)
TMSModeCode
NoYesTMSMode.ModeCodeTMSInvoiceLine.ModeCode
NetAmountNet amount of the line. Currency not stated in the metadata.Real
TMSNetAmount
NoYesTMSInvoiceLine.NetAmount
ProNumberCodePro number used to identify the shipment.String (25)
WHSProNum
NoYesTMSInvoiceLine.ProNum
FreightQuantityQuantity on the line.Real
Qty
NoYesTMSInvoiceLine.Qty
TMSFreightInvoiceRecIdSystem record ID of the freight invoice header this line belongs to.Int64
RefRecId
YesNo (private)TMSInvoiceTable.RecIdTMSInvoiceLine.RefRecId
RelatedAccountNumberRelated account number.String (20)
TMSRelatedAccountNum
NoYesTMSInvoiceLine.RelatedAccountNum
RelatedOrderNumberRelated order number.String (20)
TMSRelatedOrderNum
NoYesTMSInvoiceLine.RelatedOrderNum
TransportationRouteCodeCode of the route used. It points to a route record.String (20)
TMSRouteCode
NoYesTMSRoute.RouteCodeTMSInvoiceLine.RouteCode
TrackingNumberCarrier tracking number for the shipment.String (30)
ShipCarrierTrackingNum
NoYesTMSInvoiceLine.ShipCarrierTrackingNum
ShipmentIdID of the shipment the line relates to.String (20)
WHSShipmentId
NoYesWHSShipmentTable.ShipmentIdTMSInvoiceLine.ShipmentId
FreightHeldUntilDateTimeShip date and time. The label says 'End date and time for holding freight'.low confidenceUtcDateTime
WHSShipUTCDateTime
NoYesTMSInvoiceLine.ShipUTCDateTime
TrailerNumberNumber of the trailer used.String (30)
WHSTrailerNumber
NoYesTMSInvoiceLine.TrailerNumber
UnitPricePrice for one unit. Currency not stated in the metadata.Real
TMSUnitPrice
NoYesTMSInvoiceLine.UnitPrice
FreightWeightUnitIdUnit of measure for the quantity. It points to a unit record.String
WHSUOM
NoYesUnitOfMeasure.SymbolTMSInvoiceLine.UOM
ShippingCarrierVendorAccountNumberVendor account of the carrier. It points to a vendor record.String (20)
VendAccount
NoYesVendTable.AccountNumTMSInvoiceLine.VendAccount
InvoiceVendorAccountNumberVendor account used for invoicing. It points to a vendor record.String (20)
VendInvoiceAccount
NoYesVendTable.AccountNumTMSInvoiceLine.VendInvoiceAccount
VesselNameName of the vessel for sea transport.String (20)
TMSVesselName
NoYesTMSInvoiceLine.VesselName
VoyageNumberVoyage number for sea transport.String
TMSVoyageNum
NoYesTMSInvoiceLine.VoyageNum
FreightWeightWeight on the line.Real
Weight
NoYesTMSInvoiceLine.Weight
DirectionDirection of the goods movement: none, inbound or outbound.Enum
TMSDirection
  • None 0
  • Inbound 1
  • Outbound 2
NoYesTMSInvoiceLine.Direction
InternalInvoiceNumberInternal invoice number. It is the unique key of the freight invoice.String (50)
TMSInternalInvNumber
YesYesTMSInvoiceTable.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.

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

Email sales@drdynamics.co.uk