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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AgreementLineSystem record ID of the agreement line this version belongs to. | Int64AgreementLineRecId | Yes | AgreementLine.RecId | PurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity |
ValidFromDate and time from which this version is valid. | UtcDateTimeValidFromDateTime | No | None | |
ValidToDate and time until which this version is valid. | UtcDateTimeValidToDateTime | No | None | |
AgreedReleaseLineMaxAmountLargest amount allowed for a release against this line. | RealAgreementMaximumReleaseAmount | No | PurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity | |
AgreedReleaseLineMinAmountSmallest amount allowed for a release against this line. | RealAgreementMinimumReleaseAmount | No | PurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity | |
AgreementLineProductShows whether the line is for an item or for a category. | EnumAgreementLineProduct (enum) | No | None | |
AgreementLineTypeCommitment type of the line: product quantity, product value, product category value or value commitment. | EnumCommitmentType (enum) | No | PurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity | |
CategorySystem record ID of the product category. | Int64RefRecId | No | EcoResCategory.RecId | PurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity |
DefaultDimensionSystem record ID of the default financial dimension set. | Int64DimensionDefault | No | DimensionAttributeValueSet.RecId | PurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity |
EffectiveDateDate from which the line is effective. | DateEffectiveDate | No | PurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity | |
ExpirationDateDate on which the line expires. | DateExpirationDate | No | PurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity | |
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 | |
InventDimDataAreaIdCompany of the related inventory dimension record. | StringDataAreaId | Yes | InventDim.dataAreaId | None |
InventDimIdInventory dimension number, pointing to the inventory dimension record. | String (20)InventDimId | No | InventDim.inventDimId | None |
IsMaxEnforcedYes/no flag showing whether the maximum is enforced. | EnumIsMaxEnforcedNoYes (enum) | No | PurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity | |
IsPriceInformationMandatoryYes/no flag showing whether price and discount are fixed. | EnumIsPriceInfoMandatoryNoYes (enum) | No | PurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity | |
ItemDataAreaIdCompany of the related item record. | StringDataAreaId | Yes | InventTable.dataAreaId | None |
ItemIdItem number, pointing to the item record. | String (20)ItemId | No | InventTable.ItemId | PurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity |
LineDiscountPercentDiscount percentage for the line. | RealAgreementDiscPercent | No | PurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity | |
LineNumberLine number of the agreement line. | RealLineNum | Yes | PurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProjectDataAreaIdCompany of the related project record. | StringDataAreaId | No | ProjTable.dataAreaId | None |
ProjectProjIdProject ID, pointing to the project record. | String (20)ProjId | No | ProjTable.ProjId | PurchPurchaseAgreementConfirmationLineEntitySalesAgreementConfirmationLineEntity |
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 (5)
EcoResCategoryIdxNot unique.
InventTableIdxNot unique.
InventDimIdxInventDimId,InventDimDataAreaIdNot unique.
AgreementLineValidFromIdxReplacement keyAgreementLine,ValidFrom,ValidToUnique, alternate key.
ProjTableIdxProjectProjId,ProjectDataAreaIdNot unique.
Relations (7)
Each relation joins AgreementLineHistory to another table on the fields shown.
FinTag→FinTagJoin on
FinTag = FinTag.RecIdMany AgreementLineHistory records → zero or one FinTag record
AgreementLine→AgreementLineJoin on
AgreementLine = AgreementLine.RecIdMany AgreementLineHistory records → exactly one AgreementLine record
Category→EcoResCategoryJoin on
Category = EcoResCategory.RecIdMany AgreementLineHistory records → zero or one EcoResCategory record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany AgreementLineHistory records → zero or one DimensionAttributeValueSet record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimId,InventDimDataAreaId = InventDim.dataAreaIdMany AgreementLineHistory records → exactly one InventDim record
InventTable→InventTableJoin on
ItemId = InventTable.ItemId,ItemDataAreaId = InventTable.dataAreaIdMany AgreementLineHistory records → zero or one InventTable record
ProjTable→ProjTableJoin on
ProjectDataAreaId = ProjTable.dataAreaId,ProjectProjId = ProjTable.ProjIdMany 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.
PurchPurchaseAgreementConfirmationLineEntity· 14 fields from this tableSalesAgreementConfirmationLineEntity· 14 fields from this table
Need help with AgreementLineHistory in a report, an integration or a migration? Talk to Dr Dynamics.