Data entity
GUPOpenTradeAgreementJournalLineV2Entity
Second version of the open trade agreement journal lines used in pricing management. It holds price or discount ranges, dates, amount, currency and unit, and it reads attribute data from the unified pricing rule lookup. It has more fields than the first version, including header exclusion details. It is keyed by journal number and line number.
- Entity name
GUPOpenTradeAgreementJournalLineV2Entity- Public entity name
GUPOpenTradeAgreementJournalLineV2- OData collection
GUPOpenTradeAgreementJournalLinesV2- Category
Not set- Module
Sales and marketing- Read-only
No- Data management enabled
Yes- Configuration key
PriceDisc- Keys
TradeAgreementJournalNumber, LineNumber- Staging table
GUPOpenTradeAgreementJournalLineV2Staging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/GUPOpenTradeAgreementJournalLinesV2- Dataverse virtual table
mserp_gupopentradeagreementjournallinev2entity. 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
PriceDiscAdmTrans· rootPriceDiscAdmTable· InnerJoin toPriceDiscAdmTrans· read-onlyGUPPriceComponentCodePriceAttributeGroupCombination· OuterJoin toPriceDiscAdmTrans· read-onlyGUPPricingRuleConditionViewHeader(tableGUPPricingRuleConditionLookup) · OuterJoin toPriceDiscAdmTransGUPPricingRuleConditionViewLine(tableGUPPricingRuleConditionLookup) · OuterJoin toPriceDiscAdmTransInventDim· OuterJoin toPriceDiscAdmTrans
Fields (72)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
TradeAgreementJournalNumberUnique number of the journal. | String (20)PriceDiscJournalNum | Yes | Yes | PriceDiscAdmTable.JournalNum | |
LineNumberPosition number of the line in the journal. | RealLineNum | No | Yes | PriceDiscAdmTrans.LineNum | |
FromQuantityLower limit of the quantity or amount range for the line. | RealAmountQty | No | Yes | PriceDiscAdmTrans.QuantityAmountFrom | |
ToQuantityUpper limit of the quantity or amount range for the line. | RealAmountQuantityTo | No | Yes | PriceDiscAdmTrans.QuantityAmountTo | |
QuantityUnitSymbolUnit of measure that the line uses. | StringUnitOfMeasureSymbol | No | Yes | UnitOfMeasure.Symbol | PriceDiscAdmTrans.UnitId |
PriceApplicableFromDateDate from which the line is valid. | DateFromDate | No | Yes | PriceDiscAdmTrans.FromDate | |
PriceApplicableToDateDate until which the line is valid. | DateToDate | No | Yes | PriceDiscAdmTrans.ToDate | |
PriceThe price or discount amount on the line, in the currency given on the line. | RealPriceDiscAmount | No | Yes | PriceDiscAdmTrans.Amount | |
PriceCurrencyCodeCurrency code of the amount on the line. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | PriceDiscAdmTrans.Currency |
AttributeBasedPricingIdPoints to the calculation used for attribute-based pricing. | StringPDSCalculationId | No | Yes | PDSCalculationTable.CalculationId | PriceDiscAdmTrans.PDSCalculationId |
FixedPriceChargesCharges added to the price. | RealPriceMarkup | No | Yes | PriceDiscAdmTrans.Markup | |
SalesPriceQuantityThe quantity that the price refers to. | RealPriceUnit | No | Yes | PriceDiscAdmTrans.PriceUnit | |
SalesLeadTimeDaysLead time of the line, as a whole number. | IntegerLeadTime | No | Yes | PriceDiscAdmTrans.DeliveryTime | |
WillDeliveryDateControlDisregardLeadTimeYes/No flag to ignore the lead time for this line. | EnumDisregardLeadTime
| No | Yes | PriceDiscAdmTrans.DisregardLeadTime | |
IsGenericCurrencySearchEnabledYes/No flag to include the generic currency. | EnumSalesGenericCurrency
| No | Yes | PriceDiscAdmTrans.GenericCurrency | |
WillSearchContinueYes/No flag labelled 'Find next'. | Enum
| No | Yes | PriceDiscAdmTrans.SearchAgain | |
ProcessingLogLog text for the line, up to 255 characters. | String (255)PriceJournalLogTrans | No | Yes | PriceDiscAdmTrans.Log | |
AccountRelationThe customer or vendor account, or the group, that the line applies to. | String (20)PriceDiscAccountRelation | No | No (private) | CustTable.AccountNumVendTable.AccountNum | PriceDiscAdmTrans.AccountRelation |
AccountCodeSays whether the line applies to one account, a group of accounts or all accounts. | EnumPriceDiscPartyCode
| No | No (private) | PriceDiscAdmTrans.AccountCode | |
ItemCodeSays whether the line applies to one item, an item group or all items. | EnumPriceDiscProductCode
| No | No (private) | PriceDiscAdmTrans.ItemCode | |
ItemRelationThe item, or the item group, that the line applies to. | String (20)PriceDiscItemRelation | No | No (private) | InventTable.ItemId | PriceDiscAdmTrans.ItemRelation |
PricingRuleHeaderSystem ID of a pricing rule used at header level. | Int64GUPRefRecId | No | No (private) | GUPPricingRule.RecId | PriceDiscAdmTrans.PricingRuleHeader |
PricingRuleLineSystem ID of a pricing rule used at line level. | Int64GUPRefRecId | No | No (private) | GUPPricingRule.RecId | PriceDiscAdmTrans.PricingRuleLine |
PriceComponentCombinationName of the combination. | String (180)GUPPricingAttributeGroupCombinationName | No | Yes | GUPPriceComponentCodePriceAttributeGroupCombination.Name | |
PriceApplyAdjustmentFlag that lets the agreement price take a margin-based adjustment. | EnumGUPPriceDiscPriceApplyAdjustment
| No | Yes | PriceDiscAdmTrans.PriceApplyAdjustment | |
PricePreventDiscountFlag that blocks extra discounts on top of this agreement price. | EnumGUPPriceDiscPricePreventDiscount
| No | Yes | PriceDiscAdmTrans.PricePreventDiscount | |
UnitAppliesToAllYes/No flag that allows unit conversion. | EnumGUPUnitAppliesToAll
| No | Yes | PriceDiscAdmTrans.UnitAppliesToAll | |
PriceAttributeGroupNameHeaderPrice attribute group the conditions belong to. | String (60)GUPPricingAttributeGroupName | No | Yes | GUPPricingRuleConditionLookup.PriceAttributeGroupName | |
HeaderExclusionTypeKind of item excluded by the rule: product, product variant or customer. | Enum
| No | Yes | GUPPricingRuleConditionLookup.ExclusionType | |
HeaderExclusionText listing the items excluded from the rule. | String (500)GUPAttributeExclusion | No | Yes | GUPPricingRuleConditionLookup.Exclusion | |
Header1First condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue1 | |
Header2Second condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue2 | |
Header3Third condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue3 | |
Header4Fourth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue4 | |
Header5Fifth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue5 | |
Header6Sixth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue6 | |
Header7Seventh condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue7 | |
Header8Eighth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue8 | |
Header9Ninth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue9 | |
Header10Tenth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue10 | |
Header11Eleventh condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue11 | |
Header12Twelfth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue12 | |
Header13Thirteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue13 | |
Header14Fourteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue14 | |
Header15Fifteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue15 | |
PriceAttributeGroupNameLinePrice attribute group the conditions belong to. | String (60)GUPPricingAttributeGroupName | No | Yes | GUPPricingRuleConditionLookup.PriceAttributeGroupName | |
LineExclusionText listing the items excluded from the rule. | String (500)GUPAttributeExclusion | No | Yes | GUPPricingRuleConditionLookup.Exclusion | |
LineExclusionTypeKind of item excluded by the rule: product, product variant or customer. | Enum
| No | Yes | GUPPricingRuleConditionLookup.ExclusionType | |
Line1First condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue1 | |
Line2Second condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue2 | |
Line3Third condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue3 | |
Line4Fourth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue4 | |
Line5Fifth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue5 | |
Line6Sixth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue6 | |
Line7Seventh condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue7 | |
Line8Eighth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue8 | |
Line9Ninth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue9 | |
Line10Tenth condition value of the rule. | String (1000)GUPAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue10 | |
Line11Eleventh condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue11 | |
Line12Twelfth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue12 | |
Line13Thirteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue13 | |
Line14Fourteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue14 | |
Line15Fifteenth condition value of the rule, a shorter entity attribute value. | String (200)GUPEntityAttributeValue | No | Yes | GUPPricingRuleConditionLookup.AttributeValue15 | |
ProductSizeIdSize of the product. | StringEcoResItemSizeName | No | Yes | EcoResSize.Name | InventDim.InventSizeId |
PriceWarehouseIdWarehouse of the inventory. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | InventDim.InventLocationId |
ProductColorIdColour of the product. | StringEcoResItemColorName | No | Yes | EcoResColor.Name | InventDim.InventColorId |
ProductConfigurationIdConfiguration of the product. | String (50)EcoResItemConfigurationName | No | Yes | EcoResConfiguration.Name | InventDim.configId |
PriceSiteIdSite of the inventory. | StringInventSiteId | No | Yes | InventSite.SiteId | InventDim.InventSiteId |
ProductStyleIdStyle of the product. | StringEcoResItemStyleName | No | Yes | EcoResStyle.Name | InventDim.InventStyleId |
ProductVersionIdVersion of the product. | StringEcoResItemVersionName | No | Yes | EcoResVersion.Name | InventDim.InventVersionId |
PriceComponentCodeNamePrice component code the combination belongs to. | String (80)GUPPriceComponentCodeName | No | Yes | GUPPriceComponentCode.Name | GUPPriceComponentCodePriceAttributeGroupCombination.PriceComponentCodeName |
PriceGroupThe price group that the line relates to. | StringPriceGroupId | No | Yes | PriceDiscAdmTrans.PriceGroup |
Foreign keys (16)
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.
QuantityUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many PriceDiscAdmTrans records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
PriceCurrencyCode→Currency.CurrencyCode(key of Currency)Many PriceDiscAdmTrans records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
AttributeBasedPricingId→PDSCalculationTable.CalculationId(key of PDSCalculationTable)Many PriceDiscAdmTrans records → zero or one PDSCalculationTable record
Not exposed by a public entity.
AccountRelation→CustTable.AccountNum(key of CustTable)Relation also requires Module = ModuleInventCustVend::Cust, AccountCode = PriceDiscPartyCodeType::Table.
Many PriceDiscAdmTrans 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 PriceDiscAdmTrans records → zero or one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
ItemRelation→InventTable.ItemId(key of InventTable)Relation also requires ItemCode = PriceDiscProductCodeType::Table.
Many PriceDiscAdmTrans records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
PricingRuleHeader→GUPPricingRule.RecId(key of GUPPricingRule)Zero or one PriceDiscAdmTrans record → exactly one GUPPricingRule record
GUPPricingRule details: see GUPDiscountInquiryResultEntity, GUPDiscountLineInquiryResultEntity, GUPPriceAdjustmentInquiryResultEntity
PricingRuleLine→GUPPricingRule.RecId(key of GUPPricingRule)Zero or one PriceDiscAdmTrans record → exactly one GUPPricingRule record
GUPPricingRule details: see GUPDiscountInquiryResultEntity, GUPDiscountLineInquiryResultEntity, GUPPriceAdjustmentInquiryResultEntity
ProductSizeId→EcoResSize.Name(key of EcoResSize)Many InventDim records → zero or one EcoResSize record
EcoResSize details: see EcoResProductSizeV2Entity, EcoResProductMasterSizeEntity, EcoResProductMasterSizeTranslationEntity
PriceWarehouseId→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
PriceSiteId→InventSite.SiteId(key of InventSite)Many InventDim records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
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
PriceComponentCodeName→GUPPriceComponentCode.Name(key of GUPPriceComponentCode)Many GUPPriceComponentCodePriceAttributeGroupCombination records → exactly one GUPPriceComponentCode record
GUPPriceComponentCode details: see GUPPriceComponentCodeEntity, GUPPriceComponentCodeCombinationEntity, GUPPriceComponentCodeSetupEntity
Need help with GUPOpenTradeAgreementJournalLineV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.