Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

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

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. 

Categories:
  • Suggested answer
    Manan_Shah Profile Picture
    Manan_Shah 1,457 on at
    RE: Disable the function to 'don't show message again'

    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

  • TomBrilliant Profile Picture
    TomBrilliant 10 on at
    RE: Disable the function to 'don't show message again'

    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
    Manan_Shah 1,457 on at
    RE: Disable the function to 'don't show message again'

    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
    TomBrilliant 10 on at
    RE: Disable the function to 'don't show message again'

    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
    Mohana Yadav Profile Picture
    Mohana Yadav 59,125 Super User 2024 Season 2 on at
    RE: Disable the function to 'don't show message again'

    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;

  • Suggested answer
    Manan_Shah Profile Picture
    Manan_Shah 1,457 on at
    RE: Disable the function to 'don't show message again'

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,151 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,963 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans