Table
SalesLineForeignTradeCategory
Order line foreign trade category
Holds foreign trade details for a sales order line, such as commodity code, origin and unit weight. It is keyed by the line's lot ID and company. It includes an NGP code field used for France.
- Table name
SalesLineForeignTradeCategory- Module
Sales and marketing- Table group
WorksheetLine- Table type
Regular- Data per company
No- Configuration key
LogisticsBasic- Primary index
None- Replacement key
FK_SalesLine_SalesLineForeignTradeCat- Key fields
salesLineInventTransId, salesLineDataAreaId- Model
Foundation
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
salesLineInventTransIdLot ID of the sales order line that these details belong to. | String (20)TradeInventTransId | Yes | SalesLine.InventTransId | None |
salesLineDataAreaIdCompany of the sales order line that these details belong to. | StringDataAreaId | Yes | SalesLine.dataAreaId | None |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
ItemCodeIdCommodity code for the item on the line, used in foreign trade reporting. | StringDEL_IntrastatItemCodeId | No | None | |
NGPCodesTable_FRPoints to an NGP code record, used for France. | Int64NGPCodesTableFRId | No | NGPCodesTable_FR.RecId | SalesOrderLineV3EntitySalesOrderLineV2Entity |
OrigCountryRegionIdCountry or region the item comes from. | StringItemOrigCountryRegionId | No | None | |
OrigStateIdState or province the item comes from. | StringItemOrigStateId | 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 | |
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 | |
UnitWeightWeight of one unit of the item on the line. | RealWeight | No | None |
Indexes (1)
FK_SalesLine_SalesLineForeignTradeCatReplacement keysalesLineInventTransId,salesLineDataAreaIdUnique, alternate key.
Relations (2)
Each relation joins SalesLineForeignTradeCategory to another table on the fields shown.
NGPCodesTable_FR→NGPCodesTable_FRJoin on
NGPCodesTable_FR = NGPCodesTable_FR.RecIdMany SalesLineForeignTradeCategory records → zero or one NGPCodesTable_FR record
SalesLine→SalesLineJoin on
salesLineInventTransId = SalesLine.InventTransId,salesLineDataAreaId = SalesLine.dataAreaIdZero or one SalesLineForeignTradeCategory record → exactly one SalesLine record
Get this data out
Tables are not exposed directly. These public entities read from SalesLineForeignTradeCategory; use one of them in Power BI, Power Platform or a data management project.
SalesOrderLineV3Entity· 1 field from this tableReturnOrderLineV2Entity· 0 fields from this tableSalesOrderLineV2Entity· 1 field from this tableReturnOrderLineEntity· 0 fields from this table
Need help with SalesLineForeignTradeCategory in a report, an integration or a migration? Talk to Dr Dynamics.