Table
DOMDistance
Distance
Holds the distance between a warehouse and the delivery address of a sales order. It stores both the straight distance and the road distance, with a flag showing whether a distance was available. Records link to InventLocation and SalesTable and carry a DOM run ID.
- Table name
DOMDistance- Module
Commerce transactions and orders- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
None- Replacement key
None- Key fields
None- Model
DOM
Fields (18)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
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 | |
DestinationAddressRecord ID of the postal address at the end of the distance. | Int64LogisticsPostalAddressRecId | No | None | |
DistanceValueDistance between the two addresses. | RealDistanceValue | No | None | |
DOMRunIdUnique number of the DOM run that created the record. | Int64DOMRunId | No | None | |
InventLocationDataAreaIdCompany (data area) of the warehouse. | String (6)DirDataAreaId | No | None | |
InventLocationIdWarehouse the distance is measured from. | StringInventLocationId | Yes | InventLocation.InventLocationId | None |
IsDistanceAvailableShows whether a distance value is available (Yes or No). | EnumNoYes (enum) | No | None | |
IsDistanceOverriddenByExtensionShows whether an extension has overridden the distance (Yes or No). | EnumNoYes (enum) | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
OriginAddressRecord ID of the postal address at the start of the distance. | Int64LogisticsPostalAddressRecId | 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 | |
RoadCalculationExceptionType of problem met during the road distance calculation, such as no road route found or a mapping service failure. | EnumDOMExceptionType (enum) | No | None | |
RoadDistanceValueRoad distance between the two addresses. | RealDistanceValue | No | None | |
SalesIdSales order the distance relates to. | String (20)SalesId | Yes | SalesTable.SalesId | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (6)
FulfillmentDataDeletionIdxNot unique.
AddressIdxDOMRunId,OriginAddress,DestinationAddressNot unique.
DistanceIdxDOMRunId,DistanceValue,IsDistanceAvailableNot unique.
LocationIdxDOMRunId,InventLocationId,InventLocationDataAreaIdNot unique.
SalesIdxNot unique.
LocationSalesIdIdxDOMRunId,SalesId,InventLocationId,InventLocationDataAreaIdNot unique.
Relations (2)
Each relation joins DOMDistance to another table on the fields shown.
SalesTable→SalesTableJoin on
SalesId = SalesTable.SalesIdOne or more DOMDistance records → exactly one SalesTable record
InventLocationId→InventLocationJoin on
InventLocationId = InventLocation.InventLocationIdOne or more DOMDistance records → exactly one InventLocation record
Get this data out
No public entity reads from DOMDistance. Its data is only reachable through the application, a custom entity or a database export.
Need help with DOMDistance in a report, an integration or a migration? Talk to Dr Dynamics.