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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Disable the function to 'don't show message again'

(0) ShareShare
ReportReport
Posted on by 10

Is there a way to disable the option to 'not show messages'?
pastedimage1672835069802v3.png

I always want this message to show up when inventory levels are too low, because there should be looked into the orders which one will get priority. When this message is not showing up, the trigger is gone and wrong delivery dates are communicated to the customer.  Other solutions are welcome. 

I have the same question (0)
  • Suggested answer
    Manan_Shah Profile Picture
    1,459 on at

    Hi Tom,

    As I understand you want notification message while creating any Sales Document if quantity lower then required. 

    You have enable Boolean for Stock out Warning from Sales & Receivable setup Page.

    pastedimage1672836597311v1.png 

    Hope this will help.

    Many Thanks,
    Manan

  • Suggested answer
    Mohana Yadav Profile Picture
    60,993 Super User 2025 Season 2 on at

    You can do it with the below code customization.

       [EventSubscriber(ObjectType::Codeunit, Codeunit::"Item-Check Avail.", 'OnBeforeCreateAndSendNotification', '', false, false)]

       local procedure OnBeforeCreateAndSendNotification(ItemNo: Code[20]; UnitOfMeasureCode: Code[20]; InventoryQty: Decimal; GrossReq: Decimal; ReservedReq: Decimal; SchedRcpt: Decimal; ReservedRcpt: Decimal; CurrentQuantity: Decimal; CurrentReservedQty: Decimal; TotalQuantity: Decimal; EarliestAvailDate: Date; RecordId: RecordId; LocationCode: Code[10]; ContextInfo: Dictionary of [Text, Text]; var Rollback: Boolean; var IsHandled: Boolean);

       var

           ItemCheckAvail: Codeunit "Item-Check Avail.";

           NotificationLifecycleMgt: Codeunit "Notification Lifecycle Mgt.";

           ItemAvailabilityCheck: Page "Item Availability Check";

           AvailabilityCheckNotification: Notification;

           NotificationMsg: Label 'The available inventory for item %1 is lower than the entered quantity at this location.', Comment = '%1=Item No.';

           DetailsTxt: Label 'Show details';

       begin

           AvailabilityCheckNotification.Id(CreateGuid());

           AvailabilityCheckNotification.Message(StrSubstNo(NotificationMsg, ItemNo));

           AvailabilityCheckNotification.Scope(NOTIFICATIONSCOPE::LocalScope);

           AvailabilityCheckNotification.AddAction(DetailsTxt, CODEUNIT::"Item-Check Avail.", 'ShowNotificationDetails');

           //AvailabilityCheckNotification.AddAction(DontShowAgainTxt, CODEUNIT::"Item-Check Avail.", 'DeactivateNotification');

           ItemAvailabilityCheck.PopulateDataOnNotification(AvailabilityCheckNotification, ItemNo, UnitOfMeasureCode,

             InventoryQty, GrossReq, ReservedReq, SchedRcpt, ReservedRcpt, CurrentQuantity, CurrentReservedQty,

             TotalQuantity, EarliestAvailDate, LocationCode);

           NotificationLifecycleMgt.SendNotificationWithAdditionalContext(

             AvailabilityCheckNotification, RecordId, ItemCheckAvail.GetItemAvailabilityNotificationId());

           Rollback := false;

           IsHandled := true;

       end;

  • TomBrilliant Profile Picture
    10 on at

    Thank you Manan_Shah  for your answer. It seems I already have this boolean enabled. Can you show me the output message of this warning? I tested but i have no idea what is should look like.

    Thank you in advance!

    Tom

  • Suggested answer
    Manan_Shah Profile Picture
    1,459 on at

    Hi Tom,

    I used item which have quantity as "0". I create a Sales Order and pick same item as Quantity as "50". So system give me notification. For Lower Quantity. 

    pastedimage1672837582450v1.png

    pastedimage1672837665871v2.png

    Many Thanks,
    Manan

  • TomBrilliant Profile Picture
    10 on at

    Thank you. This message is showing in my Business Central too. But the users have the option to click on 'Don't show again'. When they do, this message is not showing up anymore. You have to enable this again within your own profile via My settings → change when i receive messages:

    pastedimage1672838017341v1.png

    I want the users not be able to delete the message, so it never shows up again. 

  • Suggested answer
    Manan_Shah Profile Picture
    1,459 on at

    Hi Tom,

    Thanks for explain, Now I understand what you are looking for. I am not too sure is their any action to remove "Don't show again" action button. but I suggest you can put some custom code, If user disable this notification then that custom code always run while adding Item on sales document and check Item qty. and if it's lower it's pass same notification or your custom notification. 


    Many Thanks,
    Manan

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,226

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,047 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,257 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans