Table
AgreementHeaderHistory
Agreement history
Holds saved versions of an agreement header, each valid for a date and time range. It is keyed by agreement, valid-from and valid-to. It links to the classification, currency, language, dimensions, financial tag and originator, and carries a confirmation number.
- Table name
AgreementHeaderHistory- Module
Procurement and sourcing- Table group
TransactionHeader- Table type
Regular- Data per company
No- Configuration key
TradeBlanketOrder- Primary index
None- Replacement key
AgreementsValidity- Key fields
AgreementHeader, ValidFrom, ValidTo- Model
Foundation
Fields (23)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AgreementHeaderSystem record ID of the agreement this version belongs to. | Int64AgreementHeaderRecId | No | AgreementHeader.RecId | None |
ValidFromDate and time from which this version is valid. | UtcDateTimeValidFromDateTime | No | None | |
ValidToDate and time until which this version is valid. | UtcDateTimeValidToDateTime | No | None | |
AgreementClassificationSystem record ID of the agreement classification. | Int64RefRecId | Yes | AgreementClassification.RecId | PurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity |
AgreementStatusStatus of the agreement: on hold, effective or closed. | EnumAgreementState (enum) | No | PurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity | |
ConfirmationNumberConfirmation number of the agreement version. | String (20)AgreementConfirmationNumber | No | PurchPurchaseAgreementConfirmationHeaderEntityPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationHeaderEntityand 1 more | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CurrencyCurrency code of the agreement, pointing to the currency record. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | PurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity |
DefaultAgreementLineEffectiveDateDefault effective date for the agreement lines. | DateEffectiveDate | No | PurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity | |
DefaultAgreementLineExpirationDateDefault expiration date for the agreement lines. | DateExpirationDate | No | PurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity | |
DefaultAgreementLineTypeDefault commitment type for lines: product quantity, product value, product category value or value commitment. | EnumCommitmentType (enum) | No | PurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity | |
DefaultDimensionSystem record ID of the default financial dimension set. | Int64LedgerDefaultDimensionValueSet | No | DimensionAttributeValueSet.RecId | PurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity |
DocumentExternalReferenceExternal reference for the agreement document. | String (60)AgreementDocumentExternalReference | No | PurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity | |
DocumentTitleTitle of the agreement document. | String (20)AgreementDocumentTitle | No | PurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity | |
FinTagSystem record ID of the financial tag. | Int64FinTagRecId | No | FinTag.RecId | None |
InstanceRelationTypeNumber identifying the relation type of the record.low confidence | Int64RelationType | No | None | |
LanguageLanguage of the agreement, pointing to the language record. | String (7)LanguageId | No | LanguageTable.LanguageId | PurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity |
OriginatorSystem record ID of the person who originated the agreement. | Int64RefRecId | No | DirPerson.RecId | PurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity |
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 |
Indexes (4)
AgreementClassificationIdxNot unique.
OriginatorIdxNot unique.
AgreementsValidityReplacement keyAgreementHeader,ValidFrom,ValidToUnique, alternate key.
CurrencyIdxNot unique.
Relations (7)
Each relation joins AgreementHeaderHistory to another table on the fields shown.
FinTag→FinTagJoin on
FinTag = FinTag.RecIdMany AgreementHeaderHistory records → zero or one FinTag record
AgreementClassification→AgreementClassificationJoin on
AgreementClassification = AgreementClassification.RecIdMany AgreementHeaderHistory records → exactly one AgreementClassification record
AgreementHeader→AgreementHeaderJoin on
AgreementHeader = AgreementHeader.RecIdMany AgreementHeaderHistory records → exactly one AgreementHeader record
Currency→CurrencyJoin on
Currency = Currency.CurrencyCodeMany AgreementHeaderHistory records → exactly one Currency record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany AgreementHeaderHistory records → zero or one DimensionAttributeValueSet record
LanguageTable→LanguageTableJoin on
Language = LanguageTable.LanguageId,LanguageTable.LabelFile = 1Many AgreementHeaderHistory records → zero or one LanguageTable record
Originator→DirPersonJoin on
Originator = DirPerson.RecIdMany AgreementHeaderHistory records → exactly one DirPerson record
Get this data out
Tables are not exposed directly. These public entities read from AgreementHeaderHistory; use one of them in Power BI, Power Platform or a data management project.
PurchPurchaseAgreementConfirmationHeaderEntity· 12 fields from this tablePurchPurchaseAgreementConfirmationLineEntity· 1 field from this tableSalesAgreementConfirmationHeaderEntity· 12 fields from this tableSalesAgreementConfirmationLineEntity· 1 field from this table
Need help with AgreementHeaderHistory in a report, an integration or a migration? Talk to Dr Dynamics.