Skip to main content

MGCLatticeTradeAgreementEntity

The MGCLatticeTradeAgreementEntity exposes ALL trade-agreement price and discount rows from PriceDiscTable (root) as a single normalized, cross-type collection, replacing the need to union the eight split standard *AgreementEntity feeds (SalesPriceAgreement, PurchPriceAgreement, SalesLineDiscAgreement, PurchLineDiscAgreement, SalesMultiLineDiscAgreement, PurchMultiLineDiscAgreement, SalesEndDiscAgreement, PurchEndDiscAgreement). The PriceType (Relation) field is the price-type discriminator and ModuleType (Module) distinguishes customer vs. vendor; consumers select a slice with a $filter such as $filter=PriceType eq Microsoft.Dynamics.DataEntities.PriceType'PriceSales'. Read-only and DMF/OData enabled with a lean, explicitly projected field set for high-performance price-list extract and BYOD scenarios. Keyed on the PriceDiscTable surrogate RecId (export-oriented). PriceDiscTable can be large; consumers should constrain extracts with a $filter (for example by PriceType, ModuleType, ItemRelation or FromDate/ToDate). Change tracking is enabled at runtime in the Data management workspace (Enable change tracking), not via a metadata flag.

  • Public collection name: LatticeTradeAgreements
  • Primary key: SysRecId

Fields​

NameTypeMandatoryDescription
PriceTypePriceTypeNo
ModuleTypePriceDiscModuleNo
AccountCodePriceDiscPartyCodeNo
AccountRelationPriceDiscAccountRelationNo
ItemCodePriceDiscProductCodeNo
ItemRelationPriceDiscItemRelationNo
InventoryDimensionIdInventDimIdNo
UnitSymbolUnitOfMeasureSymbolNo
CurrencyCodeCurrencyCodeNo
QuantityFromAmountQtyNo
QuantityToAmountQuantityToNo
AmountPriceDiscAmountNo
DiscountPercent1DiscPctNo
DiscountPercent2DiscPctNo
MarkupPriceMarkupNo
PriceUnitPriceUnitNo
FromDateFromDateNo
ToDateToDateNo
DeliveryLeadTimeLeadTimeDeliveryNo
AgreementIdPriceAgreementNo
SysRecIdRefRecIdNo

Mappings​

Entity fieldData sourceField
PriceTypePriceDiscTablerelation
ModuleTypePriceDiscTableModule
AccountCodePriceDiscTableAccountCode
AccountRelationPriceDiscTableAccountRelation
ItemCodePriceDiscTableItemCode
ItemRelationPriceDiscTableItemRelation
InventoryDimensionIdPriceDiscTableInventDimId
UnitSymbolPriceDiscTableUnitId
CurrencyCodePriceDiscTableCurrency
QuantityFromPriceDiscTableQuantityAmountFrom
QuantityToPriceDiscTableQuantityAmountTo
AmountPriceDiscTableAmount
DiscountPercent1PriceDiscTablePercent1
DiscountPercent2PriceDiscTablePercent2
MarkupPriceDiscTableMarkup
PriceUnitPriceDiscTablePriceUnit
FromDatePriceDiscTableFromDate
ToDatePriceDiscTableToDate
DeliveryLeadTimePriceDiscTableDeliveryTime
AgreementIdPriceDiscTableAgreement
SysRecIdPriceDiscTableRecId