Table

AgreementLineHistory

Agreement line history

Holds saved versions of an agreement line, each valid for a date and time range. It is keyed by agreement line, valid-from and valid-to. It records the commitment type, the item or category, release limits, discount and dimensions.

Table name
AgreementLineHistory
Module
Procurement and sourcing
Table group
TransactionLine
Table type
Regular
Data per company
No
Configuration key
TradeBlanketOrder
Primary index
None
Replacement key
AgreementLineValidFromIdx
Key fields
AgreementLine, ValidFrom, ValidTo
Model
Foundation

Fields (28)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AgreementLineSystem record ID of the agreement line this version belongs to.Int64
AgreementLineRecId
YesAgreementLine.RecIdPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity
ValidFromDate and time from which this version is valid.UtcDateTime
ValidFromDateTime
NoNone
ValidToDate and time until which this version is valid.UtcDateTime
ValidToDateTime
NoNone
AgreedReleaseLineMaxAmountLargest amount allowed for a release against this line.Real
AgreementMaximumReleaseAmount
NoPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity
AgreedReleaseLineMinAmountSmallest amount allowed for a release against this line.Real
AgreementMinimumReleaseAmount
NoPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity
AgreementLineProductShows whether the line is for an item or for a category.Enum
AgreementLineProduct (enum)
NoNone
AgreementLineTypeCommitment type of the line: product quantity, product value, product category value or value commitment.Enum
CommitmentType (enum)
NoPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity
CategorySystem record ID of the product category.Int64
RefRecId
NoEcoResCategory.RecIdPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity
DefaultDimensionSystem record ID of the default financial dimension set.Int64
DimensionDefault
NoDimensionAttributeValueSet.RecIdPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity
EffectiveDateDate from which the line is effective.Date
EffectiveDate
NoPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity
ExpirationDateDate on which the line expires.Date
ExpirationDate
NoPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity
FinTagSystem record ID of the financial tag.Int64
FinTagRecId
NoFinTag.RecIdNone
InstanceRelationTypeNumber identifying the relation type of the record.low confidenceInt64
RelationType
NoNone
InventDimDataAreaIdCompany of the related inventory dimension record.String
DataAreaId
YesInventDim.dataAreaIdNone
InventDimIdInventory dimension number, pointing to the inventory dimension record.String (20)
InventDimId
NoInventDim.inventDimIdNone
IsMaxEnforcedYes/no flag showing whether the maximum is enforced.Enum
IsMaxEnforced
NoYes (enum)
NoPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity
IsPriceInformationMandatoryYes/no flag showing whether price and discount are fixed.Enum
IsPriceInfoMandatory
NoYes (enum)
NoPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity
ItemDataAreaIdCompany of the related item record.String
DataAreaId
YesInventTable.dataAreaIdNone
ItemIdItem number, pointing to the item record.String (20)
ItemId
NoInventTable.ItemIdPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity
LineDiscountPercentDiscount percentage for the line.Real
AgreementDiscPercent
NoPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity
LineNumberLine number of the agreement line.Real
LineNum
YesPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProjectDataAreaIdCompany of the related project record.String
DataAreaId
NoProjTable.dataAreaIdNone
ProjectProjIdProject ID, pointing to the project record.String (20)
ProjId
NoProjTable.ProjIdPurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity
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 (5)

Relations (7)

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

  • FinTag → FinTag

    Join on FinTag = FinTag.RecId

    Many AgreementLineHistory records → zero or one FinTag record

  • AgreementLine → AgreementLine

    Join on AgreementLine = AgreementLine.RecId

    Many AgreementLineHistory records → exactly one AgreementLine record

  • Category → EcoResCategory

    Join on Category = EcoResCategory.RecId

    Many AgreementLineHistory records → zero or one EcoResCategory record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many AgreementLineHistory records → zero or one DimensionAttributeValueSet record

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId, InventDimDataAreaId = InventDim.dataAreaId

    Many AgreementLineHistory records → exactly one InventDim record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId, ItemDataAreaId = InventTable.dataAreaId

    Many AgreementLineHistory records → zero or one InventTable record

  • ProjTable → ProjTable

    Join on ProjectDataAreaId = ProjTable.dataAreaId, ProjectProjId = ProjTable.ProjId

    Many AgreementLineHistory records → zero or one ProjTable record

Get this data out

Tables are not exposed directly. These public entities read from AgreementLineHistory; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk