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 descriptionType / EDT / enumMandatoryReferencesIn public entities
PurchaseAgreementHeaderHistorySystem record ID of the purchase agreement confirmation history record.Int64
RefRecId
YesPurchAgreementHeaderHistory.RecIdNone
BuyerGroupBuyer group that was used by default.String
ItemBuyerGroupId
NoInventBuyerGroup.GroupPurchPurchaseAgreementConfirmationHeaderEntity
BuyerGroupDataAreaIdCompany of the buyer group record.String
DataAreaId
NoInventBuyerGroup.dataAreaIdNone
MethodOfPaymentVendor method of payment that was used by default.String
VendPaymMode
NoVendPaymModeSpec.PaymModeVendPaymModeTable.PaymModePurchPurchaseAgreementConfirmationHeaderEntity
MethodOfPaymentDataAreaIdCompany of the method of payment record.String
DataAreaId
NoVendPaymModeTable.dataAreaIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentSpecificationPayment specification that was used by default.String
VendPaymSpec
NoVendPaymModeSpec.SpecificationPurchPurchaseAgreementConfirmationHeaderEntity
PaymentSpecificationDataAreaIdCompany of the payment specification record.String
DataAreaId
NoVendPaymModeSpec.dataAreaIdNone
PurchasePoolPurchase pool that was used by default.String
PurchPoolId
NoPurchPool.PurchPoolIdPurchPurchaseAgreementConfirmationHeaderEntity
PurchasePoolDataAreaIdCompany of the purchase pool record.String
DataAreaId
NoPurchPool.dataAreaIdNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
VendAccount_PSNVendor account for the bank account. Used for public sector.String (20)
VendAccount
NoVendBankAccount.VendAccountNone
VendBankAccountDataAreaID_PSNCompany of the vendor bank account record. Used for public sector.String
DataAreaId
NoVendBankAccount.dataAreaIdNone
VendBankAccountID_PSNIdentifier of the vendor bank account. Used for public sector.String
BankAccountID
NoVendBankAccount.AccountIDPurchPurchaseAgreementConfirmationHeaderEntity
VendorInvoiceAccountVendor account that invoices were sent to by default.String (20)
VendInvoiceAccount
NoVendTable.AccountNumPurchPurchaseAgreementConfirmationHeaderEntityPurchPurchaseAgreementConfirmationLineEntity
VendorInvoiceAccountDataAreaIdCompany of the invoice account record.String
DataAreaId
NoVendTable.dataAreaIdNone

Indexes (6)

Relations (7)

Each relation joins PurchAgreementHeaderDefaultHistory to another table on the fields shown.

  • InventBuyerGroup → InventBuyerGroup

    Join on BuyerGroupDataAreaId = InventBuyerGroup.dataAreaId, BuyerGroup = InventBuyerGroup.Group

    Many PurchAgreementHeaderDefaultHistory records → zero or one InventBuyerGroup record

  • PurchAgreementHeaderHistory → PurchAgreementHeaderHistory

    Join on PurchaseAgreementHeaderHistory = PurchAgreementHeaderHistory.RecId

    Zero or one PurchAgreementHeaderDefaultHistory record → exactly one PurchAgreementHeaderHistory record

  • PurchPool → PurchPool

    Join on PurchasePoolDataAreaId = PurchPool.dataAreaId, PurchasePool = PurchPool.PurchPoolId

    Many PurchAgreementHeaderDefaultHistory records → zero or one PurchPool record

  • VendBankAccount → VendBankAccount

    Join on VendBankAccountDataAreaID_PSN = VendBankAccount.dataAreaId, VendBankAccountID_PSN = VendBankAccount.AccountID, VendAccount_PSN = VendBankAccount.VendAccount

    Many PurchAgreementHeaderDefaultHistory records → exactly one VendBankAccount record

  • VendInvoiceAccount → VendTable

    Join on VendorInvoiceAccountDataAreaId = VendTable.dataAreaId, VendorInvoiceAccount = VendTable.AccountNum

    Many PurchAgreementHeaderDefaultHistory records → zero or one VendTable record

  • VendPaymMode → VendPaymModeTable

    Join on MethodOfPaymentDataAreaId = VendPaymModeTable.dataAreaId, MethodOfPayment = VendPaymModeTable.PaymMode

    Many PurchAgreementHeaderDefaultHistory records → zero or one VendPaymModeTable record

  • VendPaymModeSpec → VendPaymModeSpec

    Join on PaymentSpecificationDataAreaId = VendPaymModeSpec.dataAreaId, PaymentSpecification = VendPaymModeSpec.Specification, MethodOfPayment = VendPaymModeSpec.PaymMode

    Many 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.

Need help with PurchAgreementHeaderDefaultHistory in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk