Data entity
MCRBrokerContractLineEntity
Read-only list of broker contract lines, keyed by broker contract ID and line number. Each line can be limited to a customer, customer group, item or item group. It holds the charges code, sales tax group, break quantity and amount, and the broker fee as a per-unit amount, fixed amount or percentage.
- Entity name
MCRBrokerContractLineEntity- Public entity name
BrokerContractLine- OData collection
BrokerContractLines- Category
Document- Module
Sales and marketing- Read-only
Yes- Data management enabled
Yes- Configuration key
TradeBroker- Keys
BrokerContractId, LineNumber- Staging table
MCRBrokerContractLineStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/BrokerContractLines- Dataverse virtual table
mserp_mcrbrokercontractlineentity. 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
MCRBrokerContractLine· rootMCRBrokerContractTable· InnerJoin toMCRBrokerContractLine· read-only
Fields (22)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AccountCodeSays whether the customer selection is a single account, a group or all customers. | EnumPriceDiscPartyCode
| No | No (private) | MCRBrokerContractLine.AccountCode | |
AccountRelationThe customer account or customer group that the line applies to, depending on the party code type. | String (20)PriceDiscAccountRelation | No | No (private) | CustGroup.CustGroupCustTable.AccountNum | MCRBrokerContractLine.AccountRelation |
BrokerFeeBreakValueThe break value of the line, read together with the break type. | RealAmountQty | No | No (private) | MCRBrokerContractLine.Amount | |
BrokerFeeBreakBasisSays whether the break is based on a quantity or an amount. | Enum
| No | No (private) | MCRBrokerContractLine.AmountType | |
BrokerContractIdThe broker contract header that this line belongs to. | String (12)MCRBrokerContractID | Yes | Yes | MCRBrokerContractTable.ContractID | MCRBrokerContractLine.ContractID |
ItemCodeSays whether the item selection is a single item, an item group or all items. | EnumPriceDiscProductCode
| No | No (private) | MCRBrokerContractLine.ItemCode | |
ItemRelationThe item or item group that the line applies to, depending on the product code type. | String (20)ItemRelation | No | No (private) | InventTable.ItemId | MCRBrokerContractLine.ItemRelation |
BrokerSalesChargeCodeThe charges code linked to the line. | StringMarkupCode | Yes | Yes | MCRBrokerContractLine.MiscChargeCode | |
SalesTaxGroupCodeThe sales tax group set on the line. | StringTaxGroup | No | Yes | TaxGroupHeading.TaxGroup | MCRBrokerContractLine.TaxGroup |
BrokerFeeValueThe charges value of the line, either an amount or a percentage. | RealMCRAmountorPercent | No | No (private) | MCRBrokerContractLine.Value | |
BrokerFeeValueTypeSays how the charges value is expressed: per piece, as a percentage or as a fixed amount. | Enum
| No | No (private) | MCRBrokerContractLine.ValueType | |
LineNumberA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | Yes | Yes | MCRBrokerContractLine.RecId | |
CustomerAccountNumberCustomer account the contract line applies to. | String (20)CustAccount | No | Yes | computed | |
CustomerGroupIdCustomer group the contract line applies to. | String (20)PdsCustRebateGroupId | No | Yes | computed | |
ItemNumberItem the contract line applies to. | String (20)ItemId | No | Yes | computed | |
ProductGroupIdItem group the contract line applies to. | StringPdsItemRebateGroupId | No | Yes | computed | |
BrokerVendorAccountNumberThe vendor account of the broker in the contract. | String (20)MCRBrokerVendAccount | No | Yes | VendTable.AccountNum | MCRBrokerContractTable.BrokerID |
BrokerFeeBreakQuantityQuantity at which the broker fee on this line starts to apply. | RealAmountQty | No | Yes | computed | |
BrokerFeeBreakAmountAmount at which the broker fee on this line starts to apply. | RealAmountQty | No | Yes | computed | |
BrokerFeeAmountPerProductUnitSoldBroker fee as an amount for each product unit sold. | RealMCRAmountorPercent | No | Yes | computed | |
BrokerFeeChargeAmountFixed broker fee amount for this line. | RealMCRAmountorPercent | No | Yes | computed | |
BrokerFeePercentageBroker fee on this line, given as a percentage. | RealMCRAmountorPercent | No | Yes | computed |
Foreign keys (6)
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→CustGroup.CustGroup(key of CustGroup)Relation also requires AccountCode = PriceDiscPartyCodeType::GroupId.
Many MCRBrokerContractLine records → zero or one CustGroup record
CustGroup details: see CustCustomerGroupEntity, RetailPriceGroupApplicabilityRuleEntity, WHSCustomerGroupProductFilterEntity
AccountRelation→CustTable.AccountNum(key of CustTable)Relation also requires AccountCode = PriceDiscPartyCodeType::Table.
Many MCRBrokerContractLine records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
BrokerContractId→MCRBrokerContractTable.ContractID(key of MCRBrokerContractTable)Many MCRBrokerContractLine records → exactly one MCRBrokerContractTable record
MCRBrokerContractTable details: see MCRBrokerContractHeaderEntity
ItemRelation→InventTable.ItemId(key of InventTable)Relation also requires ItemCode = PriceDiscProductCodeType::Table.
Many MCRBrokerContractLine records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
SalesTaxGroupCode→TaxGroupHeading.TaxGroup(key of TaxGroupHeading)Zero or one MCRBrokerContractLine record → exactly one TaxGroupHeading record
TaxGroupHeading details: see TrvExpMobileTaxGroupEntity, TaxGroupEntity, BusinessDocumentTaxGroupHeadingEntity
BrokerVendorAccountNumber→VendTable.AccountNum(key of VendTable)One or more MCRBrokerContractTable records → exactly one VendTable record
VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity
Need help with MCRBrokerContractLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.