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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Notification of Price Change

(1) ShareShare
ReportReport
Posted on by 386
Hi:
 
In the "Prices & Sales" FastTab of the Item Card, you can choose "Price=Cost+Profit" for the Price/Profit Calculation.
 
If you make a change to "Profit %", "Unit Price" changes automatically.
 
Also, for the Item Card, you can click the link for the "Sales Prices & Discounts" field to set up special prices and discounts.
 
Is there a way to have Business Central notify or alert the end user in some form, when he or she changes the Profit % and causes the "Unit Price" to be different from the "Sales Price" for special prices and discounts?
 
Thanks!
 
John
I have the same question (0)
  • Netjacker2097 Profile Picture
    286 on at
    Notification of Price Change
    Hi,
     
    this should work for what you need if you table extend on item table. Also add some control on the user setup with the boolean for ITNotify.
     
    I have not tested this so please try in SB enviroment and ensure it all works before you add the Live.
     
        trigger OnAfterModify()
        var
            RecEmailM: Codeunit "Email Message";
            RecEmail: Codeunit Email;
            Body: Text;
            Msg: Label 'Hello <br><br>The Item No. is <strong>%1</strong>.<br><br>The Profit Percentage has changed, causing the Unit Price to be different from the Sales Price.<br><br>Regards,<br>BC System Message';
            UserSetup: Record "User Setup";
            UserIdVar: Text[100];
            EmailCreated: Boolean;
        begin
            if (Rec."Profit %" <> xRec."Profit %") and (Rec."Unit Price" <> xRec."Unit Price") then begin
                UserSetup.SETRANGE(ITNotify, TRUE);
                if UserSetup.FINDSET THEN BEGIN
                    REPEAT
                        UserIdVar := FORMAT(UserSetup."User ID");
                        Body := StrSubstNo(Msg, Rec."No.");
     
                        RecEmailM.Create(UserSetup."E-Mail", 'Item - Email Notification', Body, true);
     
                        IF NOT RecEmail.Send(RecEmailM) THEN BEGIN
                            ERROR('Failed to send email to user: %1', UserIdVar);
                        END;
                    UNTIL UserSetup.NEXT = 0;
                END;
                Message('Profit % has changed for item %1, causing the Unit Price to be different from the Sales Price.', rec."No.");
            end;
        end;
  • Verified answer
    Gerardo Rentería García Profile Picture
    23,572 Most Valuable Professional on at
  • Suggested answer
    YUN ZHU Profile Picture
    92,292 Super User 2025 Season 2 on at
    Notification of Price Change
    Hi, As far as I know there is no standard feature for this. You could look for it in My Notifications, but I think this might need customization.
     
    Hope this helps.
    Thanks.
    ZHU
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 4,220

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,958

#3
Sumit Singh Profile Picture

Sumit Singh 2,961

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans