Table

WHSHistory

Load history

Keeps a history of events for loads and shipments. Each entry has an event, such as release to warehouse or confirm shipment, and a time. The reference ID points to either a load or a shipment, as set by the history type.

Table name
WHSHistory
Module
Inventory
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 (11)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
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
HistoryEventThe event that happened: release to warehouse or confirm shipment.Enum
WHSHistoryEvent (enum)
NoNone
HistoryTypeShows whether the entry is for a load or a shipment.Enum
WHSHistoryType (enum)
NoNone
IdThe ID of the load or shipment that the entry refers to.String (20)
WHSId
NoWHSLoadTable.LoadIdWHSShipmentTable.ShipmentIdNone
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TransDateTimeThe date and time of the event.UtcDateTime
TransDateTime
NoNone

Indexes (2)

Relations (3)

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

  • WHSHistory → WHSHistory

    Join on Id = WHSHistory.Id

    Exactly one WHSHistory record → zero or one WHSHistory record

  • WHSLoadTable → WHSLoadTable

    Join on HistoryType = WHSHistoryType::Load, Id = WHSLoadTable.LoadId

    Many WHSHistory records → zero or one WHSLoadTable record

  • WHSShipmentTable → WHSShipmentTable

    Join on HistoryType = WHSHistoryType::Shipment, Id = WHSShipmentTable.ShipmentId

    Many WHSHistory records → zero or one WHSShipmentTable record

Get this data out

No public entity reads from WHSHistory. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk