Data entity

SalesAgreementLineEntity

Holds the lines of sales agreements, keyed by sales agreement ID and line number. Each line sets a commitment type for an item or procurement category. It shows committed quantity or amount, price, discount, release limits and validity dates.

Entity name
SalesAgreementLineEntity
Public entity name
SalesAgreementLine
OData collection
SalesAgreementLines
Category
Document
Module
Sales and marketing
Read-only
No
Data management enabled
Yes
Configuration key
TradeBlanketOrder
Keys
SalesAgreementId, LineNumber
Staging table
SalesAgreementLineStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/SalesAgreementLines
Dataverse virtual table
mserp_salesagreementlineentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Enabled: you can use it in import and export projects.

Data sources

  • AgreementLine · root
  • SalesAgreementHeader · InnerJoin to AgreementLine · read-only
  • CompanyInfo · InnerJoin to SalesAgreementHeader · read-only
  • SalesAgreementHeaderDefault · OuterJoin to SalesAgreementHeader
  • AgreementLineDefault · OuterJoin to AgreementLine
  • DefaultLedgerDimensionDAVS (table DimensionSetEntity) · OuterJoin to AgreementLine · read-only
  • EcoResCategory_SalesCategory (table EcoResCategory) · OuterJoin to AgreementLine · read-only
  • EcoResCategory_PCClass (table PCClass) · Derived to EcoResCategory_SalesCategory
  • InventDim · OuterJoin to AgreementLine · read-only
  • AgreementLine_AgreementLineQuantityCommitment (table AgreementLineQuantityCommitment) · Derived to AgreementLine
  • AgreementLine_AgreementLineVolumeCommitment (table AgreementLineVolumeCommitment) · Derived to AgreementLine

Fields (42)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
SalesAgreementRecIdAgreement header the line belongs to.Int64
AgreementHeaderRecId
YesNo (private)AgreementHeader.RecIdAgreementLine.Agreement
SalesAgreementLegalEntityIdCompany ID of the legal entity. It is the key.String
SelectableDataArea
YesYesCompanyInfo.DataArea
SalesAgreementIdID of the sales agreement.String (20)
SalesAgreementId
YesYesSalesAgreementHeader.SalesNumberSequence
LineNumberLine number within the agreement.Real
AgreementLineNum_PSN
YesYesAgreementLine.LineNumber
CommitmentTypeCommitment type of the line, such as quantity or value.Enum
CommitmentType
  • ProductQuantity 0
  • ProductVolume 1
  • ProductCategory 2
  • ProductRootCategory 3
NoYesAgreementLine.AgreementLineType
ItemNumberItem number of the line.String (20)
ItemId
NoYesInventTable.ItemIdAgreementLine.ItemId
SalesProductCategoryRecIdProcurement category of the line.Int64
RefRecId
NoNo (private)EcoResCategory.RecIdAgreementLine.Category
SalesProductCategoryNameName of the category.String (254)
EcoResCategoryName
NoYesEcoResCategory.Name
ProductSizeIdSize of the product.String
EcoResItemSizeName
NoYesEcoResSize.NameInventDim.InventSizeId
ProductColorIdColour of the product.String
EcoResItemColorName
NoYesEcoResColor.NameInventDim.InventColorId
ProductConfigurationIdConfiguration of the product.String (50)
EcoResItemConfigurationName
NoYesEcoResConfiguration.NameInventDim.configId
ProductStyleIdStyle of the product.String
EcoResItemStyleName
NoYesEcoResStyle.NameInventDim.InventStyleId
ProductVersionIdVersion of the product.String
EcoResItemVersionName
NoYesEcoResVersion.NameInventDim.InventVersionId
ShippingSiteIdSite of the inventory.String
InventSiteId
NoYesInventSite.SiteIdInventDim.InventSiteId
ShippingWarehouseIdWarehouse of the inventory.String
InventLocationId
NoYesInventLocation.InventLocationIdInventDim.InventLocationId
InventoryProfileIdInventory profile; used for Russia.String
InventProfileId_RU
NoYesInventProfile_RU.InventProfileIdInventDim.InventProfileId_RU
CommittedCatchWeightQuantityCommitted quantity in catch weight units.Real
PdsCWCommitedQuantity
NoYesAgreementLineQuantityCommitment.PdsCWCommitedQuantity
CommittedQuantityQuantity committed on the agreement line.Real
AgreementCommitedQuantity
NoYesAgreementLineQuantityCommitment.CommitedQuantity
UnitSymbolUnit of measure symbol for the committed quantity. It points to a record in the units table.String
UnitOfMeasureSymbol
NoYesUnitOfMeasure.SymbolAgreementLineQuantityCommitment.ProductUnitOfMeasure
CommittedAmountMoney amount committed on the agreement line.Real
AgreementCommitedMonetaryAmount
NoYesAgreementLineVolumeCommitment.CommitedAmount
PriceAgreed price for one price unit on the line.Real
AgreementPricePerUnit
NoYesAgreementLineQuantityCommitment.PricePerUnit
PriceQuantityNumber of units that the unit price applies to.Real
PriceUnit
NoYesAgreementLineQuantityCommitment.PriceUnit
LineDiscountPercentageDiscount percentage for the line.Real
AgreementDiscPercent
NoYesAgreementLine.LineDiscountPercent
LineDiscountAmountDiscount amount given per unit on the line.Real
UnitDiscountAmountCur
NoYesAgreementLineQuantityCommitment.LineDiscountAmount
IsPriceAndDiscountFixedYes/no flag showing price and discount are fixed.Enum
IsPriceInfoMandatory
NoYes

Platform enum: values not in the metadata extract.

NoYesAgreementLine.IsPriceInformationMandatory
EffectiveDateDate the line becomes effective.Date
EffectiveDate
NoYesAgreementLine.EffectiveDate
ExpirationDateDate the line expires.Date
ExpirationDate
NoYesAgreementLine.ExpirationDate
IsCommitmentMaximumEnforcedYes/no flag showing the maximum is enforced.Enum
IsMaxEnforced
NoYes

Platform enum: values not in the metadata extract.

NoYesAgreementLine.IsMaxEnforced
MinimumReleaseAmountSmallest amount allowed for one release.Real
AgreementMinimumReleaseAmount
NoYesAgreementLine.AgreedReleaseLineMinAmount
MaximumReleaseAmountLargest amount allowed for one release.Real
AgreementMaximumReleaseAmount
NoYesAgreementLine.AgreedReleaseLineMaxAmount
DefaultLedgerDimensionDefault financial dimension values for the line.Int64
LedgerDefaultDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdAgreementLine.DefaultDimension
DefaultLedgerDimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
ProjectIdProject ID linked to the line.String (20)
ProjId
NoYesProjTable.ProjIdAgreementLine.ProjectProjId
ProjectActivityNumberActivity number for the project, pointing to the activity record.String (50)
ProjActivityNumber
NoYessmmActivities.ActivityNumberAgreementLineDefault.ProjectActivityNumber
ProjectCategoryIdProject category, pointing to the project category record.String (30)
ProjCategoryId
NoYesProjCategory.CategoryIdAgreementLineDefault.ProjectCategory
CommissionSalesRepresentativeGroupIdSales commission group, pointing to the commission sales group record.String
CommissSalesGroup
NoYesCommissionSalesGroup.GroupIdAgreementLineDefault.SalesCommissionGroup
DeliveryModeCodeMode of delivery for sales, pointing to the delivery mode record.String
DlvModeId
NoYesDlvMode.CodeAgreementLineDefault.SalesModeOfDelivery
WillRebateCalculationExcludeLineYes/no flag showing whether the line is left out of rebates.Enum
PdsExcludeFromRebate
NoYes

Platform enum: values not in the metadata extract.

NoYesAgreementLineDefault.PdsExcludeFromRebate
AgreementCustomerAccountNumberCustomer account that the agreement is for.String (20)
CustAccount
NoYesCustTable.AccountNumSalesAgreementHeader.CustAccount
InvoiceCustomerAccountNumberCustomer account to invoice by default.String (20)
CustInvoiceAccount
NoYesCustTable.AccountNumSalesAgreementHeaderDefault.CustomerInvoiceAccount
KittingBOMIdBill of materials (BOM) ID used for kitting.String (20)
KittingBOMId
NoYesAgreementLine.KittingBOMId
KittingInventTransIdKit ID linked to the line.String (20)
KittingInventTransId
NoYesAgreementLine.KittingInventTransId

Foreign keys (20)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

Need help with SalesAgreementLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk