Data entity

SalesLineDiscountAgreementEntity

Holds line discount agreements for sales, taken from price agreement records and keyed by record ID. Each agreement can apply to a customer or customer price group and to an item or product price group. It sets the discount percentages, quantity range, unit, currency, dates and inventory dimensions.

Entity name
SalesLineDiscountAgreementEntity
Public entity name
SalesLineDiscountAgreement
OData collection
SalesLineDiscountAgreements
Category
Not set
Module
Sales and marketing
Read-only
No
Data management enabled
Yes
Configuration key
PriceDisc
Keys
RecordId
Staging table
SalesLineDiscountAgreementStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/SalesLineDiscountAgreements
Dataverse virtual table
mserp_saleslinediscountagreemententity. 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

  • PriceDiscTable · root
  • InventDim · OuterJoin to PriceDiscTable · read-only
  • InventDistinctProductExpanded · OuterJoin to PriceDiscTable · read-only

Fields (29)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
AccountCodeSays whether the agreement applies to one account, a group of accounts or all accounts.Enum
PriceDiscPartyCode
PriceDiscPartyCodeType
  • Table 0
  • GroupId 1
  • All 2
NoNo (private)PriceDiscTable.AccountCode
AccountRelationThe customer or vendor account, or the group, that the agreement applies to.String (20)
PriceDiscAccountRelation
NoNo (private)CustTable.AccountNumVendTable.AccountNumPriceDiscTable.AccountRelation
DiscountAmountThe price or discount amount, in the transaction currency.Real
PriceDiscAmount
NoYesPriceDiscTable.Amount
DiscountCurrencyCodeCurrency code of the amount.String (3)
CurrencyCode
YesYesCurrency.CurrencyCodePriceDiscTable.Currency
DiscountApplicableFromDateDate from which the agreement is valid.Date
FromDate
NoYesPriceDiscTable.FromDate
IsGenericCurrencySearchEnabledYes/No flag to include the generic currency.Enum
SalesGenericCurrency
NoYes

Platform enum: values not in the metadata extract.

NoYesPriceDiscTable.GenericCurrency
InventDimIdUnique number for this combination of dimensions.String (20)
InventDimId
NoNo (private)InventDim.inventDimId
ItemCodeSays whether the agreement applies to one item, an item group or all items.Enum
PriceDiscProductCode
PriceDiscProductCodeType
  • Table 0
  • GroupId 1
  • All 2
NoNo (private)PriceDiscTable.ItemCode
ItemRelationThe item, or the item group, that the agreement applies to.String (20)
PriceDiscItemRelation
NoNo (private)InventTable.ItemIdPriceDiscTable.ItemRelation
DiscountPercentage1First discount percentage.Real
DiscPct
NoYesPriceDiscTable.Percent1
DiscountPercentage2Second discount percentage.Real
DiscPct
NoYesPriceDiscTable.Percent2
FromQuantityLower limit of the quantity or amount range.Real
AmountQty
NoYesPriceDiscTable.QuantityAmountFrom
ToQuantityUpper limit of the quantity or amount range.Real
AmountQuantityTo
NoYesPriceDiscTable.QuantityAmountTo
WillSearchContinueYes/No flag labelled 'Find next'.Enum
SearchAgain
NoYes

Platform enum: values not in the metadata extract.

NoYesPriceDiscTable.SearchAgain
DiscountApplicableToDateDate until which the agreement is valid.Date
ToDate
NoYesPriceDiscTable.ToDate
QuantityUnitSymbolUnit of measure that the agreement uses.String
UnitOfMeasureSymbol
NoYesUnitOfMeasure.SymbolPriceDiscTable.UnitId
RecordIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesPriceDiscTable.RecId
CustomerAccountNumberCustomer account the discount agreement applies to.String (20)
CustAccount
NoYescomputed
LineDiscountCustomerGroupCodeCustomer price group the discount agreement applies to.String
PriceGroupId
NoYescomputed
ItemNumberItem the discount agreement applies to.String (20)
ItemId
NoYescomputed
LineDiscountProductGroupCodeProduct price group the discount agreement applies to.String
PriceGroupId
NoYescomputed
ProductConfigurationIdConfiguration of the product.String (50)
EcoResItemConfigurationName
NoYesEcoResConfiguration.NameInventDim.configId
ProductColorIdColour of the product.String
EcoResItemColorName
NoYesEcoResColor.NameInventDim.InventColorId
ProductSizeIdSize of the product.String
EcoResItemSizeName
NoYesEcoResSize.NameInventDim.InventSizeId
ProductStyleIdStyle of the product.String
EcoResItemStyleName
NoYesEcoResStyle.NameInventDim.InventStyleId
ProductVersionIdVersion of the product.String
EcoResItemVersionName
NoYesEcoResVersion.NameInventDim.InventVersionId
DiscountSiteIdSite of the inventory.String
InventSiteId
NoYesInventSite.SiteIdInventDim.InventSiteId
DiscountWarehouseIdWarehouse of the inventory.String
InventLocationId
NoYesInventLocation.InventLocationIdInventDim.InventLocationId
ProductNumberProduct number shown to users. It identifies the product.String (70)
EcoResProductDisplayProductNumber
NoYesEcoResProduct.DisplayProductNumber

Foreign keys (12)

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 SalesLineDiscountAgreementEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk