Table
PurchLineForeignTradeCategory
Order line foreign trade category
Holds foreign trade details for purchase order lines, such as commodity, country or region of origin, unit weight and a French NGP code. The key is the line's lot ID plus its company. It links to the purchase order line.
- Table name
PurchLineForeignTradeCategory- Module
Procurement and sourcing- Table group
WorksheetLine- Table type
Regular- Data per company
No- Configuration key
LogisticsBasic- Primary index
None- Replacement key
FK_PurchLine_PurchLineForeignTradeCat- Key fields
PurchLineInventTransId, PurchLineDataAreaId- Model
Foundation
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PurchLineInventTransIdLot ID that identifies the purchase order line. | String (20)TradeInventTransId | Yes | PurchLine.InventTransId | None |
PurchLineDataAreaIdCompany of the purchase order line. | StringDataAreaId | Yes | PurchLine.dataAreaId | None |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
IsDeletedYes/No flag marking the row as deleted for versioning. | EnumVersioningIsDeletedNoYes (enum) | No | None | |
IsModifiedYes/No flag marking the row as modified for versioning. | EnumVersioningIsModifiedNoYes (enum) | No | None | |
ItemCodeIdCommodity code for the line. The type name suggests it was an Intrastat code. | StringDEL_IntrastatItemCodeId | No | None | |
NGPCodesTable_FRNGP code assigned to the line, used for France. It is stored as a record ID. | Int64NGPCodesTableFRId | No | NGPCodesTable_FR.RecId | PurchPurchaseOrderLineV2EntityPurchPurchaseOrderLineEntity |
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 line item. | RealWeight | No | PurchPurchaseOrderLineV2EntityPurchPurchaseOrderLineEntity |
Indexes (1)
FK_PurchLine_PurchLineForeignTradeCatReplacement keyPurchLineInventTransId,PurchLineDataAreaIdUnique, alternate key.
Relations (2)
Each relation joins PurchLineForeignTradeCategory to another table on the fields shown.
NGPCodesTable_FR→NGPCodesTable_FRJoin on
NGPCodesTable_FR = NGPCodesTable_FR.RecIdMany PurchLineForeignTradeCategory records → zero or one NGPCodesTable_FR record
PurchLine→PurchLineJoin on
PurchLineInventTransId = PurchLine.InventTransId,PurchLineDataAreaId = PurchLine.dataAreaIdZero or one PurchLineForeignTradeCategory record → exactly one PurchLine record
Get this data out
Tables are not exposed directly. These public entities read from PurchLineForeignTradeCategory; use one of them in Power BI, Power Platform or a data management project.
PurchPurchaseOrderLineV2Entity· 2 fields from this tablePurchPurchaseOrderLineEntity· 2 fields from this table
Need help with PurchLineForeignTradeCategory in a report, an integration or a migration? Talk to Dr Dynamics.