web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Sales table 2 line update

(0) ShareShare
ReportReport
Posted on by 10

During the process of updating certain fields on a sales order header my company has configured the 'Update order lines' prompt to pop up, asking how/if to propagate the header's values down to the lines. For the changes that impact price there's the Update prices and discounts radio button section of the dialog with 3 radio button options: Update all, Keep all, Evaluate each line. Does anyone know how to change the default radio button selected here to be 'Keep all'? Our users aren't reading this confusing text all of the time correctly and leaving the option at 'Update all' which is resulting in sales line prices getting updated inadvertently. Here's the screenshot with the red box around the radio button that needs to be the default.pastedimage1655499578351v1.png

I have the same question (0)
  • Verified answer
    Jeson Profile Picture
    120 on at

    What we did is we change something from SalesTable2LineUpdatePrompt class then dialog method. Just find the code below in dialog method of the class

    if (priceDiscChangePolicyExistOnLine)
    {
          FROM THIS CODE
         //Update prices and discounts entered manually or by external document (section)
         //Update prices and discounts (group of radio button default base on updatePriceDiscMode)
         updatePriceDiscDialogField = PriceDiscResultFields::promptPriceDiscPolicyUpdate(dialogGroup,   /////// orginal code
                                                                                                                                          dialog,
                                                                                                                                          updatePriceDiscMode,
                                                                                                                                          false);

          NEW CODE

         //Update prices and discounts (group of radio button default keep all)
        updatePriceDiscDialogField = PriceDiscResultFields::promptPriceDiscPolicyUpdate(dialogGroup,  /////// Change the updatePriceDiscMode enum to 1 which is equal to 'Keep all'
                                                                                                                                              dialog,
                                                                                                                                               1,
                                                                                                                                               false);


         updatePriceDiscDialogField.enabled(false);
    }

    pastedimage1655640534197v1.png

  • msocha Profile Picture
    10 on at

    This is what I needed. Thanks! I ended up putting this configuration section into the Accounts Receivable parameters dialog here, so you can choose whether you want to have the default selection overridden (as opposed to being whatever the last selection option was for that user). Also you can choose what the default override value should be (if override is enabled), and you can choose whether or not that 'Update prices and discounts' legend box can be enabled (allow user change of default selection).

    pastedimage1656617506913v1.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 694

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 646 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 337

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans