Table
PurchAgreementHeaderDefaultHistory
Purchase agreement confirmation history
Holds the default values stored for a purchase agreement confirmation history record. The key is the link to the agreement confirmation history. It has the same kind of defaults as the agreement header defaults, such as buyer group, pool, payment method and invoice account.
- Table name
PurchAgreementHeaderDefaultHistory- Module
Procurement and sourcing- Table group
TransactionHeader- Table type
Regular- Data per company
No- Configuration key
TradeBlanketOrder- Primary index
None- Replacement key
PurchAgreementHeaderHistoryIdx- Key fields
PurchaseAgreementHeaderHistory- Model
Foundation
Fields (19)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PurchaseAgreementHeaderHistorySystem record ID of the purchase agreement confirmation history record. | Int64RefRecId | Yes | PurchAgreementHeaderHistory.RecId | None |
BuyerGroupBuyer group that was used by default. | StringItemBuyerGroupId | No | InventBuyerGroup.Group | PurchPurchaseAgreementConfirmationHeaderEntity |
BuyerGroupDataAreaIdCompany of the buyer group record. | StringDataAreaId | No | InventBuyerGroup.dataAreaId | None |
MethodOfPaymentVendor method of payment that was used by default. | StringVendPaymMode | No | VendPaymModeSpec.PaymModeVendPaymModeTable.PaymMode | PurchPurchaseAgreementConfirmationHeaderEntity |
MethodOfPaymentDataAreaIdCompany of the method of payment record. | StringDataAreaId | No | VendPaymModeTable.dataAreaId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymentSpecificationPayment specification that was used by default. | StringVendPaymSpec | No | VendPaymModeSpec.Specification | PurchPurchaseAgreementConfirmationHeaderEntity |
PaymentSpecificationDataAreaIdCompany of the payment specification record. | StringDataAreaId | No | VendPaymModeSpec.dataAreaId | None |
PurchasePoolPurchase pool that was used by default. | StringPurchPoolId | No | PurchPool.PurchPoolId | PurchPurchaseAgreementConfirmationHeaderEntity |
PurchasePoolDataAreaIdCompany of the purchase pool record. | StringDataAreaId | No | PurchPool.dataAreaId | 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 | |
VendAccount_PSNVendor account for the bank account. Used for public sector. | String (20)VendAccount | No | VendBankAccount.VendAccount | None |
VendBankAccountDataAreaID_PSNCompany of the vendor bank account record. Used for public sector. | StringDataAreaId | No | VendBankAccount.dataAreaId | None |
VendBankAccountID_PSNIdentifier of the vendor bank account. Used for public sector. | StringBankAccountID | No | VendBankAccount.AccountID | PurchPurchaseAgreementConfirmationHeaderEntity |
VendorInvoiceAccountVendor account that invoices were sent to by default. | String (20)VendInvoiceAccount | No | VendTable.AccountNum | PurchPurchaseAgreementConfirmationHeaderEntityPurchPurchaseAgreementConfirmationLineEntity |
VendorInvoiceAccountDataAreaIdCompany of the invoice account record. | StringDataAreaId | No | VendTable.dataAreaId | None |
Indexes (6)
InventBuyerGroupIdxBuyerGroupDataAreaId,BuyerGroupNot unique.
PurchPoolIdxPurchasePoolDataAreaId,PurchasePoolNot unique.
DefaultVendorInvoiceAccountIdxVendorInvoiceAccountDataAreaId,VendorInvoiceAccountNot unique.
VendPaymModeTableIdxMethodOfPaymentDataAreaId,MethodOfPaymentNot unique.
VendPaymModeSpecIdxPaymentSpecificationDataAreaId,PaymentSpecification,MethodOfPaymentNot unique.
PurchAgreementHeaderHistoryIdxReplacement keyPurchaseAgreementHeaderHistoryUnique, alternate key.
Relations (7)
Each relation joins PurchAgreementHeaderDefaultHistory to another table on the fields shown.
InventBuyerGroup→InventBuyerGroupJoin on
BuyerGroupDataAreaId = InventBuyerGroup.dataAreaId,BuyerGroup = InventBuyerGroup.GroupMany PurchAgreementHeaderDefaultHistory records → zero or one InventBuyerGroup record
PurchAgreementHeaderHistory→PurchAgreementHeaderHistoryJoin on
PurchaseAgreementHeaderHistory = PurchAgreementHeaderHistory.RecIdZero or one PurchAgreementHeaderDefaultHistory record → exactly one PurchAgreementHeaderHistory record
PurchPool→PurchPoolJoin on
PurchasePoolDataAreaId = PurchPool.dataAreaId,PurchasePool = PurchPool.PurchPoolIdMany PurchAgreementHeaderDefaultHistory records → zero or one PurchPool record
VendBankAccount→VendBankAccountJoin on
VendBankAccountDataAreaID_PSN = VendBankAccount.dataAreaId,VendBankAccountID_PSN = VendBankAccount.AccountID,VendAccount_PSN = VendBankAccount.VendAccountMany PurchAgreementHeaderDefaultHistory records → exactly one VendBankAccount record
VendInvoiceAccount→VendTableJoin on
VendorInvoiceAccountDataAreaId = VendTable.dataAreaId,VendorInvoiceAccount = VendTable.AccountNumMany PurchAgreementHeaderDefaultHistory records → zero or one VendTable record
VendPaymMode→VendPaymModeTableJoin on
MethodOfPaymentDataAreaId = VendPaymModeTable.dataAreaId,MethodOfPayment = VendPaymModeTable.PaymModeMany PurchAgreementHeaderDefaultHistory records → zero or one VendPaymModeTable record
VendPaymModeSpec→VendPaymModeSpecJoin on
PaymentSpecificationDataAreaId = VendPaymModeSpec.dataAreaId,PaymentSpecification = VendPaymModeSpec.Specification,MethodOfPayment = VendPaymModeSpec.PaymModeMany PurchAgreementHeaderDefaultHistory records → zero or one VendPaymModeSpec record
Get this data out
Tables are not exposed directly. These public entities read from PurchAgreementHeaderDefaultHistory; use one of them in Power BI, Power Platform or a data management project.
PurchPurchaseAgreementConfirmationHeaderEntity· 6 fields from this tablePurchPurchaseAgreementConfirmationLineEntity· 1 field from this table
Need help with PurchAgreementHeaderDefaultHistory in a report, an integration or a migration? Talk to Dr Dynamics.