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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RefRecIdSystem record ID of the purchase agreement header that these settings extend. | Int64RefRecId | Yes | PurchAgreementHeader.RecId | None |
CarrierCodeShipping carrier code, pointing to the carrier record. | String (20)TMSCarrierCode | No | TMSCarrier.CarrierCode | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity |
CarrierGroupCodeCarrier group code, pointing to the carrier group record. | String (20)TMSCarrierGroupCode | No | TMSCarrierGroup.CarrierGroupCode | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity |
CarrierServiceCodeCarrier service code. It is matched together with the carrier. | String (20)TMSCarrierServiceCode | No | TMSCarrierService.CarrierServiceCode | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
ModeCodeTransportation mode, pointing to the mode record. | String (20)TMSModeCode | No | TMSMode.ModeCode | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RouteConfigCodeRoute plan code, pointing to the route plan record. | String (20)TMSRouteConfigCode | No | TMSRouteConfig.RouteConfigCode | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TransportationTemplateIdTransportation template, pointing to the template record. | String (20)TMSTransportationTemplateId | No | TMSTransportationTemplate.TransportationTemplateId | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity |
Indexes (1)
RefRecIdxReplacement keyUnique, alternate key.
Relations (7)
Each relation joins TMSPurchAgreementHeader to another table on the fields shown.
PurchAgreementHeader→PurchAgreementHeaderJoin on
RefRecId = PurchAgreementHeader.RecIdZero or one TMSPurchAgreementHeader record → exactly one PurchAgreementHeader record
TMSCarrier→TMSCarrierJoin on
CarrierCode = TMSCarrier.CarrierCodeMany TMSPurchAgreementHeader records → zero or one TMSCarrier record
TMSCarrierGroup→TMSCarrierGroupJoin on
CarrierGroupCode = TMSCarrierGroup.CarrierGroupCodeMany TMSPurchAgreementHeader records → zero or one TMSCarrierGroup record
TMSCarrierService→TMSCarrierServiceJoin on
CarrierServiceCode = TMSCarrierService.CarrierServiceCode,CarrierCode = TMSCarrierService.CarrierCodeMany TMSPurchAgreementHeader records → zero or one TMSCarrierService record
TMSMode→TMSModeJoin on
ModeCode = TMSMode.ModeCodeMany TMSPurchAgreementHeader records → zero or one TMSMode record
TMSRouteConfig→TMSRouteConfigJoin on
RouteConfigCode = TMSRouteConfig.RouteConfigCodeMany TMSPurchAgreementHeader records → zero or one TMSRouteConfig record
TMSTransportationTemplate→TMSTransportationTemplateJoin on
TransportationTemplateId = TMSTransportationTemplate.TransportationTemplateIdMany 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.
PurchPurchaseAgreementHeaderV2Entity· 6 fields from this tableCLMIntegrationPurchaseAgreementHeaderEntity· 6 fields from this tableCLMIntegrationValidationPurchaseAgreementHeaderEntity· 6 fields from this table
Need help with TMSPurchAgreementHeader in a report, an integration or a migration? Talk to Dr Dynamics.