Data entity
SalesOpenSalesLineDiscountJournalLineCDSEntity
Open sales line discount journal lines prepared for Dataverse integration. The key is the trade agreement journal number plus the line number. It adds the product number to the data of the open journal lines entity.
- Entity name
SalesOpenSalesLineDiscountJournalLineCDSEntity- Public entity name
CDSOpenSalesLineDiscountJournalLine- OData collection
CDSOpenSalesLineDiscountJournalLines- Category
Not set- Module
Sales and marketing- Read-only
No- Data management enabled
Yes- Configuration key
PriceDisc- Keys
TradeAgreementJournalNumber, LineNumber- Staging table
SalesOpenSalesLineDiscountJournalLineCDSStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/CDSOpenSalesLineDiscountJournalLines- Dataverse virtual table
mserp_salesopensaleslinediscountjournallinecdsentity. 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
SalesOpenSalesLineDiscountJournalLineEntity· rootInventDistinctProductExpanded· OuterJoin toSalesOpenSalesLineDiscountJournalLineEntity· read-only
Fields (26)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ProductNumberProduct number shown to users. It identifies the product. | String (70)EcoResProductDisplayProductNumber | No | Yes | EcoResProduct.DisplayProductNumber | |
CustomerAccountNumberCustomer account the journal line applies to. | String (20)CustAccount | No | Yes | None | |
DiscountAmountThe price or discount amount on the line, in the currency given on the line. | RealPriceDiscAmount | No | Yes | PriceDiscAdmTrans.Amount | |
DiscountApplicableFromDateDate from which the line is valid. | DateFromDate | No | Yes | PriceDiscAdmTrans.FromDate | |
DiscountApplicableToDateDate until which the line is valid. | DateToDate | No | Yes | PriceDiscAdmTrans.ToDate | |
DiscountCurrencyCodeCurrency code of the amount on the line. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | PriceDiscAdmTrans.Currency |
DiscountPercentage1First discount percentage. | RealDiscPct | No | Yes | PriceDiscAdmTrans.Percent1 | |
DiscountPercentage2Second discount percentage. | RealDiscPct | No | Yes | PriceDiscAdmTrans.Percent2 | |
DiscountSiteIdSite of the inventory. | StringInventSiteId | No | Yes | InventSite.SiteId | InventDim.InventSiteId |
DiscountWarehouseIdWarehouse of the inventory. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | InventDim.InventLocationId |
FromQuantityLower limit of the quantity or amount range for the line. | RealAmountQty | No | Yes | PriceDiscAdmTrans.QuantityAmountFrom | |
IsGenericCurrencySearchEnabledYes/No flag to include the generic currency. | EnumSalesGenericCurrency
| No | Yes | PriceDiscAdmTrans.GenericCurrency | |
LineDiscountCustomerGroupCodeCustomer price group the journal line applies to. | StringPriceGroupId | No | Yes | None | |
LineDiscountProductGroupCodeProduct price group the journal line applies to. | StringPriceGroupId | No | Yes | None | |
LineNumberPosition number of the line in the journal. | RealLineNum | No | Yes | PriceDiscAdmTrans.LineNum | |
ProcessingLogLog text for the line, up to 255 characters. | String (255)PriceJournalLogTrans | No | Yes | PriceDiscAdmTrans.Log | |
ProductColorIdColour of the product. | StringEcoResItemColorName | No | No (private) | EcoResColor.Name | InventDim.InventColorId |
ProductConfigurationIdConfiguration of the product. | String (50)EcoResItemConfigurationName | No | No (private) | EcoResConfiguration.Name | InventDim.configId |
ProductSizeIdSize of the product. | StringEcoResItemSizeName | No | No (private) | EcoResSize.Name | InventDim.InventSizeId |
ProductStyleIdStyle of the product. | StringEcoResItemStyleName | No | No (private) | EcoResStyle.Name | InventDim.InventStyleId |
ProductVersionIdVersion of the product. | StringEcoResItemVersionName | No | No (private) | EcoResVersion.Name | InventDim.InventVersionId |
QuantityUnitSymbolUnit of measure that the line uses. | StringUnitOfMeasureSymbol | No | Yes | UnitOfMeasure.Symbol | PriceDiscAdmTrans.UnitId |
ToQuantityUpper limit of the quantity or amount range for the line. | RealAmountQuantityTo | No | Yes | PriceDiscAdmTrans.QuantityAmountTo | |
TradeAgreementJournalNumberNumber of the trade agreement journal that holds this line. | String (20)PriceDiscJournalNum | No | Yes | PriceDiscAdmTable.JournalNum | PriceDiscAdmTrans.JournalNum |
WillSearchContinueYes/No flag labelled 'Find next'. | Enum
| No | Yes | PriceDiscAdmTrans.SearchAgain | |
ItemNumberItem the journal line applies to. | String (20)ItemId | No | No (private) | None |
Foreign keys (10)
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.
DiscountCurrencyCode→Currency.CurrencyCode(key of Currency)Many PriceDiscAdmTrans records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
DiscountSiteId→InventSite.SiteId(key of InventSite)Many InventDim records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
DiscountWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many InventDim records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
ProductColorId→EcoResColor.Name(key of EcoResColor)Many InventDim records → zero or one EcoResColor record
EcoResColor details: see EcoResProductColorV2Entity, EcoResProductColorEntity, EcoResProductColorGroupLineEntity
ProductConfigurationId→EcoResConfiguration.Name(key of EcoResConfiguration)Many InventDim records → zero or one EcoResConfiguration record
EcoResConfiguration details: see EcoResProductMasterConfigurationEntity, EcoResProductMasterConfigurationTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
ProductSizeId→EcoResSize.Name(key of EcoResSize)Many InventDim records → zero or one EcoResSize record
EcoResSize details: see EcoResProductSizeV2Entity, EcoResProductMasterSizeEntity, EcoResProductMasterSizeTranslationEntity
ProductStyleId→EcoResStyle.Name(key of EcoResStyle)Many InventDim records → zero or one EcoResStyle record
EcoResStyle details: see EcoResProductStyleV2Entity, EcoResProductMasterStyleEntity, EcoResProductMasterStyleTranslationEntity
ProductVersionId→EcoResVersion.Name(key of EcoResVersion)Many InventDim records → zero or one EcoResVersion record
EcoResVersion details: see EcoResProductMasterVersionEntity, EcoResProductMasterVersionTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
QuantityUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many PriceDiscAdmTrans records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
TradeAgreementJournalNumber→PriceDiscAdmTable.JournalNum(key of PriceDiscAdmTable)Many PriceDiscAdmTrans records → zero or one PriceDiscAdmTable record
PriceDiscAdmTable details: see GUPOpenTradeAgreementJournalEntity, TradeAgreementJournalHeaderEntity, TradeOpenTradeAgreementJournalHeaderV2Entity
Need help with SalesOpenSalesLineDiscountJournalLineCDSEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.