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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AgreementHeaderSystem record ID of the agreement this version belongs to.Int64
AgreementHeaderRecId
NoAgreementHeader.RecIdNone
ValidFromDate and time from which this version is valid.UtcDateTime
ValidFromDateTime
NoNone
ValidToDate and time until which this version is valid.UtcDateTime
ValidToDateTime
NoNone
AgreementClassificationSystem record ID of the agreement classification.Int64
RefRecId
YesAgreementClassification.RecIdPurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity
AgreementStatusStatus of the agreement: on hold, effective or closed.Enum
AgreementState (enum)
NoPurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity
ConfirmationNumberConfirmation number of the agreement version.String (20)
AgreementConfirmationNumber
NoPurchPurchaseAgreementConfirmationHeaderEntityPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationHeaderEntityand 1 more
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CurrencyCurrency code of the agreement, pointing to the currency record.String (3)
CurrencyCode
YesCurrency.CurrencyCodePurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity
DefaultAgreementLineEffectiveDateDefault effective date for the agreement lines.Date
EffectiveDate
NoPurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity
DefaultAgreementLineExpirationDateDefault expiration date for the agreement lines.Date
ExpirationDate
NoPurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity
DefaultAgreementLineTypeDefault commitment type for lines: product quantity, product value, product category value or value commitment.Enum
CommitmentType (enum)
NoPurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity
DefaultDimensionSystem record ID of the default financial dimension set.Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdPurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity
DocumentExternalReferenceExternal reference for the agreement document.String (60)
AgreementDocumentExternalReference
NoPurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity
DocumentTitleTitle of the agreement document.String (20)
AgreementDocumentTitle
NoPurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity
FinTagSystem record ID of the financial tag.Int64
FinTagRecId
NoFinTag.RecIdNone
InstanceRelationTypeNumber identifying the relation type of the record.low confidenceInt64
RelationType
NoNone
LanguageLanguage of the agreement, pointing to the language record.String (7)
LanguageId
NoLanguageTable.LanguageIdPurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity
OriginatorSystem record ID of the person who originated the agreement.Int64
RefRecId
NoDirPerson.RecIdPurchPurchaseAgreementConfirmationHeaderEntitySalesAgreementConfirmationHeaderEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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

Indexes (4)

Relations (7)

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

  • FinTag → FinTag

    Join on FinTag = FinTag.RecId

    Many AgreementHeaderHistory records → zero or one FinTag record

  • AgreementClassification → AgreementClassification

    Join on AgreementClassification = AgreementClassification.RecId

    Many AgreementHeaderHistory records → exactly one AgreementClassification record

  • AgreementHeader → AgreementHeader

    Join on AgreementHeader = AgreementHeader.RecId

    Many AgreementHeaderHistory records → exactly one AgreementHeader record

  • Currency → Currency

    Join on Currency = Currency.CurrencyCode

    Many AgreementHeaderHistory records → exactly one Currency record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many AgreementHeaderHistory records → zero or one DimensionAttributeValueSet record

  • LanguageTable → LanguageTable

    Join on Language = LanguageTable.LanguageId, LanguageTable.LabelFile = 1

    Many AgreementHeaderHistory records → zero or one LanguageTable record

  • Originator → DirPerson

    Join on Originator = DirPerson.RecId

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

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

Email sales@drdynamics.co.uk