Table

TMSPurchTable

Purch Table Additional Fields

Holds extra transportation fields for a purchase order, one record per order. It stores carrier, carrier group, service, mode, route plan and transportation template.

Table name
TMSPurchTable
Module
Transportation management
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
PurchIdx
Replacement key
PurchIdx
Key fields
PurchId
Model
Foundation

Fields (17)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PurchIdPurchase order that these transportation details belong to.String (20)
PurchIdBase
YesPurchTable.PurchIdNone
CarrierCodeShipping carrier for the purchase order.String (20)
TMSCarrierCode
NoTMSCarrier.CarrierCodePurchPurchaseOrderHeaderV2EntityPurchPurchaseOrderHeaderEntity
CarrierGroupCodeCarrier group for the purchase order.String (20)
TMSCarrierGroupCode
NoTMSCarrierGroup.CarrierGroupCodePurchPurchaseOrderHeaderV2EntityPurchPurchaseOrderHeaderEntity
CarrierServiceCodeService of the chosen carrier.String (20)
TMSCarrierServiceCode
NoTMSCarrierService.CarrierServiceCodePurchPurchaseOrderHeaderV2EntityPurchPurchaseOrderHeaderEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ModeCodeTransportation mode for the order.String (20)
TMSModeCode
NoTMSMode.ModeCodePurchPurchaseOrderHeaderV2EntityPurchPurchaseOrderHeaderEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RouteConfigCodeRoute plan used for the order.String (20)
TMSRouteConfigCode
NoTMSRouteConfig.RouteConfigCodePurchPurchaseOrderHeaderV2EntityPurchPurchaseOrderHeaderEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TransportationTemplateIdTransportation template used for the order.String (20)
TMSTransportationTemplateId
NoTMSTransportationTemplate.TransportationTemplateIdPurchPurchaseOrderHeaderV2EntityPurchPurchaseOrderHeaderEntity

Indexes (1)

  • PurchIdxPrimary indexReplacement key

    PurchId

    Unique, alternate key.

Relations (7)

Each relation joins TMSPurchTable to another table on the fields shown.

  • PurchTable → PurchTable

    Join on PurchId = PurchTable.PurchId

    Zero or one TMSPurchTable record → exactly one PurchTable record

  • TMSCarrier → TMSCarrier

    Join on CarrierCode = TMSCarrier.CarrierCode

    Many TMSPurchTable records → zero or one TMSCarrier record

  • TMSCarrierGroup → TMSCarrierGroup

    Join on CarrierGroupCode = TMSCarrierGroup.CarrierGroupCode

    Many TMSPurchTable records → zero or one TMSCarrierGroup record

  • TMSCarrierService → TMSCarrierService

    Join on CarrierCode = TMSCarrierService.CarrierCode, CarrierServiceCode = TMSCarrierService.CarrierServiceCode

    Many TMSPurchTable records → zero or one TMSCarrierService record

  • TMSMode → TMSMode

    Join on ModeCode = TMSMode.ModeCode

    Many TMSPurchTable records → zero or one TMSMode record

  • TMSRouteConfig → TMSRouteConfig

    Join on RouteConfigCode = TMSRouteConfig.RouteConfigCode

    Many TMSPurchTable records → zero or one TMSRouteConfig record

  • TMSTransportationTemplateId → TMSTransportationTemplate

    Join on TransportationTemplateId = TMSTransportationTemplate.TransportationTemplateId

    Many TMSPurchTable records → zero or one TMSTransportationTemplate record

Get this data out

Tables are not exposed directly. These public entities read from TMSPurchTable; use one of them in Power BI, Power Platform or a data management project.

Need help with TMSPurchTable in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk