Table

TMSApptHistory

Appointment history

Keeps a history of changes to transportation appointments. Each record repeats appointment details such as status, planned times, carrier and rule, together with a reason code and a note. It links to the appointment, the appointment rule, the carrier and the change reason. No key is defined.

Table name
TMSApptHistory
Module
Transportation management
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (24)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ApptCustomerPickupYes or No value showing whether the customer may collect the goods.Enum
TMSApptCustomerPickup
NoYes (enum)
NoTMSTransportationAppointmentHistoryEntity
ApptDirectionDirection of the goods movement: both, inbound or outbound.Enum
TMSApptDirection (enum)
NoTMSTransportationAppointmentHistoryEntity
ApptFromUTCDateTimePlanned start date and time of the appointment.UtcDateTime
TMSApptFromUTCDateTime
YesTMSTransportationAppointmentHistoryEntity
ApptIdID of the appointment this history record belongs to.String (20)
TMSApptId
YesTMSAppointment.ApptIdTMSTransportationAppointmentHistoryEntity
ApptRefNumNumber of the order or load the appointment refers to.String (20)
TMSApptRefNum
NoNone
ApptRefTypeType of document in the reference number: none, sales order, purchase order or load.Enum
TMSApptRefType (enum)
NoNone
ApptStatusStatus of the appointment, such as tentative, firmed, checked in or completed.Enum
TMSApptStatus (enum)
NoTMSTransportationAppointmentHistoryEntity
ApptToUTCDateTimePlanned end date and time of the appointment.UtcDateTime
TMSApptToUTCDateTime
YesTMSTransportationAppointmentHistoryEntity
BrokerCodeCode of the broker. It points to a carrier record.String (20)
TMSBrokerCode
NoTMSCarrier.CarrierCodeTMSTransportationAppointmentHistoryEntity
CalendarTypeIdID of the appointment rule. It points to a calendar type record.String (20)
TMSCalendarTypeId
YesTMSCalendarType.CalendarTypeIdTMSTransportationAppointmentHistoryEntity
CarrierCodeCode of the shipping carrier at the time of the record. It points to a carrier record.String (20)
TMSCarrierCode
NoTMSCarrier.CarrierCodeTMSTransportationAppointmentHistoryEntity
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
NoteFree-text note, which can be long.String (-1)
TMSNote
NoTMSTransportationAppointmentHistoryEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ReasonCodeCode for the reason the appointment was changed. It points to a change reason record.String (20)
TMSReasonCode
NoTMSChangeReason.ReasonCodeTMSTransportationAppointmentHistoryEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoTMSTransportationAppointmentHistoryEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
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
TractorNumberNumber of the tractor (truck unit) used.String (30)
TMSTractorNumber
NoTMSTransportationAppointmentHistoryEntity
TrailerNumberNumber of the trailer used.String (30)
WHSTrailerNumber
NoTMSTransportationAppointmentHistoryEntity
WHSShippingContainerIdID of the shipping container linked to the appointment.String (30)
WHSShippingContainerId
NoTMSTransportationAppointmentHistoryEntity

Indexes (1)

Relations (5)

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

  • TMSAppointment → TMSAppointment

    Join on ApptId = TMSAppointment.ApptId

    Many TMSApptHistory records → exactly one TMSAppointment record

  • TMSBroker → TMSCarrier

    Join on BrokerCode = TMSCarrier.CarrierCode

    Many TMSApptHistory records → zero or one TMSCarrier record

  • TMSCalendarType → TMSCalendarType

    Join on CalendarTypeId = TMSCalendarType.CalendarTypeId

    Many TMSApptHistory records → exactly one TMSCalendarType record

  • TMSCarrier → TMSCarrier

    Join on CarrierCode = TMSCarrier.CarrierCode

    Many TMSApptHistory records → exactly one TMSCarrier record

  • TMSChangeReason → TMSChangeReason

    Join on ReasonCode = TMSChangeReason.ReasonCode

    Many TMSApptHistory records → zero or one TMSChangeReason record

Get this data out

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

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

Email sales@drdynamics.co.uk