Data entity
PurchasePriceAgreementEntity
Holds purchase price agreements, which are price agreement records for items. Each record has a vendor or vendor price group, and an item. It also has price, price unit, currency, lead time, dates and inventory dimensions such as site and warehouse. The key is the record ID.
- Entity name
PurchasePriceAgreementEntity- Public entity name
PurchasePriceAgreement- OData collection
PurchasePriceAgreements- Category
Not set- Module
Procurement and sourcing- Read-only
No- Data management enabled
Yes- Configuration key
PriceDisc- Keys
RecordId- Staging table
PurchasePriceAgreementStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/PurchasePriceAgreements- Dataverse virtual table
mserp_purchasepriceagreemententity. 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· rootInventDim· OuterJoin toPriceDiscTable· read-onlyInventDistinctProductExpanded· OuterJoin toPriceDiscTable· read-only
Fields (33)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AccountCodeSays whether the agreement applies to one account, a group of accounts or all accounts. | EnumPriceDiscPartyCode
| No | No (private) | PriceDiscTable.AccountCode | |
AccountRelationThe customer or vendor account, or the group, that the agreement applies to. | String (20)PriceDiscAccountRelation | No | No (private) | CustTable.AccountNumVendTable.AccountNum | PriceDiscTable.AccountRelation |
PriceThe price or discount amount, in the transaction currency. | RealPriceDiscAmount | No | Yes | PriceDiscTable.Amount | |
IsProcurementLeadTimeUsingWorkingDaysYes/No flag linked to the working-days setting for the lead time.low confidence | EnumCalendarDays
| No | Yes | PriceDiscTable.CalendarDays | |
PriceCurrencyCodeCurrency code of the amount. | String (3)CurrencyCode | Yes | Yes | Currency.CurrencyCode | PriceDiscTable.Currency |
ProcurementLeadTimeDaysLead time of the agreement, as a whole number. | IntegerLeadTimeDelivery | No | Yes | PriceDiscTable.DeliveryTime | |
WillDeliveryDateControlDisregardLeadTimeYes/No flag to ignore the lead time for this agreement. | EnumDisregardLeadTime
| No | Yes | PriceDiscTable.DisregardLeadTime | |
PriceApplicableFromDateDate from which the agreement is valid. | DateFromDate | No | Yes | PriceDiscTable.FromDate | |
InventDimIdUnique number for this combination of dimensions. | String (20)InventDimId | No | No (private) | InventDim.inventDimId | |
ItemRelationThe item, or the item group, that the agreement applies to. | String (20)PriceDiscItemRelation | No | No (private) | InventTable.ItemId | PriceDiscTable.ItemRelation |
FixedPriceChargesCharges added to the price. | RealPriceMarkup | No | Yes | PriceDiscTable.Markup | |
AttributeBasedPricingIdPoints to the calculation used for attribute-based pricing. | StringPDSCalculationId | No | Yes | PDSCalculationTable.CalculationId | PriceDiscTable.PDSCalculationId |
PurchasePriceQuantityThe quantity that the price refers to. | RealPriceUnit | No | Yes | PriceDiscTable.PriceUnit | |
FromQuantityLower limit of the quantity or amount range. | RealAmountQty | No | Yes | PriceDiscTable.QuantityAmountFrom | |
ToQuantityUpper limit of the quantity or amount range. | RealAmountQuantityTo | No | Yes | PriceDiscTable.QuantityAmountTo | |
WillSearchContinueYes/No flag labelled 'Find next'. | EnumSearchAgain
| No | Yes | PriceDiscTable.SearchAgain | |
ModuleSays whether the agreement is for inventory, customers or vendors. | EnumPriceDiscModule
| No | Yes | PriceDiscTable.Module | |
ItemCodeSays whether the agreement applies to one item, an item group or all items. | EnumPriceDiscProductCode
| No | No (private) | PriceDiscTable.ItemCode | |
RecordIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | PriceDiscTable.RecId | |
ProductConfigurationIdConfiguration of the product. | String (50)EcoResItemConfigurationName | No | Yes | EcoResConfiguration.Name | InventDim.configId |
ProductColorIdColour of the product. | StringEcoResItemColorName | No | Yes | EcoResColor.Name | InventDim.InventColorId |
ProductSizeIdSize of the product. | StringEcoResItemSizeName | No | Yes | EcoResSize.Name | InventDim.InventSizeId |
ProductStyleIdStyle of the product. | StringEcoResItemStyleName | No | Yes | EcoResStyle.Name | InventDim.InventStyleId |
ProductVersionIdVersion of the product. | StringEcoResItemVersionName | No | Yes | EcoResVersion.Name | InventDim.InventVersionId |
PriceSiteIdSite of the inventory. | StringInventSiteId | No | Yes | InventSite.SiteId | InventDim.InventSiteId |
PriceWarehouseIdWarehouse of the inventory. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | InventDim.InventLocationId |
VendorAccountNumberAccount number of the vendor the price agreement applies to. | String (20)VendAccount | No | Yes | computed | |
PriceVendorGroupCodeCode of the price group for vendors that the price applies to. | StringPriceGroupId | No | Yes | computed | |
ItemNumberNumber of the item the price agreement is for. | String (20)ItemId | No | Yes | computed | |
RelationKind of agreement: purchase or sales price, line, multiline or total discount, or postage discount. | Enum
| No | Yes | PriceDiscTable.relation | |
ProductNumberProduct number shown to users. It identifies the product. | String (70)EcoResProductDisplayProductNumber | Yes | Yes | EcoResProduct.DisplayProductNumber | |
QuantityUnitSymbolUnit of measure that the agreement uses. | StringUnitOfMeasureSymbol | No | Yes | UnitOfMeasure.Symbol | PriceDiscTable.UnitId |
PriceApplicableToDateDate until which the agreement is valid. | DateToDate | No | Yes | PriceDiscTable.ToDate |
Foreign keys (13)
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.
AccountRelation→CustTable.AccountNum(key of CustTable)Relation also requires Module = ModuleInventCustVend::Cust, AccountCode = PriceDiscPartyCodeType::Table.
Many PriceDiscTable records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
AccountRelation→VendTable.AccountNum(key of VendTable)Relation also requires Module = ModuleInventCustVend::Vend, AccountCode = PriceDiscPartyCodeType::Table.
Many PriceDiscTable records → zero or one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
PriceCurrencyCode→Currency.CurrencyCode(key of Currency)Many PriceDiscTable records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
ItemRelation→InventTable.ItemId(key of InventTable)Relation also requires ItemCode = PriceDiscProductCodeType::Table.
Many PriceDiscTable records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
AttributeBasedPricingId→PDSCalculationTable.CalculationId(key of PDSCalculationTable)Many PriceDiscTable records → zero or one PDSCalculationTable record
Not exposed by a public entity.
ProductConfigurationId→EcoResConfiguration.Name(key of EcoResConfiguration)Many InventDim records → zero or one EcoResConfiguration record
EcoResConfiguration details: see EcoResProductMasterConfigurationEntity, EcoResProductMasterConfigurationTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
ProductColorId→EcoResColor.Name(key of EcoResColor)Many InventDim records → zero or one EcoResColor record
EcoResColor details: see EcoResProductColorV2Entity, EcoResProductColorEntity, EcoResProductColorGroupLineEntity
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
PriceSiteId→InventSite.SiteId(key of InventSite)Many InventDim records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
PriceWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many InventDim records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
QuantityUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many PriceDiscTable records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
Need help with PurchasePriceAgreementEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.