Table

TMSPurchAgreementHeader

Purchase Agreement Additional Fields

Adds transportation settings to a purchase agreement header. It is keyed by a reference to the purchase agreement record. It holds the carrier, carrier group, carrier service, mode, route plan and transportation template for that agreement.

Table name
TMSPurchAgreementHeader
Module
Transportation management
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
None
Replacement key
RefRecIdx
Key fields
RefRecId
Model
Foundation

Fields (17)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
RefRecIdSystem record ID of the purchase agreement header that these settings extend.Int64
RefRecId
YesPurchAgreementHeader.RecIdNone
CarrierCodeShipping carrier code, pointing to the carrier record.String (20)
TMSCarrierCode
NoTMSCarrier.CarrierCodePurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
CarrierGroupCodeCarrier group code, pointing to the carrier group record.String (20)
TMSCarrierGroupCode
NoTMSCarrierGroup.CarrierGroupCodePurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
CarrierServiceCodeCarrier service code. It is matched together with the carrier.String (20)
TMSCarrierServiceCode
NoTMSCarrierService.CarrierServiceCodePurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
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, pointing to the mode record.String (20)
TMSModeCode
NoTMSMode.ModeCodePurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
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 code, pointing to the route plan record.String (20)
TMSRouteConfigCode
NoTMSRouteConfig.RouteConfigCodePurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
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, pointing to the template record.String (20)
TMSTransportationTemplateId
NoTMSTransportationTemplate.TransportationTemplateIdPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity

Indexes (1)

  • RefRecIdxReplacement key

    RefRecId

    Unique, alternate key.

Relations (7)

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

  • PurchAgreementHeader → PurchAgreementHeader

    Join on RefRecId = PurchAgreementHeader.RecId

    Zero or one TMSPurchAgreementHeader record → exactly one PurchAgreementHeader record

  • TMSCarrier → TMSCarrier

    Join on CarrierCode = TMSCarrier.CarrierCode

    Many TMSPurchAgreementHeader records → zero or one TMSCarrier record

  • TMSCarrierGroup → TMSCarrierGroup

    Join on CarrierGroupCode = TMSCarrierGroup.CarrierGroupCode

    Many TMSPurchAgreementHeader records → zero or one TMSCarrierGroup record

  • TMSCarrierService → TMSCarrierService

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

    Many TMSPurchAgreementHeader records → zero or one TMSCarrierService record

  • TMSMode → TMSMode

    Join on ModeCode = TMSMode.ModeCode

    Many TMSPurchAgreementHeader records → zero or one TMSMode record

  • TMSRouteConfig → TMSRouteConfig

    Join on RouteConfigCode = TMSRouteConfig.RouteConfigCode

    Many TMSPurchAgreementHeader records → zero or one TMSRouteConfig record

  • TMSTransportationTemplate → TMSTransportationTemplate

    Join on TransportationTemplateId = TMSTransportationTemplate.TransportationTemplateId

    Many TMSPurchAgreementHeader records → zero or one TMSTransportationTemplate record

Get this data out

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

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

Email sales@drdynamics.co.uk