Table
PurchTableVersion
Purchase order versions
Stores version records for purchase orders. Each row ties one purchase order, in one company, to the date and time of a change. The key is the purchase order ID, its company and the version date and time.
- Table name
PurchTableVersion- Module
Procurement and sourcing- Table group
Transaction- Table type
Regular- Data per company
No- Configuration key
LogisticsBasic- Primary index
None- Replacement key
PurchVersionIdx- Key fields
PurchId, PurchIdDataAreaId, VersionDateTime- Model
Foundation
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PurchIdID of the purchase order that the version belongs to. | String (20)PurchIdBase | Yes | PurchTable.PurchId | None |
PurchIdDataAreaIdCompany (legal entity) of the purchase order. | StringDataAreaId | Yes | PurchTable.dataAreaId | None |
VersionDateTimeDate and time of the change that created this version. | UtcDateTimeVersioningTimeStamp | Yes | VRMPurchaseOrderConfirmationHeaderEntityVRMPurchaseOrderHeaderEntityVRMPurchaseOrderLineEntity | |
IsArchivedYes or No flag that shows whether the version is archived. | EnumVersioningIsVersionArchivedNoYes (enum) | No | VRMPurchaseOrderConfirmationHeaderEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProformaYes or No flag for a pro forma version. | EnumNoYes (enum) | 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 |
Indexes (1)
PurchVersionIdxReplacement keyPurchId,PurchIdDataAreaId,VersionDateTimeUnique, alternate key.
Relations (1)
Each relation joins PurchTableVersion to another table on the fields shown.
PurchaseOrder→PurchTableJoin on
PurchIdDataAreaId = PurchTable.dataAreaId,PurchId = PurchTable.PurchIdMany PurchTableVersion records → exactly one PurchTable record
Get this data out
Tables are not exposed directly. These public entities read from PurchTableVersion; use one of them in Power BI, Power Platform or a data management project.
VRMPurchaseOrderConfirmationHeaderEntity· 2 fields from this tableVRMPurchaseOrderHeaderEntity· 1 field from this tableVRMPurchaseOrderLineEntity· 1 field from this table
Need help with PurchTableVersion in a report, an integration or a migration? Talk to Dr Dynamics.