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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ApptCustomerPickupYes or No value showing whether the customer may collect the goods. | EnumTMSApptCustomerPickupNoYes (enum) | No | TMSTransportationAppointmentHistoryEntity | |
ApptDirectionDirection of the goods movement: both, inbound or outbound. | EnumTMSApptDirection (enum) | No | TMSTransportationAppointmentHistoryEntity | |
ApptFromUTCDateTimePlanned start date and time of the appointment. | UtcDateTimeTMSApptFromUTCDateTime | Yes | TMSTransportationAppointmentHistoryEntity | |
ApptIdID of the appointment this history record belongs to. | String (20)TMSApptId | Yes | TMSAppointment.ApptId | TMSTransportationAppointmentHistoryEntity |
ApptRefNumNumber of the order or load the appointment refers to. | String (20)TMSApptRefNum | No | None | |
ApptRefTypeType of document in the reference number: none, sales order, purchase order or load. | EnumTMSApptRefType (enum) | No | None | |
ApptStatusStatus of the appointment, such as tentative, firmed, checked in or completed. | EnumTMSApptStatus (enum) | No | TMSTransportationAppointmentHistoryEntity | |
ApptToUTCDateTimePlanned end date and time of the appointment. | UtcDateTimeTMSApptToUTCDateTime | Yes | TMSTransportationAppointmentHistoryEntity | |
BrokerCodeCode of the broker. It points to a carrier record. | String (20)TMSBrokerCode | No | TMSCarrier.CarrierCode | TMSTransportationAppointmentHistoryEntity |
CalendarTypeIdID of the appointment rule. It points to a calendar type record. | String (20)TMSCalendarTypeId | Yes | TMSCalendarType.CalendarTypeId | TMSTransportationAppointmentHistoryEntity |
CarrierCodeCode of the shipping carrier at the time of the record. It points to a carrier record. | String (20)TMSCarrierCode | No | TMSCarrier.CarrierCode | TMSTransportationAppointmentHistoryEntity |
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 | |
NoteFree-text note, which can be long. | String (-1)TMSNote | No | TMSTransportationAppointmentHistoryEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ReasonCodeCode for the reason the appointment was changed. It points to a change reason record. | String (20)TMSReasonCode | No | TMSChangeReason.ReasonCode | TMSTransportationAppointmentHistoryEntity |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | TMSTransportationAppointmentHistoryEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
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 | |
TractorNumberNumber of the tractor (truck unit) used. | String (30)TMSTractorNumber | No | TMSTransportationAppointmentHistoryEntity | |
TrailerNumberNumber of the trailer used. | String (30)WHSTrailerNumber | No | TMSTransportationAppointmentHistoryEntity | |
WHSShippingContainerIdID of the shipping container linked to the appointment. | String (30)WHSShippingContainerId | No | TMSTransportationAppointmentHistoryEntity |
Indexes (1)
ApptIdCreatedDateTimeNot unique.
Relations (5)
Each relation joins TMSApptHistory to another table on the fields shown.
TMSAppointment→TMSAppointmentJoin on
ApptId = TMSAppointment.ApptIdMany TMSApptHistory records → exactly one TMSAppointment record
TMSBroker→TMSCarrierJoin on
BrokerCode = TMSCarrier.CarrierCodeMany TMSApptHistory records → zero or one TMSCarrier record
TMSCalendarType→TMSCalendarTypeJoin on
CalendarTypeId = TMSCalendarType.CalendarTypeIdMany TMSApptHistory records → exactly one TMSCalendarType record
TMSCarrier→TMSCarrierJoin on
CarrierCode = TMSCarrier.CarrierCodeMany TMSApptHistory records → exactly one TMSCarrier record
TMSChangeReason→TMSChangeReasonJoin on
ReasonCode = TMSChangeReason.ReasonCodeMany 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.
TMSTransportationAppointmentHistoryEntity· 15 fields from this table
Need help with TMSApptHistory in a report, an integration or a migration? Talk to Dr Dynamics.