Retail operations manager, Retail service, Retail store manager and 2 more roles
Business process
Manage product pricing
Menu item
GUPMarginComponentInquiry
Setup steps
1 on this page
How this guide was checked
Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Disabled rules are left out”, to confirm this setup in your own test environment.
Show what matters for
PAGE GUIDEWhat the page does and how to use it8 sections. Choose a role to highlight what matters to you.
Everyone
1What it is and why
What it is
An inquiry dialog that finds the margin component price adjustment rules for a currency, date interval, price component code and price attributes.
What you do here
Use this inquiry to see which margin adjustments sit on top of the base price, so you can explain a selling price.
Example
For example, item EV0001 sells at 12.00 to BEAT-000123 although its trade agreement price is 8.00; the inquiry for USD in November 2026 shows MAC01 at +3.00, MAC02 at +2.00 and MAC03 at -1.00.
The page in Dynamics 365. page title tab to open what to set or check
About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.
When to run it
When to run it
When a selling price looks too high or too low and you need to see which margin adjustments apply on top of the base price.
How often
On demand.
What the output shows
The margin component price adjustment rules that match your currency, dates and attributes. Selling price is base price plus or minus these adjustments, so an unexpected adjustment here explains a wrong selling price.
Limits the result to rules whose Status is Enabled. Only enabled rules are used in price calculations.Microsoft Learn
Yes
Price attribute group combination
The combination of header and line price attribute groups to search.Microsoft Learn
Match values only
No also finds rules that apply through a group the value belongs to; Yes finds only rules that name the value itself.Microsoft Learn
No
Attribute details
The attribute values that the search uses.Checked in Dynamics 365
Common errors and fixes
Message
What to do
A margin adjustment you set up doesn't appear.
Check its Status: rules are created Disabled and only enabled rules are used. Also check the dates against the Date type on Pricing management parameters. Microsoft Learn
Test checklist
Enable two margin component price adjustments for item EV0001: +3.00 and +2.00.
Run the inquiry for the currency and dates of a test order.
Check that both rules are listed.
Disable one rule, run with Enabled = Yes and check that only one is listed.
Set Currency and the From date and To date of the order first, with Enabled = Yes.Rules apply per currency and validation period, and only enabled rules are used, so other settings list rules the order never used.
Per company: the inquiry reads the pricing rules of the company you are signed in to. Checked in Dynamics 365
Can it be undone
Reversible: The inquiry only reads pricing rules; it changes nothing. Microsoft Learn
If you change it later
The inquiry only reads rules. Selling price is base price plus or minus the margin component price adjustments, so a rule found here explains a price. Microsoft Learn
Technical architect
6Technical
Menu item
GUPMarginComponentInquiryChecked in Dynamics 365
Form
GUPPricingSetupInquiryDialogChecked in Dynamics 365
Who can open it
5 security roles. Select a role to see its duties and privileges.
Roles worked out from Microsoft's standard security setup and checked in a working Dynamics 365 system (version 10.0.49)
Roles to set it up and use it
To use itRetail service RetailServiceSales manager TradeSalesManagerSales clerk TradeSalesClerkRetail operations manager RetailOperationsManagerRetail store manager RetailStoreManagerGive people one of these roles. On this system, 5 roles can run this page.Checked in Dynamics 365
Load order: The Margin component price adjustments inquiry has no data entity in Data management: it is a dialog that searches existing rules. Load the rules themselves with GUPMarginComponentPriceAdjustmentV2Entity and GUPMarginComponentPriceAdjustmentLineV2Entity.Microsoft Learn